diff options
author | Jeeja KP <jeeja.kp@intel.com> | 2015-12-03 20:59:53 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-12-08 20:57:51 +0300 |
commit | 4ced182763286a7c26cf671b27d1ddd58cf6cec8 (patch) | |
tree | 3e917f25db0d7282d31d97faa1a6486250a09b15 /sound/soc/intel/skylake/skl-tplg-interface.h | |
parent | fd18110f1480d51f416cea6d5f63b83f85b14043 (diff) | |
download | linux-4ced182763286a7c26cf671b27d1ddd58cf6cec8.tar.xz |
ASoC: Intel: Skylake: Fix module init data correctly
Module initialization parameter data can be set by
- INIT_INSTANCE IPC by using the default value
- SET_PARAMS immediately after INIT_INSTANCE
- SET_PARAMS data from kcontrol values set
this patch add param type to identify the parameters
has to be sent to DSP.
Signed-off-by: Jeeja KP <jeeja.kp@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-tplg-interface.h')
-rw-r--r-- | sound/soc/intel/skylake/skl-tplg-interface.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sound/soc/intel/skylake/skl-tplg-interface.h b/sound/soc/intel/skylake/skl-tplg-interface.h index 626b148317fe..c9ae010b3cc8 100644 --- a/sound/soc/intel/skylake/skl-tplg-interface.h +++ b/sound/soc/intel/skylake/skl-tplg-interface.h @@ -141,6 +141,12 @@ enum module_pin_type { SKL_PIN_TYPE_HETEROGENEOUS, }; +enum skl_module_param_type { + SKL_PARAM_DEFAULT = 0, + SKL_PARAM_INIT, + SKL_PARAM_SET +}; + struct skl_dfw_module_pin { u16 module_id; u16 instance_id; @@ -158,8 +164,8 @@ struct skl_dfw_module_fmt { } __packed; struct skl_dfw_module_caps { - u32 set_params:1; - u32 rsvd:31; + u32 set_params:2; + u32 rsvd:30; u32 param_id; u32 caps_size; u32 caps[HDA_SST_CFG_MAX]; @@ -214,10 +220,10 @@ struct skl_dfw_module { } __packed; struct skl_dfw_algo_data { - u32 set_params:1; - u32 rsvd:31; - u32 max; + u32 set_params:2; + u32 rsvd:30; u32 param_id; + u32 max; char params[0]; } __packed; |