|
179 | 179 | .get = snd_soc_get_volsw, .put = snd_soc_put_volsw, \
|
180 | 180 | .private_value = SOC_DOUBLE_R_S_VALUE(reg_left, reg_right, xshift, \
|
181 | 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 | 193 | #define SOC_DOUBLE_S8_TLV(xname, xreg, xmin, xmax, tlv_array) \
|
183 | 194 | { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \
|
184 | 195 | .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ | \
|
|
0 commit comments