diff options
| author | Sebastien Guiriec <[email protected]> | 2016-12-05 16:45:01 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2016-12-05 17:22:25 +0000 |
| commit | c7da1e9d2641f67e8b20703118ac02fe79604f10 (patch) | |
| tree | ef077c9a418a1900ed6ecc2a84b5a524c059f0fc /sound/soc/intel/atom/sst/sst_ipc.c | |
| parent | ASoC: Intel: atom: Add sysfs entry in order to store FW version (diff) | |
| download | kernel-c7da1e9d2641f67e8b20703118ac02fe79604f10.tar.gz kernel-c7da1e9d2641f67e8b20703118ac02fe79604f10.zip | |
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 <[email protected]>
Acked-by: Vinod Koul <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'sound/soc/intel/atom/sst/sst_ipc.c')
| -rw-r--r-- | sound/soc/intel/atom/sst/sst_ipc.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, dev_dbg(sst_drv_ctx->dev, "Build date %s Time %s\n", init->build_info.date, init->build_info.time); + /* Save FW version */ + sst_drv_ctx->fw_version.type = init->fw_version.type; + sst_drv_ctx->fw_version.major = init->fw_version.major; + sst_drv_ctx->fw_version.minor = init->fw_version.minor; + sst_drv_ctx->fw_version.build = init->fw_version.build; + ret: sst_wake_up_block(sst_drv_ctx, retval, FW_DWNL_ID, 0 , NULL, 0); } |
