clear-pkgs-linux-iot-lts2018/0322-ASoC-Intel-Skylake-Get...

38 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Diwakar, Praveen" <praveen.diwakar@intel.com>
Date: Wed, 28 Jun 2017 16:49:23 +0530
Subject: [PATCH] ASoC: Intel: Skylake: Get dsp core count from hw config ipc
Instead of getting dsp core count from hard coded value, use hw
config ipc to reterive the same.
Signed-off-by: Diwakar, Praveen <praveen.diwakar@intel.com>
---
sound/soc/intel/skylake/cnl-sst.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sound/soc/intel/skylake/cnl-sst.c b/sound/soc/intel/skylake/cnl-sst.c
index e4f7a643252b..dbb09283e88e 100644
--- a/sound/soc/intel/skylake/cnl-sst.c
+++ b/sound/soc/intel/skylake/cnl-sst.c
@@ -272,6 +272,16 @@ static int cnl_load_base_firmware(struct sst_dsp *ctx)
goto cnl_load_base_firmware_failed;
}
+ ret = skl_get_hardware_configuration(ctx);
+ if (ret < 0) {
+ dev_err(ctx->dev, "hwconfig ipc failed !\n");
+ ret = -EIO;
+ goto cnl_load_base_firmware_failed;
+ }
+
+ /* Update dsp core count retrieved from hw config IPC */
+ cnl->cores.count = cnl->hw_property.dsp_cores;
+
return 0;
cnl_load_base_firmware_failed:
--
https://clearlinux.org