diff options
-rw-r--r-- | include/sound/soc.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index fd7b58a58d6f..6144882cc96a 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h | |||
@@ -179,6 +179,17 @@ | |||
179 | .get = snd_soc_get_volsw, .put = snd_soc_put_volsw, \ | 179 | .get = snd_soc_get_volsw, .put = snd_soc_put_volsw, \ |
180 | .private_value = SOC_DOUBLE_R_S_VALUE(reg_left, reg_right, xshift, \ | 180 | .private_value = SOC_DOUBLE_R_S_VALUE(reg_left, reg_right, xshift, \ |
181 | xmin, xmax, xsign_bit, xinvert) } | 181 | xmin, xmax, xsign_bit, xinvert) } |
182 | #define SOC_SINGLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \ | ||
183 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \ | ||
184 | .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \ | ||
185 | SNDRV_CTL_ELEM_ACCESS_READWRITE, \ | ||
186 | .tlv.p = (tlv_array), \ | ||
187 | .info = snd_soc_info_volsw, .get = snd_soc_get_volsw,\ | ||
188 | .put = snd_soc_put_volsw, \ | ||
189 | .private_value = (unsigned long)&(struct soc_mixer_control) \ | ||
190 | {.reg = xreg, .rreg = xreg, \ | ||
191 | .min = xmin, .max = xmax, .platform_max = xmax, \ | ||
192 | .sign_bit = 7,} } | ||
182 | #define SOC_DOUBLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \ | 193 | #define SOC_DOUBLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \ |
183 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \ | 194 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \ |
184 | .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \ | 195 | .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \ |