WSL2-Linux-Kernel/sound/soc/mediatek
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
..
common ASoC: mediatek: mtk-btcvsd: Add checks for write and read of mtk_btcvsd_snd 2022-11-25 19:31:14 +00:00
mt2701 ASoC: mediatek: mt2701-wm8960: Register to module device table 2022-11-09 13:44:24 +00:00
mt6797 ASoC: mediatek: mt6797-mt6351: Register to module device table 2022-11-09 13:44:25 +00:00
mt8173 ASoC: mediatek: mt8173-rt5650-rt5514: fix refcount leak in mt8173_rt5650_rt5514_dev_probe() 2022-12-07 14:19:11 +00:00
mt8183 ASoC: mediatek: mt8183: fix refcount leak in mt8183_mt6358_ts3a227_max98357_dev_probe() 2022-12-07 14:19:15 +00:00
mt8186 ASoC: mediatek: mt8186: Correct I2S shared clocks 2022-11-24 15:29:38 +00:00
mt8192 ASoC: mediatek: mt8192-mt6359: Register to module device table 2022-11-09 13:44:30 +00:00
mt8195 ASoC: mediatek: mt8195: add sof be ops to check audio active 2022-12-12 15:44:23 +00:00
Kconfig ASoC: mediatek: mt8186: fix Kconfig dependency 2022-07-25 13:16:41 +01:00
Makefile ASoC: mediatek: mt8186: add platform driver 2022-07-20 17:42:24 +01:00