From: Takashi Iwai Date: Thu, 24 Nov 2011 15:33:09 +0000 (+0100) Subject: ALSA: hda - Fix jack-detection control of VT1708 X-Git-Tag: v3.2-rc4~18^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=187d333edc0a8e1bb507900ce89853ffe3bd2c84;p=pandora-kernel.git 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: [v3.1] Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed