]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: Fix reporting of partial jack updates
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 4 Sep 2011 15:18:18 +0000 (08:18 -0700)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:15 +0000 (15:35 -0400)
commit 747da0f80e566500421bd7760b2e050fea3fde5e upstream.

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@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
sound/soc/soc-jack.c

index 3c07a94c2e300cd0f75a60617411894971f81d7d..f0977552606e611f6ac0e01d0d4fdbd67e72126f 100644 (file)
@@ -95,7 +95,7 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)
 
        snd_soc_dapm_sync(codec);
 
-       snd_jack_report(jack->jack, status);
+       snd_jack_report(jack->jack, jack->status);
 
 out:
        mutex_unlock(&codec->mutex);