History

ASoC: topology: Add ops support to byte controls UAPI

Add UAPI support for setting byte control ops. Rename the ops structure to be more generic so it can be sued by other objects too.

Mengdong Lin committed 11 years ago

Commit cb884981 parent 28a87ee1 file · +6 −3Browse files

Showing the changes to include/uapi (1 of 1 file). Show all

Unified · Split

include/uapi/sound/asoc.h+6−3
@@ -163,9 +163,11 @@ struct snd_soc_tplg_channel { · 162 unmodified lines
163} __attribute__((packed));163} __attribute__((packed));
164 164
165/*165/*
166 * Kcontrol Operations IDs166 * Genericl Operations IDs, for binding Kcontrol or Bytes ext ops
167 * Kcontrol ops need get/put/info.
168 * Bytes ext ops need get/put.
167 */169 */
168struct snd_soc_tplg_kcontrol_ops_id {170struct snd_soc_tplg_io_ops {
169 __le32 get;171 __le32 get;
170 __le32 put;172 __le32 put;
171 __le32 info;173 __le32 info;
@@ -179,7 +181,7 @@ struct snd_soc_tplg_ctl_hdr { · 7 unmodified lines
179 __le32 type;181 __le32 type;
180 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];182 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
181 __le32 access;183 __le32 access;
182 struct snd_soc_tplg_kcontrol_ops_id ops;184 struct snd_soc_tplg_io_ops ops;
183 struct snd_soc_tplg_ctl_tlv tlv;185 struct snd_soc_tplg_ctl_tlv tlv;
184} __attribute__((packed));186} __attribute__((packed));
185 187
@@ -311,6 +313,7 @@ struct snd_soc_tplg_bytes_control { · 125 unmodified lines
311 __le32 mask;313 __le32 mask;
312 __le32 base;314 __le32 base;
313 __le32 num_regs;315 __le32 num_regs;
316 struct snd_soc_tplg_io_ops ext_ops;
314 struct snd_soc_tplg_private priv;317 struct snd_soc_tplg_private priv;
315} __attribute__((packed));318} __attribute__((packed));
316 319