]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix index number conflicts of phantom jacks
authorTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2012 14:48:27 +0000 (16:48 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2012 14:55:56 +0000 (16:55 +0200)
commitd4bcf5220e730cc643fe34c430bdf88fe4978cf0
treebee07bb6db8cb77a1093bac2d07fa36d478d0e7d
parentc505e65028ac6ca8a722aefc700e0d02c32adac3
ALSA: hda - Fix index number conflicts of phantom jacks

Since some jack controls may be renamed as phantom jacks, the existing
check for index conflicts doesn't work because it simply compares the
name with the last used name, assuming that the controls with the same
name continue.  Thus, it would result in the duplicated controls when
two or more phantom jacks with the very same type exist, and the
driver gives up with an error.

This patch fixes the problem by checking the index number conflicts
more intensively (but dumbly).

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_jack.c