UBUNTU: SAUCE: 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)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Mon, 2 Apr 2012 20:19:25 +0000 (13:19 -0700)
commitdf90a0036e3d086a915b987f7f99b37e946f3b7e
treee9ffc30f481abbc3acb5ca24b653815529219832
parent37a7dc2c6cf794ebb7376da58bfdb5bf883b9f8c
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>
sound/pci/hda/hda_jack.c