ASoC: sun50i-codec-analog: Enable jack detection on startup
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Sat, 2 Mar 2024 14:00:37 +0000 (15:00 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 00:32:31 +0000 (00:32 +0000)
commitd5961e43b28668088087befbf4f7a043bd0ae65c
treeb0538fd8224512347f844da3d0428adaa5c44b7b
parentc556814b926c3f16fdca3d18cac793ccf0d14c44
ASoC: sun50i-codec-analog: Enable jack detection on startup

This commit adds the necessary setup to enable jack detection on startup
as well as the callback function enabling the microphone ADC when
headset bias is enabled. The microphone ADC is also disabled in suspend.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
[Samuel: Moved MICADCEN setup to HBIAS event, added bias hooks]
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Ondřej Jirman <megi@xff.cz>
Link: https://msgid.link/r/20240302140042.1990256-4-megi@xff.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun50i-codec-analog.c