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)
commit337b9d02b4873ceac91565272545fb6fd446d939
tree8cc097ca994c244e2af61f31666dbba0f9a2dfde
parentd3a11e601a51291fbdd40c47f6af6769b6e905ef
ALSA: hda - Fix capture source selection in patch_via.c

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