]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/via - Don't create duplicated boost controls
authorTakashi Iwai <tiwai@suse.de>
Wed, 22 Feb 2012 11:26:38 +0000 (12:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 22 Feb 2012 11:28:44 +0000 (12:28 +0100)
commit37784b51c9efb97de8825b0851e85788021ffa10
treebc842e88c063c460172574daff1a1716043e62a0
parent3263b5613970757b313dfd07b8bae324e76113ff
ALSA: hda/via - Don't create duplicated boost controls

The driver may create duplicated mic boost controls when there are
multiple mics with the very same type / location, and this leads to
the error at actual kcontrol creation.  It needs to check the validity
of the created control and add a proper index if it's duplicated.

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