diff options
| -rw-r--r-- | sound/soc/sof/ipc4-topology.h | 19 | 
1 files changed, 18 insertions, 1 deletions
diff --git a/sound/soc/sof/ipc4-topology.h b/sound/soc/sof/ipc4-topology.h index d94f0ab4aee3..0a57b8ab3e08 100644 --- a/sound/soc/sof/ipc4-topology.h +++ b/sound/soc/sof/ipc4-topology.h @@ -319,7 +319,7 @@ struct sof_ipc4_copier {  /**   * struct sof_ipc4_ctrl_value_chan: generic channel mapped value data   * @channel: Channel ID - * @value: gain value + * @value: Value associated with @channel   */  struct sof_ipc4_ctrl_value_chan {  	u32 channel; @@ -343,6 +343,23 @@ struct sof_ipc4_control_data {  	};  }; +#define SOF_IPC4_SWITCH_CONTROL_PARAM_ID	200 +#define SOF_IPC4_ENUM_CONTROL_PARAM_ID		201 + +/** + * struct sof_ipc4_control_msg_payload - IPC payload for kcontrol parameters + * @id: unique id of the control + * @num_elems: Number of elements in the chanv array + * @reserved: reserved for future use, must be set to 0 + * @chanv: channel ID and value array + */ +struct sof_ipc4_control_msg_payload { +	uint16_t id; +	uint16_t num_elems; +	uint32_t reserved[4]; +	DECLARE_FLEX_ARRAY(struct sof_ipc4_ctrl_value_chan, chanv); +} __packed; +  /**   * struct sof_ipc4_gain_data - IPC gain blob   * @channels: Channels  | 
