ASoC: Intel: atom: Add debug information related to FW version
authorSebastien Guiriec <sebastien.guiriec@intel.com>
Fri, 28 Oct 2016 14:32:50 +0000 (16:32 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Oct 2016 17:20:04 +0000 (18:20 +0100)
This patch is adding debug information related to SST FW version.

Signed-off-by: Sebastien Guiriec <sebastien.guiriec@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst/sst_ipc.c

index bfc889950bb2964abc4653afdc9cee9bc3bde248..7934a00473845abb2ab486bf096c0558b7c2221b 100644 (file)
@@ -236,6 +236,11 @@ 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",
+                       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",
+                       init->build_info.date, init->build_info.time);
 
 ret:
        sst_wake_up_block(sst_drv_ctx, retval, FW_DWNL_ID, 0 , NULL, 0);