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
163163 } __attribute__((packed));
164164
165165 /*
166− * Kcontrol Operations IDs
166+ * Genericl Operations IDs, for binding Kcontrol or Bytes ext ops
167+ * Kcontrol ops need get/put/info.
168+ * Bytes ext ops need get/put.
167169 */
168−struct snd_soc_tplg_kcontrol_ops_id {
170+struct snd_soc_tplg_io_ops {
169171 __le32 get;
170172 __le32 put;
171173 __le32 info;
@@ -179,7 +181,7 @@ struct snd_soc_tplg_ctl_hdr { · 7 unmodified lines
179181 __le32 type;
180182 char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
181183 __le32 access;
182− struct snd_soc_tplg_kcontrol_ops_id ops;
184+ struct snd_soc_tplg_io_ops ops;
183185 struct snd_soc_tplg_ctl_tlv tlv;
184186 } __attribute__((packed));
185187
@@ -311,6 +313,7 @@ struct snd_soc_tplg_bytes_control { · 125 unmodified lines
311313 __le32 mask;
312314 __le32 base;
313315 __le32 num_regs;
316+ struct snd_soc_tplg_io_ops ext_ops;
314317 struct snd_soc_tplg_private priv;
315318 } __attribute__((packed));
316319