From: Mark Brown Date: Sun, 4 Sep 2011 15:18:18 +0000 (-0700) Subject: ASoC: Fix reporting of partial jack updates X-Git-Tag: v2.6.34.13~128 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=02b5b4b9e8b63565a7b34ac01d1c1c3baedbb8df;p=karo-tx-linux.git ASoC: Fix reporting of partial jack updates 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 Acked-by: Liam Girdwood Signed-off-by: Paul Gortmaker --- diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 3c07a94c2e30..f0977552606e 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c @@ -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);