Richard Fitzgerald fdd5352837
ASoC: cs42l42: Report initial jack state
When a jack handler is registered in cs42l42_set_jack() the
initial state should be reported if an attached headphone/headset
has already been detected.

The jack detect sequence takes around 1 second: typically long
enough for the machine driver to probe and register the jack handler
in time to receive the first report from the interrupt handler. So
it is possible on some systems that the correct initial state was seen
simply because of lucky timing. Modular builds were more likely to
miss the reporting of the initial state.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: 4ca239f33737 ("ASoC: cs42l42: Always enable TS_PLUG and TS_UNPLUG interrupts")
Link: https://lore.kernel.org/r/20211119124854.58939-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2021-11-22 15:40:32 +00:00
..
2021-04-20 17:25:51 +01:00
2021-11-15 19:25:20 +00:00
2021-11-15 19:25:20 +00:00
2021-11-15 19:25:20 +00:00
2021-03-10 13:10:37 +00:00
2021-09-27 12:59:09 +01:00
2021-03-31 18:00:38 +01:00
2021-03-31 18:00:38 +01:00
2021-02-04 18:45:19 +00:00
2021-11-15 19:25:20 +00:00
2021-06-09 11:52:35 +01:00
2018-04-26 12:44:15 +01:00
2021-10-02 01:31:58 +01:00
2019-06-12 13:52:26 +01:00
2020-05-07 13:18:04 +01:00
2019-07-26 13:10:09 +01:00
2020-12-09 17:00:33 +00:00
2018-05-18 11:20:11 +01:00
2018-06-01 12:05:30 +01:00
2020-07-20 15:34:29 +01:00
2020-10-26 15:27:13 +01:00
2020-10-02 21:05:29 +01:00
2021-03-11 13:24:15 +00:00
2021-03-11 13:24:17 +00:00