]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: hda - Fix jack-detection control of VT1708
authorTakashi Iwai <tiwai@suse.de>
Thu, 24 Nov 2011 15:33:09 +0000 (16:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 27 Nov 2011 16:56:17 +0000 (17:56 +0100)
commit187d333edc0a8e1bb507900ce89853ffe3bd2c84
tree06ffc1d0be94ec00157f790aa152e91addf0800b
parent92bb43e6aae3dbdb199feba93da5f2d05d7716d0
ALSA: hda - Fix jack-detection control of VT1708

VT1708 has no support for unsolicited events per jack-plug, the driver
implements the workq for polling the jack-detection.  The mixer element
"Jack Detect" was supposed to control this behavior on/off, but this
doesn't work properly as is now.  The workq is always started and the
HP automute is always enabled.

This patch fixes the jack-detect control behavior by triggering / stopping
the work appropriately at the state change.  Also the work checks the
internal state to continue scheduling or not.

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