Skip to content

Commit

Permalink
ASoC: Fix reporting of partial jack updates
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mark Brown committed Sep 6, 2011
1 parent 117ef95 commit 747da0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/soc-jack.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask)

snd_soc_dapm_sync(dapm);

snd_jack_report(jack->jack, status);
snd_jack_report(jack->jack, jack->status);

out:
mutex_unlock(&codec->mutex);
Expand Down

0 comments on commit 747da0f

Please sign in to comment.