diff options
author | YC Hung <yc.hung@mediatek.com> | 2022-12-09 11:10:53 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-12-12 15:44:23 +0000 |
commit | 83f1b7f39af73b01edf098fe3141404670703281 (patch) | |
tree | b2d04c5e88504022f814ff7eacf2602d46527f49 /lib/test_fortify/write_overflow_field-memcpy.c | |
parent | e85b1f5a9769ac30f4d2f6fb1cdcd9570c38e0c1 (diff) |
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>
Diffstat (limited to 'lib/test_fortify/write_overflow_field-memcpy.c')
0 files changed, 0 insertions, 0 deletions