wm8990.c (bf61c8840efe60fd8f91446860b63338fb424158) | wm8990.c (fc99adc3d82c3cbec9b12b2a638dbdd2a2e4ece1) |
---|---|
1/* 2 * wm8990.c -- WM8990 ALSA Soc Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics PLC. 5 * Author: Liam Girdwood <lrg@slimlogic.co.uk> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 137 unchanged lines hidden (view full) --- 146 return ret; 147 148 /* now hit the volume update bits (always bit 8) */ 149 val = snd_soc_read(codec, reg); 150 return snd_soc_write(codec, reg, val | 0x0100); 151} 152 153#define SOC_WM899X_OUTPGA_SINGLE_R_TLV(xname, reg, shift, max, invert,\ | 1/* 2 * wm8990.c -- WM8990 ALSA Soc Audio driver 3 * 4 * Copyright 2008 Wolfson Microelectronics PLC. 5 * Author: Liam Girdwood <lrg@slimlogic.co.uk> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the --- 137 unchanged lines hidden (view full) --- 146 return ret; 147 148 /* now hit the volume update bits (always bit 8) */ 149 val = snd_soc_read(codec, reg); 150 return snd_soc_write(codec, reg, val | 0x0100); 151} 152 153#define SOC_WM899X_OUTPGA_SINGLE_R_TLV(xname, reg, shift, max, invert,\ |
154 tlv_array) {\ 155 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, .name = (xname), \ 156 .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |\ 157 SNDRV_CTL_ELEM_ACCESS_READWRITE,\ 158 .tlv.p = (tlv_array), \ 159 .info = snd_soc_info_volsw, \ 160 .get = snd_soc_get_volsw, .put = wm899x_outpga_put_volsw_vu, \ 161 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert) } | 154 tlv_array) \ 155 SOC_SINGLE_EXT_TLV(xname, reg, shift, max, invert, \ 156 snd_soc_get_volsw, wm899x_outpga_put_volsw_vu, tlv_array) |
162 163 164static const char *wm8990_digital_sidetone[] = 165 {"None", "Left ADC", "Right ADC", "Reserved"}; 166 167static const struct soc_enum wm8990_left_digital_sidetone_enum = 168SOC_ENUM_SINGLE(WM8990_DIGITAL_SIDE_TONE, 169 WM8990_ADC_TO_DACL_SHIFT, --- 1283 unchanged lines hidden --- | 157 158 159static const char *wm8990_digital_sidetone[] = 160 {"None", "Left ADC", "Right ADC", "Reserved"}; 161 162static const struct soc_enum wm8990_left_digital_sidetone_enum = 163SOC_ENUM_SINGLE(WM8990_DIGITAL_SIDE_TONE, 164 WM8990_ADC_TO_DACL_SHIFT, --- 1283 unchanged lines hidden --- |