ALSA: HDA: Fix jack creation for codecs with front and rear Line In
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 31 Jan 2012 08:04:15 +0000 (09:04 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 31 Jan 2012 14:11:21 +0000 (15:11 +0100)
commit05c3b36e539627b7aed67d038381d0d9fa9d61e7
tree0f560ccfdd54cef88226768a61ca554d0373aaff
parent31150f2327cbb66363f38e13ca1be973d2f9203a
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>
sound/pci/hda/hda_jack.c