diff options
author | Sebastien Guiriec <sebastien.guiriec@intel.com> | 2016-12-05 11:45:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-12-05 12:22:25 -0500 |
commit | c7da1e9d2641f67e8b20703118ac02fe79604f10 (patch) | |
tree | ef077c9a418a1900ed6ecc2a84b5a524c059f0fc | |
parent | fade74dfab7cdba55a197db08f3d15cf2319bf4c (diff) |
ASoC: Intel: atom: save FW version
After the boot of the SST FW the firmware version is send back
to the driver. This patch is saving the FW version inside the
driver.
Signed-off-by: Sebastien Guiriec <sebastien.guiriec@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/atom/sst/sst.h | 1 | ||||
-rw-r--r-- | sound/soc/intel/atom/sst/sst_ipc.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/intel/atom/sst/sst.h b/sound/soc/intel/atom/sst/sst.h index 3f493862e98d..5c9a51cc77aa 100644 --- a/sound/soc/intel/atom/sst/sst.h +++ b/sound/soc/intel/atom/sst/sst.h | |||
@@ -436,6 +436,7 @@ struct intel_sst_drv { | |||
436 | */ | 436 | */ |
437 | char firmware_name[FW_NAME_SIZE]; | 437 | char firmware_name[FW_NAME_SIZE]; |
438 | 438 | ||
439 | struct snd_sst_fw_version fw_version; | ||
439 | struct sst_fw_save *fw_save; | 440 | struct sst_fw_save *fw_save; |
440 | }; | 441 | }; |
441 | 442 | ||
diff --git a/sound/soc/intel/atom/sst/sst_ipc.c b/sound/soc/intel/atom/sst/sst_ipc.c index 7934a0047384..374bb61c596d 100644 --- a/sound/soc/intel/atom/sst/sst_ipc.c +++ b/sound/soc/intel/atom/sst/sst_ipc.c | |||
@@ -242,6 +242,12 @@ static void process_fw_init(struct intel_sst_drv *sst_drv_ctx, | |||
242 | dev_dbg(sst_drv_ctx->dev, "Build date %s Time %s\n", | 242 | dev_dbg(sst_drv_ctx->dev, "Build date %s Time %s\n", |
243 | init->build_info.date, init->build_info.time); | 243 | init->build_info.date, init->build_info.time); |
244 | 244 | ||
245 | /* Save FW version */ | ||
246 | sst_drv_ctx->fw_version.type = init->fw_version.type; | ||
247 | sst_drv_ctx->fw_version.major = init->fw_version.major; | ||
248 | sst_drv_ctx->fw_version.minor = init->fw_version.minor; | ||
249 | sst_drv_ctx->fw_version.build = init->fw_version.build; | ||
250 | |||
245 | ret: | 251 | ret: |
246 | sst_wake_up_block(sst_drv_ctx, retval, FW_DWNL_ID, 0 , NULL, 0); | 252 | sst_wake_up_block(sst_drv_ctx, retval, FW_DWNL_ID, 0 , NULL, 0); |
247 | } | 253 | } |