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.
Showing the changes to include/uapi (1 of 1 file). Show all
Unified · Split
| @@ -163,9 +163,11 @@ struct snd_soc_tplg_channel { · 162 unmodified lines | ||
| 163 | 163 | } __attribute__((packed)); |
| 164 | 164 | |
| 165 | 165 | /* |
| 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. | |
| 167 | 169 | */ |
| 168 | −struct snd_soc_tplg_kcontrol_ops_id { | |
| 170 | +struct snd_soc_tplg_io_ops { | |
| 169 | 171 | __le32 get; |
| 170 | 172 | __le32 put; |
| 171 | 173 | __le32 info; |
| @@ -179,7 +181,7 @@ struct snd_soc_tplg_ctl_hdr { · 7 unmodified lines | ||
| 179 | 181 | __le32 type; |
| 180 | 182 | char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; |
| 181 | 183 | __le32 access; |
| 182 | − struct snd_soc_tplg_kcontrol_ops_id ops; | |
| 184 | + struct snd_soc_tplg_io_ops ops; | |
| 183 | 185 | struct snd_soc_tplg_ctl_tlv tlv; |
| 184 | 186 | } __attribute__((packed)); |
| 185 | 187 | |
| @@ -311,6 +313,7 @@ struct snd_soc_tplg_bytes_control { · 125 unmodified lines | ||
| 311 | 313 | __le32 mask; |
| 312 | 314 | __le32 base; |
| 313 | 315 | __le32 num_regs; |
| 316 | + struct snd_soc_tplg_io_ops ext_ops; | |
| 314 | 317 | struct snd_soc_tplg_private priv; |
| 315 | 318 | } __attribute__((packed)); |
| 316 | 319 | |