| From 747da0f80e566500421bd7760b2e050fea3fde5e Mon Sep 17 00:00:00 2001 |
| From: Mark Brown <broonie@opensource.wolfsonmicro.com> |
| Date: Sun, 4 Sep 2011 08:18:18 -0700 |
| Subject: ASoC: Fix reporting of partial jack updates |
| |
| From: Mark Brown <broonie@opensource.wolfsonmicro.com> |
| |
| 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: Greg Kroah-Hartman <gregkh@suse.de> |
| |
| --- |
| sound/soc/soc-jack.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/sound/soc/soc-jack.c |
| +++ b/sound/soc/soc-jack.c |
| @@ -94,7 +94,7 @@ void snd_soc_jack_report(struct snd_soc_ |
| |
| snd_soc_dapm_sync(codec); |
| |
| - snd_jack_report(jack->jack, status); |
| + snd_jack_report(jack->jack, jack->status); |
| |
| out: |
| mutex_unlock(&codec->mutex); |