]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix jack-detection on non-VT1708 VIA codecs
authorLydia Wang <lydiawang@viatech.com.cn>
Wed, 29 Jun 2011 05:52:02 +0000 (13:52 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 29 Jun 2011 06:02:46 +0000 (08:02 +0200)
commitafdac7a3cfc323b5fd8d02462339f0c00e739822
tree71ec20695fab0dcbd20e5ddeb511a588d1163183
parent63814edeb6cf0af4c1ed598acb845e14b6d6d4c5
ALSA: hda - Fix jack-detection on non-VT1708 VIA codecs

Move codec init verb which is only applicatable for VT1708.

I've found the root cause that jack plugged in can't be detected.
The verb in vt1708_init_verbs is used to power down jack detect circuit.
This verb is only applicable to VT1708. vt1708 didn't implement jack
detect function in hardware, so we should shut down this function to
avoid noise. But for other codecs, hardware implement jack detect
function. If sending this verb during initialization, jack detect will
be invalid. So I move this verb from via_parse_auto_config() to
patch_vt1708().

Signed-off-by: Lydia Wang <lydiawang@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c