From: Dylan Reid Date: Mon, 19 Nov 2012 18:48:07 +0000 (+0100) Subject: ALSA: hda - Allow jack state to depend on another jack X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~39^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0619ba8c17b121ef0273be181198659b17d84247;p=pandora-kernel.git ALSA: hda - Allow jack state to depend on another jack Introduce the concept of a "gated" jack. The gated jack's pin sense is only valid when the "gating" jack is plugged. This requires checking the gating jack when the gated jack changes and re-checking the gated jack when the gating jack is plugged/unplugged. This allows handling of devices where the mic jack detect floats when the headphone jack is unplugged. [Rewritten for fixing the possible snd_array reallocation, covering the missing callback calls and jack sync operations, as well as some code cleanups -- tiwai] Signed-off-by: Dylan Reid Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed