ALSA: hda - Fix initialization of secondary capture source on VT1705
authorTakashi Iwai <tiwai@suse.de>
Mon, 13 Feb 2012 14:04:06 +0000 (15:04 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 13 Feb 2012 14:04:06 +0000 (15:04 +0100)
commitfc1156c0b0f7ad45ec03d919866349eeca2bf18c
tree8125e803f6e9b1e73e48e262d5b7616ac2cb0a56
parenta1e0c3cf7fb07227fe1f26161d969101dba78287
ALSA: hda - Fix initialization of secondary capture source on VT1705

VT1705 codec has two ADCs where the secondary ADC has no MUX but only
a fixed connection to the mic pin.  This confused the driver and it
tries always overriding the input-source selection by assumption of
the existing MUX for the secondary ADC, resulted in resetting the
input-source at each time PM (including power-saving) occurs.

The fix is simply to check the existence of MUX for secondary ADCs in
the initialization code.

Tested-by: Anisse Astier <anisse@astier.eu>
Cc: <stable@kernel.org> [v3.1+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c