]> git.baikalelectronics.ru Git - kernel.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)
commit8cd83b9d73c038a38a0c6cd98456288d06f9a5e0
tree06ffc1d0be94ec00157f790aa152e91addf0800b
parent7107c90c0ddb91e2617000dc49b92efe6bb8f800
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