]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Don't create duplicated ctls for loopback paths
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Jan 2014 17:11:44 +0000 (18:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Jan 2014 08:59:41 +0000 (09:59 +0100)
commit0ced7188fefd5cc0939b7cef60424af3dd5ba5b2
treed1501e401e3bd022fcaa036fca4001830884dbe9
parent2a67703cee832c1858f2b997f2d023c830befec8
ALSA: hda - Don't create duplicated ctls for loopback paths

AD1986A mic pins (0x1d and 0x1f) share the same widget for controlling
the loopback volume/mute, but the generic parser didn't check it.
This ended up with the duplicated controls for the same effect.

This patch adds the check of the duplication for avoiding it.

After this fix, there will be only one control although it affects
both paths; this remaining issue should be fixed later in a different
patch.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=66621
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c