Message ID | 1460498902-30454-4-git-send-email-vedang.patel@intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
From: Vedang Patel <vedang.patel@intel.com>
There have been complaints regarding audio related kernel messages flooding
dmesg. This series tries to address those complaints.
Also, I have created 3 different patches for this because they touch different
drivers. But, I can combine those to reduce the number of patches.
v2 Changes:
- use print_hex_dump_debug instead of #ifdef DEBUG
Vedang Patel (3):
ASoC: hdac_hdmi: Increase loglevel of hex dump printed
ASoC: Intel: common: increase the loglevel of "FW Poll Status".
ASoC: Intel: Skylake: Increase loglevel of debug messages.
sound/soc/codecs/hdac_hdmi.c | 5 +++--
sound/soc/intel/common/sst-dsp.c | 2 +-
sound/soc/intel/skylake/skl-messages.c | 2 +-
sound/soc/intel/skylake/skl-sst-ipc.c | 4 ++--
4 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c index e3d149c..da2dbb2 100644 --- a/sound/soc/intel/skylake/skl-messages.c +++ b/sound/soc/intel/skylake/skl-messages.c @@ -730,8 +730,10 @@ static int skl_set_module_format(struct skl_sst *ctx, dev_dbg(ctx->dev, "Module type=%d config size: %d bytes\n", module_config->id.module_id, param_size); +#ifdef DEBUG print_hex_dump(KERN_DEBUG, "Module params:", DUMP_PREFIX_OFFSET, 8, 4, *param_data, param_size, false); +#endif return 0; } diff --git a/sound/soc/intel/skylake/skl-sst-ipc.c b/sound/soc/intel/skylake/skl-sst-ipc.c index 5434602..5ee1420 100644 --- a/sound/soc/intel/skylake/skl-sst-ipc.c +++ b/sound/soc/intel/skylake/skl-sst-ipc.c @@ -363,7 +363,7 @@ static void skl_ipc_process_reply(struct sst_generic_ipc *ipc, /* first process the header */ switch (reply) { case IPC_GLB_REPLY_SUCCESS: - dev_info(ipc->dev, "ipc FW reply %x: success\n", header.primary); + dev_dbg(ipc->dev, "ipc FW reply %x: success\n", header.primary); /* copy the rx data from the mailbox */ sst_dsp_inbox_read(ipc->dsp, msg->rx_data, msg->rx_size); break; @@ -688,12 +688,15 @@ int skl_ipc_init_instance(struct sst_generic_ipc *ipc, struct skl_ipc_header header = {0}; u64 *ipc_header = (u64 *)(&header); int ret; - u32 *buffer = (u32 *)param_data; /* param_block_size must be in dwords */ u16 param_block_size = msg->param_data_size / sizeof(u32); +#ifdef DEBUG + u32 *buffer = (u32 *)param_data; + print_hex_dump(KERN_DEBUG, NULL, DUMP_PREFIX_NONE, 16, 4, buffer, param_block_size, false); +#endif header.primary = IPC_MSG_TARGET(IPC_MOD_MSG); header.primary |= IPC_MSG_DIR(IPC_MSG_REQUEST);