Skip to content

Commit

Permalink
ASoC: Fix reporting of partial jack updates
Browse files Browse the repository at this point in the history
commit 747da0f 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 <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
broonie authored and gregkh committed Oct 3, 2011
1 parent c4a6765 commit b549d49
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 b549d49

Please sign in to comment.