Skip to content

Commit d498a3b

Browse files
ujfalusibroonie
authored andcommitted
ASoC: SOF: Add new sof_debug flag to request message payload dump
We only print out the header information of an IPC message in debug level, either in verbose or non verbose way (Kconfig option). On top of the header information the message itself can help reproducing and identifying issues. BIT(11) can be used to request a message payload dump if it is supported by the IPC implementation. Since IPC message payload printing is only implemented for IPC4, the flag will not have any effect to IPC3 for now. Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@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/20230616100039.378150-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d389dcb commit d498a3b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sound/soc/sof/sof-priv.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ struct snd_sof_pcm_stream;
4848
#define SOF_DBG_FORCE_NOCODEC BIT(10) /* ignore all codec-related
4949
* configurations
5050
*/
51+
#define SOF_DBG_DUMP_IPC_MESSAGE_PAYLOAD BIT(11) /* On top of the IPC message header
52+
* dump the message payload also
53+
*/
5154
#define SOF_DBG_DSPLESS_MODE BIT(15) /* Do not initialize and use the DSP */
5255

5356
/* Flag definitions used for controlling the DSP dump behavior */

0 commit comments

Comments
 (0)