Commit 747da0f80e566500421bd7760b2e050fea3fde5e

Authored by Mark Brown
1 parent 117ef9570b

ASoC: Fix reporting of partial jack updates

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>
Cc: stable@kernel.org

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

sound/soc/soc-jack.c
... ... @@ -105,7 +105,7 @@
105 105  
106 106 snd_soc_dapm_sync(dapm);
107 107  
108   - snd_jack_report(jack->jack, status);
  108 + snd_jack_report(jack->jack, jack->status);
109 109  
110 110 out:
111 111 mutex_unlock(&codec->mutex);