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

Simple merge