summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof
diff options
context:
space:
mode:
authorDragos Tarcatu2019-06-12 18:57:01 +0200
committerMark Brown2019-06-13 20:53:14 +0200
commit4cee883e97b6095e23f5d72543da93e1506ff8c2 (patch)
treef3c36f94c5b670167e336df88a3664e189cd9736 /sound/soc/sof
parentASoC: soc-topology: fix modern dai link style (diff)
downloadkernel-qcow2-linux-4cee883e97b6095e23f5d72543da93e1506ff8c2.tar.gz
kernel-qcow2-linux-4cee883e97b6095e23f5d72543da93e1506ff8c2.tar.xz
kernel-qcow2-linux-4cee883e97b6095e23f5d72543da93e1506ff8c2.zip
ASOC: SOF: ipc: prevent logging trace messages
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>
Diffstat (limited to 'sound/soc/sof')
-rw-r--r--sound/soc/sof/ipc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sof/ipc.c b/sound/soc/sof/ipc.c
index 558b596e2133..f3eb46bc808b 100644
--- a/sound/soc/sof/ipc.c
+++ b/sound/soc/sof/ipc.c
@@ -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