ALSA: hda - Fix the check of loopback-mixer element index in patch_via.c
commit1e11cae143e4c0a4fc77fe532e18c550d63ab02d
authorTakashi Iwai <tiwai@suse.de>
Tue, 21 Jun 2011 10:57:22 +0000 (21 12:57 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Jun 2011 10:59:24 +0000 (21 12:59 +0200)
tree91ed42c71d9e0674e495add6eabed0e7a6a5b935
parent0f98c24b807f024d42cf743897e2c1d95ff1e8be
ALSA: hda - Fix the check of loopback-mixer element index in patch_via.c

Fix the check of the multiple loopback-mixer, which gave sometimes
a wrong index assigned to an element even for different names, e.g.
Mic and Front Mic.  Now check the label properly for avoid duplication.

Reported-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c