diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/uapi/sound/asoc.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/include/uapi/sound/asoc.h b/include/uapi/sound/asoc.h index 2819fc1f8458..aa3a79b42438 100644 --- a/include/uapi/sound/asoc.h +++ b/include/uapi/sound/asoc.h | |||
| @@ -137,11 +137,19 @@ struct snd_soc_tplg_private { | |||
| 137 | /* | 137 | /* |
| 138 | * Kcontrol TLV data. | 138 | * Kcontrol TLV data. |
| 139 | */ | 139 | */ |
| 140 | struct snd_soc_tplg_tlv_dbscale { | ||
| 141 | __le32 min; | ||
| 142 | __le32 step; | ||
| 143 | __le32 mute; | ||
| 144 | } __attribute__((packed)); | ||
| 145 | |||
| 140 | struct snd_soc_tplg_ctl_tlv { | 146 | struct snd_soc_tplg_ctl_tlv { |
| 141 | __le32 size; /* in bytes aligned to 4 */ | 147 | __le32 size; /* in bytes of this structure */ |
| 142 | __le32 numid; /* control element numeric identification */ | 148 | __le32 type; /* SNDRV_CTL_TLVT_*, type of TLV */ |
| 143 | __le32 count; /* number of elem in data array */ | 149 | union { |
| 144 | __le32 data[SND_SOC_TPLG_TLV_SIZE]; | 150 | __le32 data[SND_SOC_TPLG_TLV_SIZE]; |
| 151 | struct snd_soc_tplg_tlv_dbscale scale; | ||
| 152 | }; | ||
| 145 | } __attribute__((packed)); | 153 | } __attribute__((packed)); |
| 146 | 154 | ||
| 147 | /* | 155 | /* |
| @@ -172,7 +180,7 @@ struct snd_soc_tplg_ctl_hdr { | |||
| 172 | char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; | 180 | char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN]; |
| 173 | __le32 access; | 181 | __le32 access; |
| 174 | struct snd_soc_tplg_kcontrol_ops_id ops; | 182 | struct snd_soc_tplg_kcontrol_ops_id ops; |
| 175 | __le32 tlv_size; /* non zero means control has TLV data */ | 183 | struct snd_soc_tplg_ctl_tlv tlv; |
| 176 | } __attribute__((packed)); | 184 | } __attribute__((packed)); |
| 177 | 185 | ||
| 178 | /* | 186 | /* |
| @@ -260,7 +268,6 @@ struct snd_soc_tplg_mixer_control { | |||
| 260 | __le32 invert; | 268 | __le32 invert; |
| 261 | __le32 num_channels; | 269 | __le32 num_channels; |
| 262 | struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN]; | 270 | struct snd_soc_tplg_channel channel[SND_SOC_TPLG_MAX_CHAN]; |
| 263 | struct snd_soc_tplg_ctl_tlv tlv; | ||
| 264 | struct snd_soc_tplg_private priv; | 271 | struct snd_soc_tplg_private priv; |
| 265 | } __attribute__((packed)); | 272 | } __attribute__((packed)); |
| 266 | 273 | ||
