ASoC: SOF: mediatek: add shutdown callback
authorRicardo Ribalda <ribalda@chromium.org>
Sun, 27 Nov 2022 20:04:15 +0000 (21:04 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 30 Nov 2022 11:35:43 +0000 (11:35 +0000)
commite063330a77edbdc57a142a27a82e51dc1361ab9d
tree46a2bcbdde2f1acda687de3645a8c36fabfba57c
parent93d519a12a83baa19dae59d121439b04fb9dfded
ASoC: SOF: mediatek: add shutdown callback

If we do not shutdown the peripheral properly at shutdown, the whole system
crashes after kexec() on the first io access.

Let's implement the appropriate callback.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20221127-mtk-snd-v1-0-b7886faa612b@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/mediatek/mt8186/mt8186.c