diff options
author | Guneshwor Singh <guneshwor.o.singh@intel.com> | 2017-08-02 18:21:13 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-08-03 12:07:15 +0200 |
commit | f0a550a88373b0b076785e059cca15f32ae9ffeb (patch) | |
tree | 9352a31b5b074930220abe7c1cda2897fbb7bc67 /sound/soc/intel/skylake/skl-sst-ipc.h | |
parent | ASoC: Intel: Skylake: Add num of cores in dsp ops (diff) | |
download | linux-f0a550a88373b0b076785e059cca15f32ae9ffeb.tar.xz linux-f0a550a88373b0b076785e059cca15f32ae9ffeb.zip |
ASoC: Intel: Skylake: Use num_core to allocate instead of macro
For different platforms, number of dsp cores can vary. So instead of
creating array of size SKL_DSP_CORES_MAX, use num_core in dsp_ops() of
the respective platform to allocate core usage counts and states.
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl-sst-ipc.h')
-rw-r--r-- | sound/soc/intel/skylake/skl-sst-ipc.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/intel/skylake/skl-sst-ipc.h b/sound/soc/intel/skylake/skl-sst-ipc.h index e057da2713c6..e485e8f5ea2c 100644 --- a/sound/soc/intel/skylake/skl-sst-ipc.h +++ b/sound/soc/intel/skylake/skl-sst-ipc.h @@ -44,12 +44,10 @@ struct skl_ipc_header { u32 extension; }; -#define SKL_DSP_CORES_MAX 2 - struct skl_dsp_cores { unsigned int count; - enum skl_dsp_states state[SKL_DSP_CORES_MAX]; - int usage_count[SKL_DSP_CORES_MAX]; + enum skl_dsp_states *state; + int *usage_count; }; /** |