diff options
author | Richard Fitzgerald <[email protected]> | 2022-01-21 12:04:10 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-01-24 13:31:33 +0000 |
commit | 8d06f797f844d04a961f201f886f7f9985edc9bf (patch) | |
tree | 7dfe46b364e290d373bf7f2337dbd5258115323c /tools/perf/scripts/python/futex-contention.py | |
parent | 6cbff4b3a10e3ae5d68f71f197d0a0b14ef97711 (diff) |
ASoC: cs42l42: Report full jack status when plug is detected
When a plug event is detect report the full state of all status
bits, don't assume that there will have been a previous unplug
event to clear all the bits. Report the state of both HEADPHONE
and MICROPHONE bits according to detected type, and clear all the
button status bits. The current button status is already checked
and reported at the end of the function.
During a system suspend the jack could be unplugged and plugged,
possibly changing the jack type. On resume the interrupt status will
indicate a plug event - there will not be an unplug event to clear
the bits.
Signed-off-by: Richard Fitzgerald <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/futex-contention.py')
0 files changed, 0 insertions, 0 deletions