ALSA: hda - Try to find an empty control index when it's occupied
authorTakashi Iwai <tiwai@suse.de>
Thu, 23 Dec 2010 09:17:52 +0000 (10:17 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 Dec 2010 09:22:55 +0000 (10:22 +0100)
commit1afe206ab6998ecd5f5485e02006b0578720a691
tree37e8adc9f85e963cbd218e8662c5390ad2f9491b
parent2d7ec12b902ae00920cee50d98757376b2fa9467
ALSA: hda - Try to find an empty control index when it's occupied

When a mixer control element was already created with the given name,
try to find another index for avoiding conflicts, instead of breaking
with an error.  This makes the driver more robust.

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