From bd463f8d5fe42c72fb3edd740d50f0c5e0da263f Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Thu, 6 Apr 2023 13:41:36 +0800 Subject: [PATCH] ASoC: SOF: add fw_exception support on IPC4 path Driver will receive exception IPC message and process it by snd_sof_handle_fw_exception. Signed-off-by: Rander Wang --- sound/soc/sof/ipc4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sound/soc/sof/ipc4.c b/sound/soc/sof/ipc4.c index ab6eddd91bb771..d29a6e2bf995af 100644 --- a/sound/soc/sof/ipc4.c +++ b/sound/soc/sof/ipc4.c @@ -614,6 +614,9 @@ static void sof_ipc4_rx_msg(struct snd_sof_dev *sdev) case SOF_IPC4_NOTIFY_LOG_BUFFER_STATUS: sof_ipc4_mtrace_update_pos(sdev, SOF_IPC4_LOG_CORE_GET(ipc4_msg->primary)); break; + case SOF_IPC4_NOTIFY_EXCEPTION_CAUGHT: + snd_sof_handle_fw_exception(sdev, "FW Panic"); + break; default: dev_dbg(sdev->dev, "Unhandled DSP message: %#x|%#x\n", ipc4_msg->primary, ipc4_msg->extension);