UBUNTU: SAUCE: ALSA: HDA: Fix jack creation for codecs with front and rear Line In
If a codec has both a front and a rear Line In, two controls both
named "Line Jack" will be created, which causes parsing to fail.
While a long term solution might be to name the jacks differently,
this extra check is consistent with what is already being done in many
auto-parsers, and will also protect against other cases when two
inputs have the same label.
BugLink: https://bugs.launchpad.net/bugs/923409
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
(backported from
05c3b36e539627b7aed67d038381d0d9fa9d61e7 in https://github.com/tiwai/sound.git for-linus)
Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>