mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ASoC: intel: Don't print FW version repeatedly
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> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d7fba9dcf6
commit
36d96039e7
1 changed files with 3 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue