ALSA: hda - Check widget types while parsing capture source in patch_via.c
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 Jul 2009 05:45:46 +0000 (07:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 8 Jul 2009 05:45:46 +0000 (07:45 +0200)
commit1c55d521f4e58be55735d7ac47e8197d6791fa9a
treebf730a6ca4f090c78233c00f363b443ec2c9f73e
parent337b9d02b4873ceac91565272545fb6fd446d939
ALSA: hda - Check widget types while parsing capture source in patch_via.c

Check the widget type and don't take invalid widgets while parsing
the capture source in patch_via.c.

Also, fixed some compile warnings introduced in the previous commit.

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