ASoC: SOF: ipc4: Dump the notification payload
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 12 Oct 2023 19:18:49 +0000 (15:18 -0400)
committerMark Brown <broonie@kernel.org>
Thu, 12 Oct 2023 19:28:11 +0000 (20:28 +0100)
Now that we have notifications with payload (kcontrol change
notifications), it is time to add the payload dump on the rx path as well.

Reviewed-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20231012191850.147140-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc4.c

index 3f4d57d..8441f4a 100644 (file)
@@ -666,6 +666,10 @@ static void sof_ipc4_rx_msg(struct snd_sof_dev *sdev)
        sof_ipc4_log_header(sdev->dev, "ipc rx done ", ipc4_msg, true);
 
        if (data_size) {
+               if (sof_debug_check_flag(SOF_DBG_DUMP_IPC_MESSAGE_PAYLOAD))
+                       sof_ipc4_dump_payload(sdev, ipc4_msg->data_ptr,
+                                             ipc4_msg->data_size);
+
                kfree(ipc4_msg->data_ptr);
                ipc4_msg->data_ptr = NULL;
                ipc4_msg->data_size = 0;