linux/sound/soc/mediatek/mt8195
YC Hung 83f1b7f39a
ASoC: mediatek: mt8195: add sof be ops to check audio active
In MT8195 SOF design, both DSP and audio driver would access audio
registers. Before DSP accesses audio registers, audio power and clock
should be enabled. DSP will hang up if DSP access audio register but
audio power and clock are disabled. Therefore, we add audio pm runtime
active checking before accessing audio registers in SOF BE's callback
hw_params function to avoid this situation.

Signed-off-by: YC Hung <yc.hung@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Acked-by: Curtis Malainey <cujomalainey@chromium.org>
Link: https://lore.kernel.org/r/20221209031053.8444-1-yc.hung@mediatek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-12-12 15:44:23 +00:00
..
Makefile ASoC: mediatek: mt8195: merge machine driver 2022-04-04 08:39:38 +01:00
mt8195-afe-clk.c ASoC: mediatek: mt8195: update audio tuner settings 2022-09-28 12:30:48 +01:00
mt8195-afe-clk.h ASoC: mediatek: mt8195: enable apll tuner 2022-02-21 13:24:56 +00:00
mt8195-afe-common.h ASoC: mediatek: mt8195: add platform driver 2021-08-24 19:13:56 +01:00
mt8195-afe-pcm.c ASoC: mediatek: mt8195: add reset controller 2022-03-11 13:41:12 +00:00
mt8195-audsys-clk.c ASoC: mediatek: mt8195: update audsys clock parent name 2021-10-08 17:22:50 +01:00
mt8195-audsys-clk.h
mt8195-audsys-clkid.h
mt8195-dai-adda.c ASoC: mediatek: mt8195: make array adda_dai_list static const 2021-09-15 13:12:27 +01:00
mt8195-dai-etdm.c ASoC: mediatek: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:05 +01:00
mt8195-dai-pcm.c ASoC: mediatek: Rename set_fmt_new back to set_fmt 2022-06-06 12:34:05 +01:00
mt8195-mt6359.c ASoC: mediatek: mt8195: add sof be ops to check audio active 2022-12-12 15:44:23 +00:00
mt8195-reg.h ASoC: mediatek: mt8195: correct pcmif BE dai control flow 2021-12-31 13:20:57 +00:00