[alsa-devel] [PATCH] ASoC: Fix reporting of partial jack updates

Mark Brown broonie at opensource.wolfsonmicro.com
Sun Sep 4 17:18:42 CEST 2011

We need to report the entire jack state to the core jack code, not just
the bits that were being updated by the caller, otherwise the status
reported by other detection methods will be omitted from the state seen
by userspace.

Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
 sound/soc/soc-jack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c
index 38b0013..fa31d9c 100644
--- a/sound/soc/soc-jack.c
+++ b/sound/soc/soc-jack.c
@@ -105,7 +105,7 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)
-	snd_jack_report(jack->jack, status);
+	snd_jack_report(jack->jack, jack->status);

More information about the Alsa-devel mailing list