ASOC: SOF: ipc: prevent logging trace messages
authorDragos Tarcatu <dragos_tarcatu@mentor.com>
Wed, 12 Jun 2019 16:57:01 +0000 (11:57 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 13 Jun 2019 18:53:14 +0000 (19:53 +0100)
If the firmware is set for verbose tracing, the kernel log is flooded
with ipc rx/ipc rx done messages. Prevent logging those unless the
verbose IPC debugging config option is set.

Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc.c

index 558b596e2133a47761e2f5629c4304cb0b338ab6..f3eb46bc808beb72ce1a880713fb16fe779716e7 100644 (file)
@@ -196,7 +196,8 @@ static void ipc_log_header(struct device *dev, u8 *text, u32 cmd)
 #else
 static inline void ipc_log_header(struct device *dev, u8 *text, u32 cmd)
 {
-       dev_dbg(dev, "%s: 0x%x\n", text, cmd);
+       if ((cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_TRACE_MSG)
+               dev_dbg(dev, "%s: 0x%x\n", text, cmd);
 }
 #endif