linux/sound/soc/sunxi
Samuel Holland c556814b92
ASoC: sun8i-codec: Enable bus clock at STANDBY and higher bias
For codec variants that have a bus clock, that clock must be running to
receive interrupts. Since jack and mic accessory detection should work
even when no audio is playing, that means the bus clock should be
enabled any time the system is on.

Accomplish that by tying the bus clock to the runtime PM state, which is
then tied to the bias level not being OFF. Since the codec sets
idle_bias_on, bias will generally never be OFF. However, we can set
suspend_bias_off to maintain the power savings of gating the bus clock
during suspend, when we don't expect jack/accessory detection to work.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Ondřej Jirman <megi@xff.cz>
Link: https://msgid.link/r/20240302140042.1990256-3-megi@xff.cz
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-03-25 00:32:30 +00:00
..
Kconfig ASoC: sunxi: Add Allwinner H6 Digital MIC driver 2022-09-19 17:52:47 +01:00
Makefile ASoC: sunxi: Add Allwinner H6 Digital MIC driver 2022-09-19 17:52:47 +01:00
sun4i-codec.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00
sun4i-i2s.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00
sun4i-spdif.c ASoC: sunxi: sun4i-spdif: Add support for Allwinner H616 2024-01-29 16:55:18 +00:00
sun8i-adda-pr-regmap.c ASoC: sun8i-codec-analog: split regmap code into separate driver 2018-10-17 11:10:59 +01:00
sun8i-adda-pr-regmap.h ASoC: sun8i-codec-analog: split regmap code into separate driver 2018-10-17 11:10:59 +01:00
sun8i-codec-analog.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00
sun8i-codec.c ASoC: sun8i-codec: Enable bus clock at STANDBY and higher bias 2024-03-25 00:32:30 +00:00
sun50i-codec-analog.c ASoC: sun50i-codec-analog: Move suspend/resume to set_bias_level 2024-03-25 00:32:29 +00:00
sun50i-dmic.c ASoC: Explicitly include correct DT includes 2023-10-09 13:13:56 +01:00