diff options
author | Omair M Abdullah <omair.m.abdullah@intel.com> | 2015-12-03 23:29:56 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-08 17:57:51 +0000 |
commit | 7d9f29119d3e4db6ae817881d8e305650424032c (patch) | |
tree | 4c9d788d943f547935440f6b805661ce9295c61f /sound/soc/intel/skylake/skl-messages.c | |
parent | cce1c7f383e829651e0729d4b0b2cb78ea5cb2d6 (diff) | |
download | blackbird-op-linux-7d9f29119d3e4db6ae817881d8e305650424032c.tar.gz blackbird-op-linux-7d9f29119d3e4db6ae817881d8e305650424032c.zip |
ASoC: Intel: Skylake: read params from DSP if module is on
If a module is ON then we should read the module parameters from
DSP rather than driver cached values
Signed-off-by: Omair M Abdullah <omair.m.abdullah@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl-messages.c')
-rw-r--r-- | sound/soc/intel/skylake/skl-messages.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl-messages.c b/sound/soc/intel/skylake/skl-messages.c index a91161be7f5d..46310d9ac008 100644 --- a/sound/soc/intel/skylake/skl-messages.c +++ b/sound/soc/intel/skylake/skl-messages.c @@ -927,3 +927,16 @@ int skl_set_module_params(struct skl_sst *ctx, u32 *params, int size, return skl_ipc_set_large_config(&ctx->ipc, &msg, params); } + +int skl_get_module_params(struct skl_sst *ctx, u32 *params, int size, + u32 param_id, struct skl_module_cfg *mcfg) +{ + struct skl_ipc_large_config_msg msg; + + msg.module_id = mcfg->id.module_id; + msg.instance_id = mcfg->id.instance_id; + msg.param_data_size = size; + msg.large_param_id = param_id; + + return skl_ipc_get_large_config(&ctx->ipc, &msg, params); +} |