ALSA: hda - Fix capture source selection in patch_via.c
authorTakashi Iwai <tiwai@suse.de>
Tue, 7 Jul 2009 16:18:59 +0000 (18:18 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 7 Jul 2009 16:20:23 +0000 (18:20 +0200)
The fixed widget NIDs in patch_via.c seem wrong for some codecs,
and it resulted in the invalid capture source selection.

This patch adds the code to parse the topology instead of using
fixed numbers in order to get the right MUX widget id corresponding
to the ADCs.

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

Simple merge