All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: intel: Don't print FW version repeatedly
@ 2017-03-27  8:39 Takashi Iwai
  2017-03-27 10:06 ` Vinod Koul
  2017-03-27 11:32 ` Applied "ASoC: intel: Don't print FW version repeatedly" to the asoc tree Mark Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Takashi Iwai @ 2017-03-27  8:39 UTC (permalink / raw)
  To: Mark Brown; +Cc: Liam Girdwood, Vinod Koul, alsa-devel, Pierre-Louis Bossart

Intel SST driver spews an info message "FW Versoin xxxx" at each time
the device gets initialized.  Since it's triggered at each PM (or even
runtime PM), it appears so ofetn, and rather becomes annoying than
useful.

This patch suppresses the superfluous messages by checking the
currently loaded FW version with the previously loaded one.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/soc/intel/atom/sst/sst_ipc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sound/soc/intel/atom/sst/sst_ipc.c b/sound/soc/intel/atom/sst/sst_ipc.c
index 14c2d9d18180..20b01e02ed8f 100644
--- a/sound/soc/intel/atom/sst/sst_ipc.c
+++ b/sound/soc/intel/atom/sst/sst_ipc.c
@@ -236,7 +236,9 @@ static void process_fw_init(struct intel_sst_drv *sst_drv_ctx,
 		retval = init->result;
 		goto ret;
 	}
-	dev_info(sst_drv_ctx->dev, "FW Version %02x.%02x.%02x.%02x\n",
+	if (memcmp(&sst_drv_ctx->fw_version, &init->fw_version,
+		   sizeof(init->fw_version)))
+		dev_info(sst_drv_ctx->dev, "FW Version %02x.%02x.%02x.%02x\n",
 			init->fw_version.type, init->fw_version.major,
 			init->fw_version.minor, init->fw_version.build);
 	dev_dbg(sst_drv_ctx->dev, "Build date %s Time %s\n",
-- 
2.11.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-03-27 12:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-27  8:39 [PATCH] ASoC: intel: Don't print FW version repeatedly Takashi Iwai
2017-03-27 10:06 ` Vinod Koul
2017-03-27 10:13   ` Mark Brown
2017-03-27 10:24     ` Takashi Iwai
2017-03-27 10:37       ` Vinod Koul
2017-03-27 12:10         ` Takashi Iwai
2017-03-27 10:25     ` Vinod Koul
2017-03-27 11:32 ` Applied "ASoC: intel: Don't print FW version repeatedly" to the asoc tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.