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)
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>

No differences found