ALSA: hda - Fix check of input source type for realtek codecs
authorTakashi Iwai <tiwai@suse.de>
Mon, 22 Jun 2009 08:50:19 +0000 (10:50 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Jun 2009 09:06:05 +0000 (11:06 +0200)
commit0169b6b33b2b4d9e66e98afc56272e5fbd350df4
tree6546cd6de863ff09b4b1ca0cbb8ef8bd40981332
parent376b508ffde3b17e105265f89b83bdb044b1c1ae
ALSA: hda - Fix check of input source type for realtek codecs

Fix the check of the input-source type by checking the widget type of
each capture-source item.  Since some codecs can have both the mixer
and selector types depending on the ADC, alc_mux_enum_put() needs to
check each widget.

With this change, spec->capture_style gets unneeded, so it's removed,
too.

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