/linux-4.4.14/sound/i2c/other/ |
D | ak4xxx-adda.c | 366 static int snd_akm4xxx_volume_info(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_info() argument 369 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_info() 378 static int snd_akm4xxx_volume_get(struct snd_kcontrol *kcontrol, in snd_akm4xxx_volume_get() argument 381 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in snd_akm4xxx_volume_get() 382 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_volume_get() 383 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_volume_get() 389 static int put_ak_reg(struct snd_kcontrol *kcontrol, int addr, in put_ak_reg() argument 392 struct snd_akm4xxx *ak = snd_kcontrol_chip(kcontrol); in put_ak_reg() 393 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in put_ak_reg() 394 int chip = AK_GET_CHIP(kcontrol->private_value); in put_ak_reg() [all …]
|
D | ak4117.c | 157 static int snd_ak4117_in_error_info(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_info() argument 167 static int snd_ak4117_in_error_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_error_get() argument 170 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_error_get() 174 ptr = (long *)(((char *)chip) + kcontrol->private_value); in snd_ak4117_in_error_get() 183 static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol, in snd_ak4117_in_bit_get() argument 186 struct ak4117 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4117_in_bit_get() 187 unsigned char reg = kcontrol->private_value & 0xff; in snd_ak4117_in_bit_get() 188 unsigned char bit = (kcontrol->private_value >> 8) & 0xff; in snd_ak4117_in_bit_get() 189 unsigned char inv = (kcontrol->private_value >> 31) & 1; in snd_ak4117_in_bit_get() 195 static int snd_ak4117_rx_info(struct snd_kcontrol *kcontrol, in snd_ak4117_rx_info() argument [all …]
|
D | ak4113.c | 188 static int snd_ak4113_in_error_info(struct snd_kcontrol *kcontrol, in snd_ak4113_in_error_info() argument 198 static int snd_ak4113_in_error_get(struct snd_kcontrol *kcontrol, in snd_ak4113_in_error_get() argument 201 struct ak4113 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4113_in_error_get() 205 ptr = (long *)(((char *)chip) + kcontrol->private_value); in snd_ak4113_in_error_get() 214 static int snd_ak4113_in_bit_get(struct snd_kcontrol *kcontrol, in snd_ak4113_in_bit_get() argument 217 struct ak4113 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4113_in_bit_get() 218 unsigned char reg = kcontrol->private_value & 0xff; in snd_ak4113_in_bit_get() 219 unsigned char bit = (kcontrol->private_value >> 8) & 0xff; in snd_ak4113_in_bit_get() 220 unsigned char inv = (kcontrol->private_value >> 31) & 1; in snd_ak4113_in_bit_get() 227 static int snd_ak4113_rx_info(struct snd_kcontrol *kcontrol, in snd_ak4113_rx_info() argument [all …]
|
D | pt2258.c | 84 static int pt2258_stereo_volume_info(struct snd_kcontrol *kcontrol, in pt2258_stereo_volume_info() argument 94 static int pt2258_stereo_volume_get(struct snd_kcontrol *kcontrol, in pt2258_stereo_volume_get() argument 97 struct snd_pt2258 *pt = kcontrol->private_data; in pt2258_stereo_volume_get() 98 int base = kcontrol->private_value; in pt2258_stereo_volume_get() 106 static int pt2258_stereo_volume_put(struct snd_kcontrol *kcontrol, in pt2258_stereo_volume_put() argument 109 struct snd_pt2258 *pt = kcontrol->private_data; in pt2258_stereo_volume_put() 110 int base = kcontrol->private_value; in pt2258_stereo_volume_put() 147 static int pt2258_switch_get(struct snd_kcontrol *kcontrol, in pt2258_switch_get() argument 150 struct snd_pt2258 *pt = kcontrol->private_data; in pt2258_switch_get() 156 static int pt2258_switch_put(struct snd_kcontrol *kcontrol, in pt2258_switch_put() argument [all …]
|
D | ak4114.c | 183 static int snd_ak4114_in_error_info(struct snd_kcontrol *kcontrol, in snd_ak4114_in_error_info() argument 193 static int snd_ak4114_in_error_get(struct snd_kcontrol *kcontrol, in snd_ak4114_in_error_get() argument 196 struct ak4114 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4114_in_error_get() 200 ptr = (long *)(((char *)chip) + kcontrol->private_value); in snd_ak4114_in_error_get() 209 static int snd_ak4114_in_bit_get(struct snd_kcontrol *kcontrol, in snd_ak4114_in_bit_get() argument 212 struct ak4114 *chip = snd_kcontrol_chip(kcontrol); in snd_ak4114_in_bit_get() 213 unsigned char reg = kcontrol->private_value & 0xff; in snd_ak4114_in_bit_get() 214 unsigned char bit = (kcontrol->private_value >> 8) & 0xff; in snd_ak4114_in_bit_get() 215 unsigned char inv = (kcontrol->private_value >> 31) & 1; in snd_ak4114_in_bit_get() 221 static int snd_ak4114_rate_info(struct snd_kcontrol *kcontrol, in snd_ak4114_rate_info() argument [all …]
|
/linux-4.4.14/sound/ppc/ |
D | burgundy.c | 174 static int snd_pmac_burgundy_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume() argument 184 static int snd_pmac_burgundy_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_get_volume() argument 187 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_get_volume() 188 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume() 189 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume() 195 static int snd_pmac_burgundy_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_put_volume() argument 198 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_burgundy_put_volume() 199 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume() 200 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume() 250 static int snd_pmac_burgundy_info_volume_2b(struct snd_kcontrol *kcontrol, in snd_pmac_burgundy_info_volume_2b() argument [all …]
|
D | awacs.c | 135 static int snd_pmac_awacs_info_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_info_volume() argument 145 static int snd_pmac_awacs_get_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_get_volume() argument 148 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_get_volume() 149 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_get_volume() 150 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_volume() 151 int inverted = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_get_volume() 168 static int snd_pmac_awacs_put_volume(struct snd_kcontrol *kcontrol, in snd_pmac_awacs_put_volume() argument 171 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_awacs_put_volume() 172 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_put_volume() 173 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_put_volume() [all …]
|
D | daca.c | 95 static int daca_get_deemphasis(struct snd_kcontrol *kcontrol, in daca_get_deemphasis() argument 98 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_get_deemphasis() 106 static int daca_put_deemphasis(struct snd_kcontrol *kcontrol, in daca_put_deemphasis() argument 109 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_put_deemphasis() 124 static int daca_info_volume(struct snd_kcontrol *kcontrol, in daca_info_volume() argument 134 static int daca_get_volume(struct snd_kcontrol *kcontrol, in daca_get_volume() argument 137 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_get_volume() 146 static int daca_put_volume(struct snd_kcontrol *kcontrol, in daca_put_volume() argument 149 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in daca_put_volume() 173 static int daca_get_amp(struct snd_kcontrol *kcontrol, in daca_get_amp() argument [all …]
|
D | tumbler.c | 256 static int tumbler_info_master_volume(struct snd_kcontrol *kcontrol, in tumbler_info_master_volume() argument 266 static int tumbler_get_master_volume(struct snd_kcontrol *kcontrol, in tumbler_get_master_volume() argument 269 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_get_master_volume() 277 static int tumbler_put_master_volume(struct snd_kcontrol *kcontrol, in tumbler_put_master_volume() argument 280 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_put_master_volume() 301 static int tumbler_get_master_switch(struct snd_kcontrol *kcontrol, in tumbler_get_master_switch() argument 304 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_get_master_switch() 312 static int tumbler_put_master_switch(struct snd_kcontrol *kcontrol, in tumbler_put_master_switch() argument 315 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in tumbler_put_master_switch() 402 static int tumbler_info_drc_value(struct snd_kcontrol *kcontrol, in tumbler_info_drc_value() argument [all …]
|
D | beep.c | 174 static int snd_pmac_info_beep(struct snd_kcontrol *kcontrol, in snd_pmac_info_beep() argument 184 static int snd_pmac_get_beep(struct snd_kcontrol *kcontrol, in snd_pmac_get_beep() argument 187 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_get_beep() 194 static int snd_pmac_put_beep(struct snd_kcontrol *kcontrol, in snd_pmac_put_beep() argument 197 struct snd_pmac *chip = snd_kcontrol_chip(kcontrol); in snd_pmac_put_beep()
|
/linux-4.4.14/sound/pci/ca0106/ |
D | ca0106_mixer.c | 160 static int snd_ca0106_shared_spdif_get(struct snd_kcontrol *kcontrol, in snd_ca0106_shared_spdif_get() argument 163 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_get() 169 static int snd_ca0106_shared_spdif_put(struct snd_kcontrol *kcontrol, in snd_ca0106_shared_spdif_put() argument 172 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_shared_spdif_put() 185 static int snd_ca0106_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_info() argument 195 static int snd_ca0106_capture_source_get(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_get() argument 198 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_get() 204 static int snd_ca0106_capture_source_put(struct snd_kcontrol *kcontrol, in snd_ca0106_capture_source_put() argument 207 struct snd_ca0106 *emu = snd_kcontrol_chip(kcontrol); in snd_ca0106_capture_source_put() 222 static int snd_ca0106_i2c_capture_source_info(struct snd_kcontrol *kcontrol, in snd_ca0106_i2c_capture_source_info() argument [all …]
|
/linux-4.4.14/sound/pci/ |
D | ak4531_codec.c | 75 static int snd_ak4531_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ak4531_info_single() argument 77 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single() 86 static int snd_ak4531_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_get_single() argument 88 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_get_single() 89 int reg = kcontrol->private_value & 0xff; in snd_ak4531_get_single() 90 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single() 91 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single() 92 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single() 105 static int snd_ak4531_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ak4531_put_single() argument 107 struct snd_ak4531 *ak4531 = snd_kcontrol_chip(kcontrol); in snd_ak4531_put_single() [all …]
|
D | es1938.c | 1044 static int snd_es1938_info_mux(struct snd_kcontrol *kcontrol, in snd_es1938_info_mux() argument 1055 static int snd_es1938_get_mux(struct snd_kcontrol *kcontrol, in snd_es1938_get_mux() argument 1058 struct es1938 *chip = snd_kcontrol_chip(kcontrol); in snd_es1938_get_mux() 1063 static int snd_es1938_put_mux(struct snd_kcontrol *kcontrol, in snd_es1938_put_mux() argument 1066 struct es1938 *chip = snd_kcontrol_chip(kcontrol); in snd_es1938_put_mux() 1076 static int snd_es1938_get_spatializer_enable(struct snd_kcontrol *kcontrol, in snd_es1938_get_spatializer_enable() argument 1079 struct es1938 *chip = snd_kcontrol_chip(kcontrol); in snd_es1938_get_spatializer_enable() 1085 static int snd_es1938_put_spatializer_enable(struct snd_kcontrol *kcontrol, in snd_es1938_put_spatializer_enable() argument 1088 struct es1938 *chip = snd_kcontrol_chip(kcontrol); in snd_es1938_put_spatializer_enable() 1101 static int snd_es1938_info_hw_volume(struct snd_kcontrol *kcontrol, in snd_es1938_info_hw_volume() argument [all …]
|
D | sonicvibes.c | 915 static int snd_sonicvibes_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_sonicvibes_info_mux() argument 924 static int snd_sonicvibes_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sonicvibes_get_mux() argument 926 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol); in snd_sonicvibes_get_mux() 935 static int snd_sonicvibes_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sonicvibes_put_mux() argument 937 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol); in snd_sonicvibes_put_mux() 964 static int snd_sonicvibes_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinf… in snd_sonicvibes_info_single() argument 966 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_sonicvibes_info_single() 975 static int snd_sonicvibes_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucon… in snd_sonicvibes_get_single() argument 977 struct sonicvibes *sonic = snd_kcontrol_chip(kcontrol); in snd_sonicvibes_get_single() 978 int reg = kcontrol->private_value & 0xff; in snd_sonicvibes_get_single() [all …]
|
D | fm801.c | 834 static int snd_fm801_info_single(struct snd_kcontrol *kcontrol, in snd_fm801_info_single() argument 837 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_fm801_info_single() 846 static int snd_fm801_get_single(struct snd_kcontrol *kcontrol, in snd_fm801_get_single() argument 849 struct fm801 *chip = snd_kcontrol_chip(kcontrol); in snd_fm801_get_single() 850 int reg = kcontrol->private_value & 0xff; in snd_fm801_get_single() 851 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_fm801_get_single() 852 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_fm801_get_single() 853 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_fm801_get_single() 861 static int snd_fm801_put_single(struct snd_kcontrol *kcontrol, in snd_fm801_put_single() argument 864 struct fm801 *chip = snd_kcontrol_chip(kcontrol); in snd_fm801_put_single() [all …]
|
D | cmipci.c | 1010 static int snd_cmipci_spdif_default_info(struct snd_kcontrol *kcontrol, in snd_cmipci_spdif_default_info() argument 1018 static int snd_cmipci_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_cmipci_spdif_default_get() argument 1021 struct cmipci *chip = snd_kcontrol_chip(kcontrol); in snd_cmipci_spdif_default_get() 1031 static int snd_cmipci_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_cmipci_spdif_default_put() argument 1034 struct cmipci *chip = snd_kcontrol_chip(kcontrol); in snd_cmipci_spdif_default_put() 1057 static int snd_cmipci_spdif_mask_info(struct snd_kcontrol *kcontrol, in snd_cmipci_spdif_mask_info() argument 1065 static int snd_cmipci_spdif_mask_get(struct snd_kcontrol *kcontrol, in snd_cmipci_spdif_mask_get() argument 1084 static int snd_cmipci_spdif_stream_info(struct snd_kcontrol *kcontrol, in snd_cmipci_spdif_stream_info() argument 1092 static int snd_cmipci_spdif_stream_get(struct snd_kcontrol *kcontrol, in snd_cmipci_spdif_stream_get() argument 1095 struct cmipci *chip = snd_kcontrol_chip(kcontrol); in snd_cmipci_spdif_stream_get() [all …]
|
D | rme96.c | 1866 snd_rme96_get_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme96_get_loopback_control() argument 1868 struct rme96 *rme96 = snd_kcontrol_chip(kcontrol); in snd_rme96_get_loopback_control() 1876 snd_rme96_put_loopback_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme96_put_loopback_control() argument 1878 struct rme96 *rme96 = snd_kcontrol_chip(kcontrol); in snd_rme96_put_loopback_control() 1893 snd_rme96_info_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_rme96_info_inputtype_control() argument 1898 struct rme96 *rme96 = snd_kcontrol_chip(kcontrol); in snd_rme96_info_inputtype_control() 1929 snd_rme96_get_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme96_get_inputtype_control() argument 1931 struct rme96 *rme96 = snd_kcontrol_chip(kcontrol); in snd_rme96_get_inputtype_control() 1968 snd_rme96_put_inputtype_control(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_rme96_put_inputtype_control() argument 1970 struct rme96 *rme96 = snd_kcontrol_chip(kcontrol); in snd_rme96_put_inputtype_control() [all …]
|
D | rme32.c | 1572 snd_rme32_get_loopback_control(struct snd_kcontrol *kcontrol, in snd_rme32_get_loopback_control() argument 1575 struct rme32 *rme32 = snd_kcontrol_chip(kcontrol); in snd_rme32_get_loopback_control() 1584 snd_rme32_put_loopback_control(struct snd_kcontrol *kcontrol, in snd_rme32_put_loopback_control() argument 1587 struct rme32 *rme32 = snd_kcontrol_chip(kcontrol); in snd_rme32_put_loopback_control() 1606 snd_rme32_info_inputtype_control(struct snd_kcontrol *kcontrol, in snd_rme32_info_inputtype_control() argument 1609 struct rme32 *rme32 = snd_kcontrol_chip(kcontrol); in snd_rme32_info_inputtype_control() 1630 snd_rme32_get_inputtype_control(struct snd_kcontrol *kcontrol, in snd_rme32_get_inputtype_control() argument 1633 struct rme32 *rme32 = snd_kcontrol_chip(kcontrol); in snd_rme32_get_inputtype_control() 1659 snd_rme32_put_inputtype_control(struct snd_kcontrol *kcontrol, in snd_rme32_put_inputtype_control() argument 1662 struct rme32 *rme32 = snd_kcontrol_chip(kcontrol); in snd_rme32_put_inputtype_control() [all …]
|
D | bt87x.c | 565 static int snd_bt87x_capture_volume_info(struct snd_kcontrol *kcontrol, in snd_bt87x_capture_volume_info() argument 575 static int snd_bt87x_capture_volume_get(struct snd_kcontrol *kcontrol, in snd_bt87x_capture_volume_get() argument 578 struct snd_bt87x *chip = snd_kcontrol_chip(kcontrol); in snd_bt87x_capture_volume_get() 584 static int snd_bt87x_capture_volume_put(struct snd_kcontrol *kcontrol, in snd_bt87x_capture_volume_put() argument 587 struct snd_bt87x *chip = snd_kcontrol_chip(kcontrol); in snd_bt87x_capture_volume_put() 611 static int snd_bt87x_capture_boost_get(struct snd_kcontrol *kcontrol, in snd_bt87x_capture_boost_get() argument 614 struct snd_bt87x *chip = snd_kcontrol_chip(kcontrol); in snd_bt87x_capture_boost_get() 620 static int snd_bt87x_capture_boost_put(struct snd_kcontrol *kcontrol, in snd_bt87x_capture_boost_put() argument 623 struct snd_bt87x *chip = snd_kcontrol_chip(kcontrol); in snd_bt87x_capture_boost_put() 645 static int snd_bt87x_capture_source_info(struct snd_kcontrol *kcontrol, in snd_bt87x_capture_source_info() argument [all …]
|
D | ens1370.c | 1345 static int snd_ens1373_spdif_info(struct snd_kcontrol *kcontrol, in snd_ens1373_spdif_info() argument 1353 static int snd_ens1373_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_ens1373_spdif_default_get() argument 1356 struct ensoniq *ensoniq = snd_kcontrol_chip(kcontrol); in snd_ens1373_spdif_default_get() 1366 static int snd_ens1373_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_ens1373_spdif_default_put() argument 1369 struct ensoniq *ensoniq = snd_kcontrol_chip(kcontrol); in snd_ens1373_spdif_default_put() 1387 static int snd_ens1373_spdif_mask_get(struct snd_kcontrol *kcontrol, in snd_ens1373_spdif_mask_get() argument 1397 static int snd_ens1373_spdif_stream_get(struct snd_kcontrol *kcontrol, in snd_ens1373_spdif_stream_get() argument 1400 struct ensoniq *ensoniq = snd_kcontrol_chip(kcontrol); in snd_ens1373_spdif_stream_get() 1410 static int snd_ens1373_spdif_stream_put(struct snd_kcontrol *kcontrol, in snd_ens1373_spdif_stream_put() argument 1413 struct ensoniq *ensoniq = snd_kcontrol_chip(kcontrol); in snd_ens1373_spdif_stream_put() [all …]
|
D | via82xx.c | 1607 static int snd_via8233_capture_source_info(struct snd_kcontrol *kcontrol, in snd_via8233_capture_source_info() argument 1619 static int snd_via8233_capture_source_get(struct snd_kcontrol *kcontrol, in snd_via8233_capture_source_get() argument 1622 struct via82xx *chip = snd_kcontrol_chip(kcontrol); in snd_via8233_capture_source_get() 1623 …unsigned long port = chip->port + (kcontrol->id.index ? (VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG… in snd_via8233_capture_source_get() 1628 static int snd_via8233_capture_source_put(struct snd_kcontrol *kcontrol, in snd_via8233_capture_source_put() argument 1631 struct via82xx *chip = snd_kcontrol_chip(kcontrol); in snd_via8233_capture_source_put() 1632 …unsigned long port = chip->port + (kcontrol->id.index ? (VIA_REG_CAPTURE_CHANNEL + 0x10) : VIA_REG… in snd_via8233_capture_source_put() 1656 static int snd_via8233_dxs3_spdif_get(struct snd_kcontrol *kcontrol, in snd_via8233_dxs3_spdif_get() argument 1659 struct via82xx *chip = snd_kcontrol_chip(kcontrol); in snd_via8233_dxs3_spdif_get() 1667 static int snd_via8233_dxs3_spdif_put(struct snd_kcontrol *kcontrol, in snd_via8233_dxs3_spdif_put() argument [all …]
|
D | azt3328.c | 934 snd_azf3328_info_mixer(struct snd_kcontrol *kcontrol, in snd_azf3328_info_mixer() argument 939 snd_azf3328_mixer_reg_decode(®, kcontrol->private_value); in snd_azf3328_info_mixer() 949 snd_azf3328_get_mixer(struct snd_kcontrol *kcontrol, in snd_azf3328_get_mixer() argument 952 struct snd_azf3328 *chip = snd_kcontrol_chip(kcontrol); in snd_azf3328_get_mixer() 956 snd_azf3328_mixer_reg_decode(®, kcontrol->private_value); in snd_azf3328_get_mixer() 978 snd_azf3328_put_mixer(struct snd_kcontrol *kcontrol, in snd_azf3328_put_mixer() argument 981 struct snd_azf3328 *chip = snd_kcontrol_chip(kcontrol); in snd_azf3328_put_mixer() 985 snd_azf3328_mixer_reg_decode(®, kcontrol->private_value); in snd_azf3328_put_mixer() 1017 snd_azf3328_info_mixer_enum(struct snd_kcontrol *kcontrol, in snd_azf3328_info_mixer_enum() argument 1036 snd_azf3328_mixer_reg_decode(®, kcontrol->private_value); in snd_azf3328_info_mixer_enum() [all …]
|
/linux-4.4.14/sound/soc/ |
D | soc-ops.c | 45 int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_info_enum_double() argument 48 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double() 64 int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_get_enum_double() argument 67 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_get_enum_double() 68 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double() 98 int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, in snd_soc_put_enum_double() argument 101 struct snd_soc_component *component = snd_kcontrol_chip(kcontrol); in snd_soc_put_enum_double() 102 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_put_enum_double() 186 int snd_soc_info_volsw(struct snd_kcontrol *kcontrol, in snd_soc_info_volsw() argument 190 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw() [all …]
|
D | soc-dapm.c | 313 struct snd_kcontrol *kcontrol) in dapm_kcontrol_data_alloc() argument 331 mc = (struct soc_mixer_control *)kcontrol->private_value; in dapm_kcontrol_data_alloc() 336 name = kasprintf(GFP_KERNEL, "%s %s", kcontrol->id.name, in dapm_kcontrol_data_alloc() 369 e = (struct soc_enum *)kcontrol->private_value; in dapm_kcontrol_data_alloc() 374 name = kasprintf(GFP_KERNEL, "%s %s", kcontrol->id.name, in dapm_kcontrol_data_alloc() 408 kcontrol->private_data = data; in dapm_kcontrol_data_alloc() 425 const struct snd_kcontrol *kcontrol) in dapm_kcontrol_get_wlist() argument 427 struct dapm_kcontrol_data *data = snd_kcontrol_chip(kcontrol); in dapm_kcontrol_get_wlist() 432 static int dapm_kcontrol_add_widget(struct snd_kcontrol *kcontrol, in dapm_kcontrol_add_widget() argument 435 struct dapm_kcontrol_data *data = snd_kcontrol_chip(kcontrol); in dapm_kcontrol_add_widget() [all …]
|
D | soc-topology.c | 353 void *data, struct snd_kcontrol **kcontrol) in soc_tplg_add_dcontrol() argument 357 *kcontrol = snd_soc_cnew(control_new, data, control_new->name, prefix); in soc_tplg_add_dcontrol() 358 if (*kcontrol == NULL) { in soc_tplg_add_dcontrol() 364 err = snd_ctl_add(card, *kcontrol); in soc_tplg_add_dcontrol() 376 struct snd_kcontrol_new *k, struct snd_kcontrol **kcontrol) in soc_tplg_add_kcontrol() argument 381 comp->dev, k, NULL, comp, kcontrol); in soc_tplg_add_kcontrol() 399 if (sm->dobj.control.kcontrol->tlv.p) in remove_mixer() 400 p = sm->dobj.control.kcontrol->tlv.p; in remove_mixer() 401 snd_ctl_remove(card, sm->dobj.control.kcontrol); in remove_mixer() 421 snd_ctl_remove(card, se->dobj.control.kcontrol); in remove_enum() [all …]
|
/linux-4.4.14/sound/isa/cs423x/ |
D | cs4236_lib.c | 408 static int snd_cs4236_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_cs4236_info_single() argument 410 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single() 419 static int snd_cs4236_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_get_single() argument 421 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_get_single() 423 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single() 424 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single() 425 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single() 426 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single() 436 static int snd_cs4236_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs4236_put_single() argument 438 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_cs4236_put_single() [all …]
|
/linux-4.4.14/sound/drivers/pcsp/ |
D | pcsp_mixer.c | 13 static int pcsp_enable_info(struct snd_kcontrol *kcontrol, in pcsp_enable_info() argument 23 static int pcsp_enable_get(struct snd_kcontrol *kcontrol, in pcsp_enable_get() argument 26 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_get() 31 static int pcsp_enable_put(struct snd_kcontrol *kcontrol, in pcsp_enable_put() argument 34 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_enable_put() 44 static int pcsp_treble_info(struct snd_kcontrol *kcontrol, in pcsp_treble_info() argument 47 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_info() 58 static int pcsp_treble_get(struct snd_kcontrol *kcontrol, in pcsp_treble_get() argument 61 struct snd_pcsp *chip = snd_kcontrol_chip(kcontrol); in pcsp_treble_get() 66 static int pcsp_treble_put(struct snd_kcontrol *kcontrol, in pcsp_treble_put() argument [all …]
|
/linux-4.4.14/sound/isa/sb/ |
D | sb_mixer.c | 60 static int snd_sbmixer_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_sbmixer_info_single() argument 62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_single() 71 static int snd_sbmixer_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_get_single() argument 73 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_get_single() 75 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_get_single() 76 int shift = (kcontrol->private_value >> 16) & 0xff; in snd_sbmixer_get_single() 77 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_get_single() 87 static int snd_sbmixer_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_sbmixer_put_single() argument 89 struct snd_sb *sb = snd_kcontrol_chip(kcontrol); in snd_sbmixer_put_single() 91 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_put_single() [all …]
|
D | emu8000.c | 833 static int mixer_bass_treble_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixer_bass_treble_info() argument 842 static int mixer_bass_treble_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixer_bass_treble_get() argument 844 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); in mixer_bass_treble_get() 846 ucontrol->value.integer.value[0] = kcontrol->private_value ? emu->treble_level : emu->bass_level; in mixer_bass_treble_get() 850 static int mixer_bass_treble_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixer_bass_treble_put() argument 852 struct snd_emu8000 *emu = snd_kcontrol_chip(kcontrol); in mixer_bass_treble_put() 859 if (kcontrol->private_value) { in mixer_bass_treble_put() 894 static int mixer_chorus_reverb_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixer_chorus_reverb_info() argument 899 …uinfo->value.integer.max = kcontrol->private_value ? (SNDRV_EMU8000_CHORUS_NUMBERS-1) : (SNDRV_EMU… in mixer_chorus_reverb_info() 903 static int mixer_chorus_reverb_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in mixer_chorus_reverb_get() argument [all …]
|
D | sb16_csp.c | 966 static int snd_sb_qsound_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucont… in snd_sb_qsound_switch_get() argument 968 struct snd_sb_csp *p = snd_kcontrol_chip(kcontrol); in snd_sb_qsound_switch_get() 974 static int snd_sb_qsound_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucont… in snd_sb_qsound_switch_put() argument 976 struct snd_sb_csp *p = snd_kcontrol_chip(kcontrol); in snd_sb_qsound_switch_put() 989 static int snd_sb_qsound_space_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_sb_qsound_space_info() argument 998 static int snd_sb_qsound_space_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in snd_sb_qsound_space_get() argument 1000 struct snd_sb_csp *p = snd_kcontrol_chip(kcontrol); in snd_sb_qsound_space_get() 1010 static int snd_sb_qsound_space_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontr… in snd_sb_qsound_space_put() argument 1012 struct snd_sb_csp *p = snd_kcontrol_chip(kcontrol); in snd_sb_qsound_space_put()
|
/linux-4.4.14/sound/pci/ice1712/ |
D | maya44.c | 171 static int maya_vol_info(struct snd_kcontrol *kcontrol, in maya_vol_info() argument 174 unsigned int idx = kcontrol->private_value; in maya_vol_info() 184 static int maya_vol_get(struct snd_kcontrol *kcontrol, in maya_vol_get() argument 187 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_get() 189 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_get() 190 unsigned int idx = kcontrol->private_value; in maya_vol_get() 199 static int maya_vol_put(struct snd_kcontrol *kcontrol, in maya_vol_put() argument 202 struct snd_maya44 *chip = snd_kcontrol_chip(kcontrol); in maya_vol_put() 204 &chip->wm[snd_ctl_get_ioff(kcontrol, &ucontrol->id)]; in maya_vol_put() 205 unsigned int idx = kcontrol->private_value; in maya_vol_put() [all …]
|
D | wtm.c | 127 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_get() argument 130 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() 137 if (kcontrol->private_value) { in stac9460_dac_mute_get() 141 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_get() 154 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, in stac9460_dac_mute_put() argument 157 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() 162 if (kcontrol->private_value) { in stac9460_dac_mute_put() 173 id = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac9460_dac_mute_put() 195 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_info() argument 205 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, in stac9460_dac_vol_get() argument [all …]
|
D | aureon.c | 202 static int aureon_universe_inmux_info(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_info() argument 211 static int aureon_universe_inmux_get(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_get() argument 214 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_get() 220 static int aureon_universe_inmux_put(struct snd_kcontrol *kcontrol, in aureon_universe_inmux_put() argument 223 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_universe_inmux_put() 361 static int aureon_ac97_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in aureon_ac97_vol_info() argument 364 uinfo->count = kcontrol->private_value & AUREON_AC97_STEREO ? 2 : 1; in aureon_ac97_vol_info() 370 static int aureon_ac97_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in aureon_ac97_vol_get() argument 372 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in aureon_ac97_vol_get() 377 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() [all …]
|
D | phase.c | 299 static int wm_pcm_mute_get(struct snd_kcontrol *kcontrol, in wm_pcm_mute_get() argument 302 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_get() 311 static int wm_pcm_mute_put(struct snd_kcontrol *kcontrol, in wm_pcm_mute_put() argument 314 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_pcm_mute_put() 332 static int wm_master_vol_info(struct snd_kcontrol *kcontrol, in wm_master_vol_info() argument 342 static int wm_master_vol_get(struct snd_kcontrol *kcontrol, in wm_master_vol_get() argument 345 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_get() 354 static int wm_master_vol_put(struct snd_kcontrol *kcontrol, in wm_master_vol_put() argument 357 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_master_vol_put() 478 static int wm_vol_info(struct snd_kcontrol *kcontrol, in wm_vol_info() argument [all …]
|
D | prodigy192.c | 108 static int stac9460_dac_mute_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_get() argument 110 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_get() 114 if (kcontrol->private_value) in stac9460_dac_mute_get() 117 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_get() 123 static int stac9460_dac_mute_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_mute_put() argument 125 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in stac9460_dac_mute_put() 129 if (kcontrol->private_value) in stac9460_dac_mute_put() 132 idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + STAC946X_LF_VOLUME; in stac9460_dac_mute_put() 147 static int stac9460_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in stac9460_dac_vol_info() argument 156 static int stac9460_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in stac9460_dac_vol_get() argument [all …]
|
D | pontis.c | 114 static int wm_dac_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_dac_vol_info() argument 123 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_get() argument 125 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_get() 139 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument 141 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put() 169 static int wm_adc_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in wm_adc_vol_info() argument 178 static int wm_adc_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_get() argument 180 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_get() 194 static int wm_adc_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_adc_vol_put() argument 196 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_adc_vol_put() [all …]
|
D | prodigy_hifi.c | 255 static int ak4396_dac_vol_info(struct snd_kcontrol *kcontrol, in ak4396_dac_vol_info() argument 265 static int ak4396_dac_vol_get(struct snd_kcontrol *kcontrol, in ak4396_dac_vol_get() argument 268 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in ak4396_dac_vol_get() 278 static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ak4396_dac_vol_put() argument 280 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in ak4396_dac_vol_put() 383 static int wm_dac_vol_info(struct snd_kcontrol *kcontrol, in wm_dac_vol_info() argument 393 static int wm_dac_vol_get(struct snd_kcontrol *kcontrol, in wm_dac_vol_get() argument 396 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_get() 406 static int wm_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in wm_dac_vol_put() argument 408 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in wm_dac_vol_put() [all …]
|
D | ews.c | 578 static int snd_ice1712_ewx_io_sense_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *u… in snd_ice1712_ewx_io_sense_info() argument 586 static int snd_ice1712_ewx_io_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_ice1712_ewx_io_sense_get() argument 588 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_ewx_io_sense_get() 589 unsigned char mask = kcontrol->private_value & 0xff; in snd_ice1712_ewx_io_sense_get() 597 static int snd_ice1712_ewx_io_sense_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *u… in snd_ice1712_ewx_io_sense_put() argument 599 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_ewx_io_sense_put() 600 unsigned char mask = kcontrol->private_value & 0xff; in snd_ice1712_ewx_io_sense_put() 603 if (kcontrol->private_value & (1 << 31)) in snd_ice1712_ewx_io_sense_put() 638 static int snd_ice1712_ews88mt_output_sense_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_… in snd_ice1712_ews88mt_output_sense_get() argument 640 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_ews88mt_output_sense_get() [all …]
|
D | ice1712.c | 259 static int snd_ice1712_digmix_route_ac97_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_ice1712_digmix_route_ac97_get() argument 261 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_digmix_route_ac97_get() 267 static int snd_ice1712_digmix_route_ac97_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_ice1712_digmix_route_ac97_put() argument 269 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_digmix_route_ac97_put() 1303 static int snd_ice1712_pro_mixer_switch_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_valu… in snd_ice1712_pro_mixer_switch_get() argument 1305 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_pro_mixer_switch_get() 1306 int priv_idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id) + in snd_ice1712_pro_mixer_switch_get() 1307 kcontrol->private_value; in snd_ice1712_pro_mixer_switch_get() 1318 static int snd_ice1712_pro_mixer_switch_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_valu… in snd_ice1712_pro_mixer_switch_put() argument 1320 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_ice1712_pro_mixer_switch_put() [all …]
|
D | wm8766.c | 195 static int snd_wm8766_volume_info(struct snd_kcontrol *kcontrol, in snd_wm8766_volume_info() argument 198 struct snd_wm8766 *wm = snd_kcontrol_chip(kcontrol); in snd_wm8766_volume_info() 199 int n = kcontrol->private_value; in snd_wm8766_volume_info() 209 static int snd_wm8766_enum_info(struct snd_kcontrol *kcontrol, in snd_wm8766_enum_info() argument 212 struct snd_wm8766 *wm = snd_kcontrol_chip(kcontrol); in snd_wm8766_enum_info() 213 int n = kcontrol->private_value; in snd_wm8766_enum_info() 219 static int snd_wm8766_ctl_get(struct snd_kcontrol *kcontrol, in snd_wm8766_ctl_get() argument 222 struct snd_wm8766 *wm = snd_kcontrol_chip(kcontrol); in snd_wm8766_ctl_get() 223 int n = kcontrol->private_value; in snd_wm8766_ctl_get() 250 static int snd_wm8766_ctl_put(struct snd_kcontrol *kcontrol, in snd_wm8766_ctl_put() argument [all …]
|
D | quartet.c | 509 static int qtet_mute_get(struct snd_kcontrol *kcontrol, in qtet_mute_get() argument 512 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in qtet_mute_get() 519 static int qtet_mute_put(struct snd_kcontrol *kcontrol, in qtet_mute_put() argument 522 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in qtet_mute_put() 547 static int qtet_ain12_enum_info(struct snd_kcontrol *kcontrol, in qtet_ain12_enum_info() argument 555 static int qtet_ain12_sw_get(struct snd_kcontrol *kcontrol, in qtet_ain12_sw_get() argument 558 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in qtet_ain12_sw_get() 580 static int qtet_ain12_sw_put(struct snd_kcontrol *kcontrol, in qtet_ain12_sw_put() argument 583 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in qtet_ain12_sw_put() 624 static int qtet_php_get(struct snd_kcontrol *kcontrol, in qtet_php_get() argument [all …]
|
D | ice1724.c | 1586 static int snd_vt1724_eeprom_info(struct snd_kcontrol *kcontrol, in snd_vt1724_eeprom_info() argument 1594 static int snd_vt1724_eeprom_get(struct snd_kcontrol *kcontrol, in snd_vt1724_eeprom_get() argument 1597 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_vt1724_eeprom_get() 1613 static int snd_vt1724_spdif_info(struct snd_kcontrol *kcontrol, in snd_vt1724_spdif_info() argument 1691 static int snd_vt1724_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_vt1724_spdif_default_get() argument 1694 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_vt1724_spdif_default_get() 1701 static int snd_vt1724_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_vt1724_spdif_default_put() argument 1704 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in snd_vt1724_spdif_default_put() 1725 static int snd_vt1724_spdif_maskc_get(struct snd_kcontrol *kcontrol, in snd_vt1724_spdif_maskc_get() argument 1738 static int snd_vt1724_spdif_maskp_get(struct snd_kcontrol *kcontrol, in snd_vt1724_spdif_maskp_get() argument [all …]
|
D | juli.c | 303 static int juli_mute_get(struct snd_kcontrol *kcontrol, in juli_mute_get() argument 306 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in juli_mute_get() 308 val = ice->gpio.get_data(ice) & (unsigned int) kcontrol->private_value; in juli_mute_get() 309 if (kcontrol->private_value == GPIO_MUTE_CONTROL) in juli_mute_get() 318 static int juli_mute_put(struct snd_kcontrol *kcontrol, in juli_mute_put() argument 321 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in juli_mute_put() 326 if (kcontrol->private_value == GPIO_MUTE_CONTROL) { in juli_mute_put() 334 (unsigned int) kcontrol->private_value; in juli_mute_put() 337 if (kcontrol->private_value == GPIO_MUTE_CONTROL) { in juli_mute_put() 345 ~((unsigned int) kcontrol->private_value); in juli_mute_put()
|
D | wm8776.c | 469 static int snd_wm8776_volume_info(struct snd_kcontrol *kcontrol, in snd_wm8776_volume_info() argument 472 struct snd_wm8776 *wm = snd_kcontrol_chip(kcontrol); in snd_wm8776_volume_info() 473 int n = kcontrol->private_value; in snd_wm8776_volume_info() 483 static int snd_wm8776_enum_info(struct snd_kcontrol *kcontrol, in snd_wm8776_enum_info() argument 486 struct snd_wm8776 *wm = snd_kcontrol_chip(kcontrol); in snd_wm8776_enum_info() 487 int n = kcontrol->private_value; in snd_wm8776_enum_info() 493 static int snd_wm8776_ctl_get(struct snd_kcontrol *kcontrol, in snd_wm8776_ctl_get() argument 496 struct snd_wm8776 *wm = snd_kcontrol_chip(kcontrol); in snd_wm8776_ctl_get() 497 int n = kcontrol->private_value; in snd_wm8776_ctl_get() 524 static int snd_wm8776_ctl_put(struct snd_kcontrol *kcontrol, in snd_wm8776_ctl_put() argument [all …]
|
D | psc724.c | 275 static int psc724_ctl_get(struct snd_kcontrol *kcontrol, in psc724_ctl_get() argument 278 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in psc724_ctl_get() 279 int n = kcontrol->private_value; in psc724_ctl_get() 286 static int psc724_ctl_put(struct snd_kcontrol *kcontrol, in psc724_ctl_put() argument 289 struct snd_ice1712 *ice = snd_kcontrol_chip(kcontrol); in psc724_ctl_put() 290 int n = kcontrol->private_value; in psc724_ctl_put()
|
/linux-4.4.14/sound/pci/emu10k1/ |
D | emumixer.c | 46 static int snd_emu10k1_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_emu10k1_spdif_info() argument 53 static int snd_emu10k1_spdif_get(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get() argument 56 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1_spdif_get() 57 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1_spdif_get() 72 static int snd_emu10k1_spdif_get_mask(struct snd_kcontrol *kcontrol, in snd_emu10k1_spdif_get_mask() argument 392 static int snd_emu1010_input_output_source_info(struct snd_kcontrol *kcontrol, in snd_emu1010_input_output_source_info() argument 395 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_input_output_source_info() 403 static int snd_emu1010_output_source_get(struct snd_kcontrol *kcontrol, in snd_emu1010_output_source_get() argument 406 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_emu1010_output_source_get() 409 channel = (kcontrol->private_value) & 0xff; in snd_emu1010_output_source_get() [all …]
|
D | p16v.c | 695 static int snd_p16v_volume_info(struct snd_kcontrol *kcontrol, in snd_p16v_volume_info() argument 705 static int snd_p16v_volume_get(struct snd_kcontrol *kcontrol, in snd_p16v_volume_get() argument 708 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_p16v_volume_get() 709 int high_low = (kcontrol->private_value >> 8) & 0xff; in snd_p16v_volume_get() 710 int reg = kcontrol->private_value & 0xff; in snd_p16v_volume_get() 724 static int snd_p16v_volume_put(struct snd_kcontrol *kcontrol, in snd_p16v_volume_put() argument 727 struct snd_emu10k1 *emu = snd_kcontrol_chip(kcontrol); in snd_p16v_volume_put() 728 int high_low = (kcontrol->private_value >> 8) & 0xff; in snd_p16v_volume_put() 729 int reg = kcontrol->private_value & 0xff; in snd_p16v_volume_put() 749 static int snd_p16v_capture_source_info(struct snd_kcontrol *kcontrol, in snd_p16v_capture_source_info() argument [all …]
|
D | emu10k1x.c | 1082 static int snd_emu10k1x_shared_spdif_get(struct snd_kcontrol *kcontrol, in snd_emu10k1x_shared_spdif_get() argument 1085 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1x_shared_spdif_get() 1092 static int snd_emu10k1x_shared_spdif_put(struct snd_kcontrol *kcontrol, in snd_emu10k1x_shared_spdif_put() argument 1095 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1x_shared_spdif_put() 1124 static int snd_emu10k1x_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_emu10k1x_spdif_info() argument 1131 static int snd_emu10k1x_spdif_get(struct snd_kcontrol *kcontrol, in snd_emu10k1x_spdif_get() argument 1134 struct emu10k1x *emu = snd_kcontrol_chip(kcontrol); in snd_emu10k1x_spdif_get() 1135 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in snd_emu10k1x_spdif_get() 1144 static int snd_emu10k1x_spdif_get_mask(struct snd_kcontrol *kcontrol, in snd_emu10k1x_spdif_get_mask() argument 1154 static int snd_emu10k1x_spdif_put(struct snd_kcontrol *kcontrol, in snd_emu10k1x_spdif_put() argument [all …]
|
/linux-4.4.14/sound/drivers/vx/ |
D | vx_mixer.c | 413 static int vx_output_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_output_level_info() argument 415 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_info() 423 static int vx_output_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_get() argument 425 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_get() 426 int codec = kcontrol->id.index; in vx_output_level_get() 434 static int vx_output_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_output_level_put() argument 436 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_output_level_put() 437 int codec = kcontrol->id.index; in vx_output_level_put() 472 static int vx_audio_src_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_audio_src_info() argument 480 struct vx_core *chip = snd_kcontrol_chip(kcontrol); in vx_audio_src_info() [all …]
|
/linux-4.4.14/sound/usb/6fire/ |
D | control.c | 179 static int usb6fire_control_output_vol_info(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_info() argument 189 static int usb6fire_control_output_vol_put(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_put() argument 192 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_vol_put() 193 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_put() 219 static int usb6fire_control_output_vol_get(struct snd_kcontrol *kcontrol, in usb6fire_control_output_vol_get() argument 222 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_vol_get() 223 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_vol_get() 236 static int usb6fire_control_output_mute_put(struct snd_kcontrol *kcontrol, in usb6fire_control_output_mute_put() argument 239 struct control_runtime *rt = snd_kcontrol_chip(kcontrol); in usb6fire_control_output_mute_put() 240 unsigned int ch = kcontrol->private_value; in usb6fire_control_output_mute_put() [all …]
|
/linux-4.4.14/sound/pci/mixart/ |
D | mixart_mixer.c | 343 static int mixart_analog_vol_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in mixart_analog_vol_info() argument 347 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info() 357 static int mixart_analog_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_get() argument 359 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_get() 361 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get() 372 static int mixart_analog_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_analog_vol_put() argument 374 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_analog_vol_put() 379 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put() 421 static int mixart_audio_sw_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in mixart_audio_sw_get() argument 423 struct snd_mixart *chip = snd_kcontrol_chip(kcontrol); in mixart_audio_sw_get() [all …]
|
/linux-4.4.14/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 87 static int pcxhr_analog_vol_info(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_info() argument 90 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_info() 94 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_info() 122 static int pcxhr_analog_vol_get(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_get() argument 125 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_get() 127 if (kcontrol->private_value == 0) { /* playback */ in pcxhr_analog_vol_get() 138 static int pcxhr_analog_vol_put(struct snd_kcontrol *kcontrol, in pcxhr_analog_vol_put() argument 141 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in pcxhr_analog_vol_put() 146 is_capture = (kcontrol->private_value != 0); in pcxhr_analog_vol_put() 203 static int pcxhr_audio_sw_get(struct snd_kcontrol *kcontrol, in pcxhr_audio_sw_get() argument [all …]
|
D | pcxhr_mix22.c | 711 static int hr222_mic_vol_info(struct snd_kcontrol *kcontrol, in hr222_mic_vol_info() argument 722 static int hr222_mic_vol_get(struct snd_kcontrol *kcontrol, in hr222_mic_vol_get() argument 725 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in hr222_mic_vol_get() 732 static int hr222_mic_vol_put(struct snd_kcontrol *kcontrol, in hr222_mic_vol_put() argument 735 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in hr222_mic_vol_put() 762 static int hr222_mic_boost_info(struct snd_kcontrol *kcontrol, in hr222_mic_boost_info() argument 772 static int hr222_mic_boost_get(struct snd_kcontrol *kcontrol, in hr222_mic_boost_get() argument 775 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in hr222_mic_boost_get() 782 static int hr222_mic_boost_put(struct snd_kcontrol *kcontrol, in hr222_mic_boost_put() argument 785 struct snd_pcxhr *chip = snd_kcontrol_chip(kcontrol); in hr222_mic_boost_put() [all …]
|
/linux-4.4.14/sound/isa/gus/ |
D | gus_mixer.c | 40 static int snd_gf1_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_get_single() argument 42 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_get_single() 43 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single() 44 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single() 52 static int snd_gf1_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gf1_put_single() argument 54 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gf1_put_single() 56 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single() 57 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single() 81 static int snd_ics_info_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ics_info_double() argument 90 static int snd_ics_get_double(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ics_get_double() argument [all …]
|
D | gus_main.c | 52 static int snd_gus_joystick_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_gus_joystick_info() argument 61 static int snd_gus_joystick_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gus_joystick_get() argument 63 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gus_joystick_get() 69 static int snd_gus_joystick_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_gus_joystick_put() argument 71 struct snd_gus_card *gus = snd_kcontrol_chip(kcontrol); in snd_gus_joystick_put()
|
/linux-4.4.14/include/sound/ |
D | control.h | 27 #define snd_kcontrol_chip(kcontrol) ((kcontrol)->private_data) argument 30 typedef int (snd_kcontrol_info_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_info * uinfo… 31 typedef int (snd_kcontrol_get_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucont… 32 typedef int (snd_kcontrol_put_t) (struct snd_kcontrol * kcontrol, struct snd_ctl_elem_value * ucont… 33 typedef int (snd_kcontrol_tlv_rw_t)(struct snd_kcontrol *kcontrol, 80 void (*private_free)(struct snd_kcontrol *kcontrol); 123 void snd_ctl_free_one(struct snd_kcontrol * kcontrol); 124 int snd_ctl_add(struct snd_card * card, struct snd_kcontrol * kcontrol); 125 int snd_ctl_remove(struct snd_card * card, struct snd_kcontrol * kcontrol); 126 int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace); [all …]
|
D | wss.h | 186 int snd_wss_info_single(struct snd_kcontrol *kcontrol, 188 int snd_wss_get_single(struct snd_kcontrol *kcontrol, 190 int snd_wss_put_single(struct snd_kcontrol *kcontrol, 228 int snd_wss_info_double(struct snd_kcontrol *kcontrol, 230 int snd_wss_get_double(struct snd_kcontrol *kcontrol, 232 int snd_wss_put_double(struct snd_kcontrol *kcontrol,
|
D | soc-topology.h | 49 struct snd_kcontrol *kcontrol; member 84 int (*get)(struct snd_kcontrol *kcontrol, 86 int (*put)(struct snd_kcontrol *kcontrol, 88 int (*info)(struct snd_kcontrol *kcontrol,
|
D | soc.h | 590 int snd_soc_info_enum_double(struct snd_kcontrol *kcontrol, 592 int snd_soc_get_enum_double(struct snd_kcontrol *kcontrol, 594 int snd_soc_put_enum_double(struct snd_kcontrol *kcontrol, 596 int snd_soc_info_volsw(struct snd_kcontrol *kcontrol, 598 int snd_soc_info_volsw_sx(struct snd_kcontrol *kcontrol, 601 int snd_soc_get_volsw(struct snd_kcontrol *kcontrol, 603 int snd_soc_put_volsw(struct snd_kcontrol *kcontrol, 607 int snd_soc_get_volsw_sx(struct snd_kcontrol *kcontrol, 609 int snd_soc_put_volsw_sx(struct snd_kcontrol *kcontrol, 611 int snd_soc_info_volsw_range(struct snd_kcontrol *kcontrol, [all …]
|
D | soc-dapm.h | 359 struct snd_kcontrol *kcontrol, int event); 361 struct snd_kcontrol *kcontrol, int event); 364 int snd_soc_dapm_put_volsw(struct snd_kcontrol *kcontrol, 366 int snd_soc_dapm_get_volsw(struct snd_kcontrol *kcontrol, 368 int snd_soc_dapm_get_enum_double(struct snd_kcontrol *kcontrol, 370 int snd_soc_dapm_put_enum_double(struct snd_kcontrol *kcontrol, 372 int snd_soc_dapm_info_pin_switch(struct snd_kcontrol *kcontrol, 374 int snd_soc_dapm_get_pin_switch(struct snd_kcontrol *kcontrol, 376 int snd_soc_dapm_put_pin_switch(struct snd_kcontrol *kcontrol, 410 struct snd_kcontrol *kcontrol, int connect, [all …]
|
/linux-4.4.14/sound/aoa/codecs/ |
D | tas.c | 225 static int tas_snd_vol_info(struct snd_kcontrol *kcontrol, in tas_snd_vol_info() argument 235 static int tas_snd_vol_get(struct snd_kcontrol *kcontrol, in tas_snd_vol_get() argument 238 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_get() 247 static int tas_snd_vol_put(struct snd_kcontrol *kcontrol, in tas_snd_vol_put() argument 250 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_vol_put() 285 static int tas_snd_mute_get(struct snd_kcontrol *kcontrol, in tas_snd_mute_get() argument 288 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_get() 297 static int tas_snd_mute_put(struct snd_kcontrol *kcontrol, in tas_snd_mute_put() argument 300 struct tas *tas = snd_kcontrol_chip(kcontrol); in tas_snd_mute_put() 326 static int tas_snd_mixer_info(struct snd_kcontrol *kcontrol, in tas_snd_mixer_info() argument [all …]
|
D | onyx.c | 109 static int onyx_snd_vol_info(struct snd_kcontrol *kcontrol, in onyx_snd_vol_info() argument 119 static int onyx_snd_vol_get(struct snd_kcontrol *kcontrol, in onyx_snd_vol_get() argument 122 struct onyx *onyx = snd_kcontrol_chip(kcontrol); in onyx_snd_vol_get() 136 static int onyx_snd_vol_put(struct snd_kcontrol *kcontrol, in onyx_snd_vol_put() argument 139 struct onyx *onyx = snd_kcontrol_chip(kcontrol); in onyx_snd_vol_put() 185 static int onyx_snd_inputgain_info(struct snd_kcontrol *kcontrol, in onyx_snd_inputgain_info() argument 195 static int onyx_snd_inputgain_get(struct snd_kcontrol *kcontrol, in onyx_snd_inputgain_get() argument 198 struct onyx *onyx = snd_kcontrol_chip(kcontrol); in onyx_snd_inputgain_get() 211 static int onyx_snd_inputgain_put(struct snd_kcontrol *kcontrol, in onyx_snd_inputgain_put() argument 214 struct onyx *onyx = snd_kcontrol_chip(kcontrol); in onyx_snd_inputgain_put() [all …]
|
/linux-4.4.14/sound/i2c/ |
D | tea6330t.c | 86 static int snd_tea6330t_info_master_volume(struct snd_kcontrol *kcontrol, in snd_tea6330t_info_master_volume() argument 96 static int snd_tea6330t_get_master_volume(struct snd_kcontrol *kcontrol, in snd_tea6330t_get_master_volume() argument 99 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_get_master_volume() 108 static int snd_tea6330t_put_master_volume(struct snd_kcontrol *kcontrol, in snd_tea6330t_put_master_volume() argument 111 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_put_master_volume() 147 static int snd_tea6330t_get_master_switch(struct snd_kcontrol *kcontrol, in snd_tea6330t_get_master_switch() argument 150 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_get_master_switch() 159 static int snd_tea6330t_put_master_switch(struct snd_kcontrol *kcontrol, in snd_tea6330t_put_master_switch() argument 162 struct tea6330t *tea = snd_kcontrol_chip(kcontrol); in snd_tea6330t_put_master_switch() 189 static int snd_tea6330t_info_bass(struct snd_kcontrol *kcontrol, in snd_tea6330t_info_bass() argument [all …]
|
D | cs8427.c | 360 static int snd_cs8427_in_status_info(struct snd_kcontrol *kcontrol, in snd_cs8427_in_status_info() argument 370 static int snd_cs8427_in_status_get(struct snd_kcontrol *kcontrol, in snd_cs8427_in_status_get() argument 373 struct snd_i2c_device *device = snd_kcontrol_chip(kcontrol); in snd_cs8427_in_status_get() 377 data = snd_cs8427_reg_read(device, kcontrol->private_value); in snd_cs8427_in_status_get() 385 static int snd_cs8427_qsubcode_info(struct snd_kcontrol *kcontrol, in snd_cs8427_qsubcode_info() argument 393 static int snd_cs8427_qsubcode_get(struct snd_kcontrol *kcontrol, in snd_cs8427_qsubcode_get() argument 396 struct snd_i2c_device *device = snd_kcontrol_chip(kcontrol); in snd_cs8427_qsubcode_get() 418 static int snd_cs8427_spdif_info(struct snd_kcontrol *kcontrol, in snd_cs8427_spdif_info() argument 426 static int snd_cs8427_spdif_get(struct snd_kcontrol *kcontrol, in snd_cs8427_spdif_get() argument 429 struct snd_i2c_device *device = snd_kcontrol_chip(kcontrol); in snd_cs8427_spdif_get() [all …]
|
/linux-4.4.14/sound/pci/lola/ |
D | lola_mixer.c | 512 static int lola_analog_vol_info(struct snd_kcontrol *kcontrol, in lola_analog_vol_info() argument 515 struct lola *chip = snd_kcontrol_chip(kcontrol); in lola_analog_vol_info() 516 int dir = kcontrol->private_value; in lola_analog_vol_info() 525 static int lola_analog_vol_get(struct snd_kcontrol *kcontrol, in lola_analog_vol_get() argument 528 struct lola *chip = snd_kcontrol_chip(kcontrol); in lola_analog_vol_get() 529 int dir = kcontrol->private_value; in lola_analog_vol_get() 538 static int lola_analog_vol_put(struct snd_kcontrol *kcontrol, in lola_analog_vol_put() argument 541 struct lola *chip = snd_kcontrol_chip(kcontrol); in lola_analog_vol_put() 542 int dir = kcontrol->private_value; in lola_analog_vol_put() 555 static int lola_analog_vol_tlv(struct snd_kcontrol *kcontrol, int op_flag, in lola_analog_vol_tlv() argument [all …]
|
/linux-4.4.14/sound/spi/ |
D | at73c213.c | 401 static int snd_at73c213_mono_get(struct snd_kcontrol *kcontrol, in snd_at73c213_mono_get() argument 404 struct snd_at73c213 *chip = snd_kcontrol_chip(kcontrol); in snd_at73c213_mono_get() 405 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_get() 406 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_get() 407 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_get() 408 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_get() 424 static int snd_at73c213_mono_put(struct snd_kcontrol *kcontrol, in snd_at73c213_mono_put() argument 427 struct snd_at73c213 *chip = snd_kcontrol_chip(kcontrol); in snd_at73c213_mono_put() 428 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_put() 429 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_put() [all …]
|
/linux-4.4.14/sound/soc/codecs/ |
D | wm8958-dsp2.c | 419 struct snd_kcontrol *kcontrol, int event) in wm8958_aif_ev() argument 456 static int wm8958_put_mbc_enum(struct snd_kcontrol *kcontrol, in wm8958_put_mbc_enum() argument 459 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8958_put_mbc_enum() 478 static int wm8958_get_mbc_enum(struct snd_kcontrol *kcontrol, in wm8958_get_mbc_enum() argument 481 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8958_get_mbc_enum() 489 static int wm8958_mbc_info(struct snd_kcontrol *kcontrol, in wm8958_mbc_info() argument 499 static int wm8958_mbc_get(struct snd_kcontrol *kcontrol, in wm8958_mbc_get() argument 502 int mbc = kcontrol->private_value; in wm8958_mbc_get() 503 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8958_mbc_get() 511 static int wm8958_mbc_put(struct snd_kcontrol *kcontrol, in wm8958_mbc_put() argument [all …]
|
D | sigmadsp.c | 34 struct snd_kcontrol *kcontrol; member 105 static int sigmadsp_ctrl_info(struct snd_kcontrol *kcontrol, in sigmadsp_ctrl_info() argument 108 struct sigmadsp_control *ctrl = (void *)kcontrol->private_value; in sigmadsp_ctrl_info() 129 static int sigmadsp_ctrl_put(struct snd_kcontrol *kcontrol, in sigmadsp_ctrl_put() argument 132 struct sigmadsp_control *ctrl = (void *)kcontrol->private_value; in sigmadsp_ctrl_put() 133 struct sigmadsp *sigmadsp = snd_kcontrol_chip(kcontrol); in sigmadsp_ctrl_put() 141 if (!(kcontrol->vd[0].access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) in sigmadsp_ctrl_put() 154 static int sigmadsp_ctrl_get(struct snd_kcontrol *kcontrol, in sigmadsp_ctrl_get() argument 157 struct sigmadsp_control *ctrl = (void *)kcontrol->private_value; in sigmadsp_ctrl_get() 158 struct sigmadsp *sigmadsp = snd_kcontrol_chip(kcontrol); in sigmadsp_ctrl_get() [all …]
|
D | wl1273.c | 172 static int snd_wl1273_get_audio_route(struct snd_kcontrol *kcontrol, in snd_wl1273_get_audio_route() argument 175 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_wl1273_get_audio_route() 190 static int snd_wl1273_set_audio_route(struct snd_kcontrol *kcontrol, in snd_wl1273_set_audio_route() argument 193 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_wl1273_set_audio_route() 214 static int snd_wl1273_fm_audio_get(struct snd_kcontrol *kcontrol, in snd_wl1273_fm_audio_get() argument 217 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_wl1273_fm_audio_get() 227 static int snd_wl1273_fm_audio_put(struct snd_kcontrol *kcontrol, in snd_wl1273_fm_audio_put() argument 230 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_wl1273_fm_audio_put() 251 static int snd_wl1273_fm_volume_get(struct snd_kcontrol *kcontrol, in snd_wl1273_fm_volume_get() argument 254 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_wl1273_fm_volume_get() [all …]
|
D | da7219.c | 254 static int da7219_volsw_locked_get(struct snd_kcontrol *kcontrol, in da7219_volsw_locked_get() argument 257 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in da7219_volsw_locked_get() 262 ret = snd_soc_get_volsw(kcontrol, ucontrol); in da7219_volsw_locked_get() 268 static int da7219_volsw_locked_put(struct snd_kcontrol *kcontrol, in da7219_volsw_locked_put() argument 271 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in da7219_volsw_locked_put() 276 ret = snd_soc_put_volsw(kcontrol, ucontrol); in da7219_volsw_locked_put() 282 static int da7219_enum_locked_get(struct snd_kcontrol *kcontrol, in da7219_enum_locked_get() argument 285 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in da7219_enum_locked_get() 290 ret = snd_soc_get_enum_double(kcontrol, ucontrol); in da7219_enum_locked_get() 296 static int da7219_enum_locked_put(struct snd_kcontrol *kcontrol, in da7219_enum_locked_put() argument [all …]
|
D | wm_adsp.c | 228 int (*xget)(struct snd_kcontrol *kcontrol, 230 int (*xput)(struct snd_kcontrol *kcontrol, 232 int (*xinfo)(struct snd_kcontrol *kcontrol, 248 struct snd_kcontrol *kcontrol; member 421 static int wm_adsp_fw_get(struct snd_kcontrol *kcontrol, in wm_adsp_fw_get() argument 424 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm_adsp_fw_get() 425 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in wm_adsp_fw_get() 433 static int wm_adsp_fw_put(struct snd_kcontrol *kcontrol, in wm_adsp_fw_put() argument 436 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm_adsp_fw_put() 437 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in wm_adsp_fw_put() [all …]
|
D | twl6040.c | 235 struct snd_kcontrol *kcontrol, int event) in twl6040_hs_dac_event() argument 262 struct snd_kcontrol *kcontrol, int event) in twl6040_ep_drv_event() argument 335 static int twl6040_soc_dapm_put_vibra_enum(struct snd_kcontrol *kcontrol, in twl6040_soc_dapm_put_vibra_enum() argument 338 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in twl6040_soc_dapm_put_vibra_enum() 339 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in twl6040_soc_dapm_put_vibra_enum() 347 return snd_soc_dapm_put_enum_double(kcontrol, ucontrol); in twl6040_soc_dapm_put_vibra_enum() 484 static int twl6040_headset_power_get_enum(struct snd_kcontrol *kcontrol, in twl6040_headset_power_get_enum() argument 487 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in twl6040_headset_power_get_enum() 495 static int twl6040_headset_power_put_enum(struct snd_kcontrol *kcontrol, in twl6040_headset_power_put_enum() argument 498 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in twl6040_headset_power_put_enum() [all …]
|
D | wm_adsp.h | 93 struct snd_kcontrol *kcontrol, int event); 95 struct snd_kcontrol *kcontrol, int event); 97 struct snd_kcontrol *kcontrol, int event);
|
D | max9768.c | 43 static int max9768_get_gpio(struct snd_kcontrol *kcontrol, in max9768_get_gpio() argument 46 struct snd_soc_component *c = snd_soc_kcontrol_component(kcontrol); in max9768_get_gpio() 55 static int max9768_set_gpio(struct snd_kcontrol *kcontrol, in max9768_set_gpio() argument 58 struct snd_soc_component *c = snd_soc_kcontrol_component(kcontrol); in max9768_set_gpio()
|
D | twl4030.c | 567 struct snd_kcontrol *kcontrol, int event) \ 622 struct snd_kcontrol *kcontrol, int event) in handsfreelpga_event() argument 638 struct snd_kcontrol *kcontrol, int event) in handsfreerpga_event() argument 654 struct snd_kcontrol *kcontrol, int event) in vibramux_event() argument 663 struct snd_kcontrol *kcontrol, int event) in apll_event() argument 679 struct snd_kcontrol *kcontrol, int event) in aif_event() argument 768 struct snd_kcontrol *kcontrol, int event) in headsetlpga_event() argument 793 struct snd_kcontrol *kcontrol, int event) in headsetrpga_event() argument 818 struct snd_kcontrol *kcontrol, int event) in digimic_event() argument 839 static int snd_soc_get_volsw_twl4030(struct snd_kcontrol *kcontrol, in snd_soc_get_volsw_twl4030() argument [all …]
|
D | arizona.h | 246 struct snd_kcontrol *kcontrol, 249 struct snd_kcontrol *kcontrol, 252 struct snd_kcontrol *kcontrol, 255 extern int arizona_eq_coeff_put(struct snd_kcontrol *kcontrol, 257 extern int arizona_lhpf_coeff_put(struct snd_kcontrol *kcontrol, 287 struct snd_kcontrol *kcontrol, int event);
|
D | wm9712.c | 180 static int wm9712_hp_mixer_put(struct snd_kcontrol *kcontrol, in wm9712_hp_mixer_put() argument 183 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9712_hp_mixer_put() 188 (struct soc_mixer_control *)kcontrol->private_value; in wm9712_hp_mixer_put() 206 update.kcontrol = kcontrol; in wm9712_hp_mixer_put() 215 snd_soc_dapm_mixer_update_power(dapm, kcontrol, val, in wm9712_hp_mixer_put() 224 static int wm9712_hp_mixer_get(struct snd_kcontrol *kcontrol, in wm9712_hp_mixer_get() argument 227 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9712_hp_mixer_get() 231 (struct soc_mixer_control *)kcontrol->private_value; in wm9712_hp_mixer_get()
|
D | adau17x1.c | 62 struct snd_kcontrol *kcontrol, int event) in adau17x1_pll_event() argument 154 static int adau17x1_dsp_mux_enum_put(struct snd_kcontrol *kcontrol, in adau17x1_dsp_mux_enum_put() argument 157 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in adau17x1_dsp_mux_enum_put() 160 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in adau17x1_dsp_mux_enum_put() 187 update.kcontrol = kcontrol; in adau17x1_dsp_mux_enum_put() 192 snd_soc_dapm_mux_update_power(dapm, kcontrol, in adau17x1_dsp_mux_enum_put() 199 static int adau17x1_dsp_mux_enum_get(struct snd_kcontrol *kcontrol, in adau17x1_dsp_mux_enum_get() argument 202 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in adau17x1_dsp_mux_enum_get() 204 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in adau17x1_dsp_mux_enum_get()
|
D | max98095.c | 353 static int max98095_mic1pre_set(struct snd_kcontrol *kcontrol, in max98095_mic1pre_set() argument 356 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98095_mic1pre_set() 367 static int max98095_mic1pre_get(struct snd_kcontrol *kcontrol, in max98095_mic1pre_get() argument 370 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98095_mic1pre_get() 377 static int max98095_mic2pre_set(struct snd_kcontrol *kcontrol, in max98095_mic2pre_set() argument 380 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98095_mic2pre_set() 391 static int max98095_mic2pre_get(struct snd_kcontrol *kcontrol, in max98095_mic2pre_get() argument 394 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98095_mic2pre_get() 599 struct snd_kcontrol *kcontrol, int event) in max98095_mic_event() argument 677 struct snd_kcontrol *kcontrol, int event) in max98095_lineout_event() argument [all …]
|
D | 88pm860x-codec.c | 270 static int snd_soc_get_volsw_2r_st(struct snd_kcontrol *kcontrol, in snd_soc_get_volsw_2r_st() argument 274 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_get_volsw_2r_st() 275 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_soc_get_volsw_2r_st() 294 static int snd_soc_put_volsw_2r_st(struct snd_kcontrol *kcontrol, in snd_soc_put_volsw_2r_st() argument 298 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_put_volsw_2r_st() 299 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_soc_put_volsw_2r_st() 327 static int snd_soc_get_volsw_2r_out(struct snd_kcontrol *kcontrol, in snd_soc_get_volsw_2r_out() argument 331 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_get_volsw_2r_out() 332 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_soc_get_volsw_2r_out() 347 static int snd_soc_put_volsw_2r_out(struct snd_kcontrol *kcontrol, in snd_soc_put_volsw_2r_out() argument [all …]
|
D | max98088.c | 380 static int max98088_mic1pre_set(struct snd_kcontrol *kcontrol, in max98088_mic1pre_set() argument 383 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98088_mic1pre_set() 394 static int max98088_mic1pre_get(struct snd_kcontrol *kcontrol, in max98088_mic1pre_get() argument 397 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98088_mic1pre_get() 404 static int max98088_mic2pre_set(struct snd_kcontrol *kcontrol, in max98088_mic2pre_set() argument 407 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98088_mic2pre_set() 418 static int max98088_mic2pre_get(struct snd_kcontrol *kcontrol, in max98088_mic2pre_get() argument 421 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in max98088_mic2pre_get() 618 struct snd_kcontrol *kcontrol, int event) in max98088_mic_event() argument 1491 static int max98088_put_eq_enum(struct snd_kcontrol *kcontrol, in max98088_put_eq_enum() argument [all …]
|
D | pcm1681.c | 120 static int pcm1681_get_deemph(struct snd_kcontrol *kcontrol, in pcm1681_get_deemph() argument 123 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in pcm1681_get_deemph() 131 static int pcm1681_put_deemph(struct snd_kcontrol *kcontrol, in pcm1681_put_deemph() argument 134 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in pcm1681_put_deemph()
|
D | wm_hubs.c | 334 static int wm8993_put_dc_servo(struct snd_kcontrol *kcontrol, in wm8993_put_dc_servo() argument 337 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8993_put_dc_servo() 341 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm8993_put_dc_servo() 500 struct snd_kcontrol *kcontrol, int event) in hp_supply_event() argument 542 struct snd_kcontrol *kcontrol, int event) in hp_event() argument 649 struct snd_kcontrol *kcontrol, int event) in micbias_event() argument 697 static int class_w_put_volsw(struct snd_kcontrol *kcontrol, in class_w_put_volsw() argument 700 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in class_w_put_volsw() 703 ret = snd_soc_dapm_put_volsw(kcontrol, ucontrol); in class_w_put_volsw() 717 static int class_w_put_double(struct snd_kcontrol *kcontrol, in class_w_put_double() argument [all …]
|
D | wm8994.c | 298 static int wm8994_put_drc_sw(struct snd_kcontrol *kcontrol, in wm8994_put_drc_sw() argument 302 (struct soc_mixer_control *)kcontrol->private_value; in wm8994_put_drc_sw() 303 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8994_put_drc_sw() 319 return snd_soc_put_volsw(kcontrol, ucontrol); in wm8994_put_drc_sw() 357 static int wm8994_put_drc_enum(struct snd_kcontrol *kcontrol, in wm8994_put_drc_enum() argument 360 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8994_put_drc_enum() 364 int drc = wm8994_get_drc(kcontrol->id.name); in wm8994_put_drc_enum() 380 static int wm8994_get_drc_enum(struct snd_kcontrol *kcontrol, in wm8994_get_drc_enum() argument 383 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8994_get_drc_enum() 385 int drc = wm8994_get_drc(kcontrol->id.name); in wm8994_get_drc_enum() [all …]
|
D | wm2000.c | 607 static int wm2000_anc_mode_get(struct snd_kcontrol *kcontrol, in wm2000_anc_mode_get() argument 610 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm2000_anc_mode_get() 618 static int wm2000_anc_mode_put(struct snd_kcontrol *kcontrol, in wm2000_anc_mode_put() argument 621 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm2000_anc_mode_put() 640 static int wm2000_speaker_get(struct snd_kcontrol *kcontrol, in wm2000_speaker_get() argument 643 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm2000_speaker_get() 651 static int wm2000_speaker_put(struct snd_kcontrol *kcontrol, in wm2000_speaker_put() argument 654 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm2000_speaker_put() 684 struct snd_kcontrol *kcontrol, int event) in wm2000_anc_power_event() argument
|
D | wm8904.c | 393 static int wm8904_put_drc_enum(struct snd_kcontrol *kcontrol, in wm8904_put_drc_enum() argument 396 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8904_put_drc_enum() 411 static int wm8904_get_drc_enum(struct snd_kcontrol *kcontrol, in wm8904_get_drc_enum() argument 414 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8904_get_drc_enum() 464 static int wm8904_put_retune_mobile_enum(struct snd_kcontrol *kcontrol, in wm8904_put_retune_mobile_enum() argument 467 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8904_put_retune_mobile_enum() 482 static int wm8904_get_retune_mobile_enum(struct snd_kcontrol *kcontrol, in wm8904_get_retune_mobile_enum() argument 485 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8904_get_retune_mobile_enum() 522 static int wm8904_get_deemph(struct snd_kcontrol *kcontrol, in wm8904_get_deemph() argument 525 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8904_get_deemph() [all …]
|
D | cs42l51.c | 54 static int cs42l51_get_chan_mix(struct snd_kcontrol *kcontrol, in cs42l51_get_chan_mix() argument 57 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in cs42l51_get_chan_mix() 82 static int cs42l51_set_chan_mix(struct snd_kcontrol *kcontrol, in cs42l51_set_chan_mix() argument 85 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in cs42l51_set_chan_mix() 154 struct snd_kcontrol *kcontrol, int event) in cs42l51_pdn_event() argument
|
D | sta32x.c | 261 static int sta32x_coefficient_info(struct snd_kcontrol *kcontrol, in sta32x_coefficient_info() argument 264 int numcoef = kcontrol->private_value >> 16; in sta32x_coefficient_info() 270 static int sta32x_coefficient_get(struct snd_kcontrol *kcontrol, in sta32x_coefficient_get() argument 273 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sta32x_coefficient_get() 275 int numcoef = kcontrol->private_value >> 16; in sta32x_coefficient_get() 276 int index = kcontrol->private_value & 0xffff; in sta32x_coefficient_get() 312 static int sta32x_coefficient_put(struct snd_kcontrol *kcontrol, in sta32x_coefficient_put() argument 315 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sta32x_coefficient_put() 317 int numcoef = kcontrol->private_value >> 16; in sta32x_coefficient_put() 318 int index = kcontrol->private_value & 0xffff; in sta32x_coefficient_put()
|
D | wm8804.c | 74 static int txsrc_put(struct snd_kcontrol *kcontrol, 78 struct snd_kcontrol *kcontrol, int event); 138 struct snd_kcontrol *kcontrol, int event) in wm8804_aif_event() argument 161 static int txsrc_put(struct snd_kcontrol *kcontrol, in txsrc_put() argument 164 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in txsrc_put() 166 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in txsrc_put()
|
D | sta350.c | 300 static int sta350_coefficient_info(struct snd_kcontrol *kcontrol, in sta350_coefficient_info() argument 303 int numcoef = kcontrol->private_value >> 16; in sta350_coefficient_info() 309 static int sta350_coefficient_get(struct snd_kcontrol *kcontrol, in sta350_coefficient_get() argument 312 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sta350_coefficient_get() 314 int numcoef = kcontrol->private_value >> 16; in sta350_coefficient_get() 315 int index = kcontrol->private_value & 0xffff; in sta350_coefficient_get() 351 static int sta350_coefficient_put(struct snd_kcontrol *kcontrol, in sta350_coefficient_put() argument 354 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sta350_coefficient_put() 356 int numcoef = kcontrol->private_value >> 16; in sta350_coefficient_put() 357 int index = kcontrol->private_value & 0xffff; in sta350_coefficient_put()
|
D | wm9713.c | 220 struct snd_kcontrol *kcontrol, int event) in wm9713_voice_shutdown() argument 254 static int wm9713_hp_mixer_put(struct snd_kcontrol *kcontrol, in wm9713_hp_mixer_put() argument 257 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9713_hp_mixer_put() 262 (struct soc_mixer_control *)kcontrol->private_value; in wm9713_hp_mixer_put() 280 update.kcontrol = kcontrol; in wm9713_hp_mixer_put() 289 snd_soc_dapm_mixer_update_power(dapm, kcontrol, val, in wm9713_hp_mixer_put() 298 static int wm9713_hp_mixer_get(struct snd_kcontrol *kcontrol, in wm9713_hp_mixer_get() argument 301 struct snd_soc_dapm_context *dapm = snd_soc_dapm_kcontrol_dapm(kcontrol); in wm9713_hp_mixer_get() 305 (struct soc_mixer_control *)kcontrol->private_value; in wm9713_hp_mixer_get()
|
D | pcm3008.c | 32 struct snd_kcontrol *kcontrol, in pcm3008_dac_ev() argument 45 struct snd_kcontrol *kcontrol, in pcm3008_adc_ev() argument
|
D | pcm512x.c | 229 static int pcm512x_overclock_pll_get(struct snd_kcontrol *kcontrol, in pcm512x_overclock_pll_get() argument 232 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in pcm512x_overclock_pll_get() 239 static int pcm512x_overclock_pll_put(struct snd_kcontrol *kcontrol, in pcm512x_overclock_pll_put() argument 242 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in pcm512x_overclock_pll_put() 257 static int pcm512x_overclock_dsp_get(struct snd_kcontrol *kcontrol, in pcm512x_overclock_dsp_get() argument 260 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in pcm512x_overclock_dsp_get() 267 static int pcm512x_overclock_dsp_put(struct snd_kcontrol *kcontrol, in pcm512x_overclock_dsp_put() argument 270 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in pcm512x_overclock_dsp_put() 285 static int pcm512x_overclock_dac_get(struct snd_kcontrol *kcontrol, in pcm512x_overclock_dac_get() argument 288 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in pcm512x_overclock_dac_get() [all …]
|
D | wm5102.c | 582 struct snd_kcontrol *kcontrol, int event) in wm5102_sysclk_ev() argument 614 return arizona_dvfs_sysclk_ev(w, kcontrol, event); in wm5102_sysclk_ev() 618 struct snd_kcontrol *kcontrol, int event) in wm5102_adsp_power_ev() argument 657 return wm_adsp2_early_event(w, kcontrol, event); in wm5102_adsp_power_ev() 660 static int wm5102_out_comp_coeff_get(struct snd_kcontrol *kcontrol, in wm5102_out_comp_coeff_get() argument 663 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm5102_out_comp_coeff_get() 674 static int wm5102_out_comp_coeff_put(struct snd_kcontrol *kcontrol, in wm5102_out_comp_coeff_put() argument 677 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm5102_out_comp_coeff_put() 689 static int wm5102_out_comp_switch_get(struct snd_kcontrol *kcontrol, in wm5102_out_comp_switch_get() argument 692 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm5102_out_comp_switch_get() [all …]
|
D | wm5110.c | 160 struct snd_kcontrol *kcontrol, int event) in wm5110_sysclk_ev() argument 336 struct snd_kcontrol *kcontrol, int event) in wm5110_hp_ev() argument 358 return arizona_hp_ev(w, kcontrol, event); in wm5110_hp_ev() 374 static int wm5110_put_dre(struct snd_kcontrol *kcontrol, in wm5110_put_dre() argument 377 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm5110_put_dre() 381 (struct soc_mixer_control *)kcontrol->private_value; in wm5110_put_dre() 435 static int wm5110_in_pga_get(struct snd_kcontrol *kcontrol, in wm5110_in_pga_get() argument 438 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm5110_in_pga_get() 449 ret = snd_soc_get_volsw_range(kcontrol, ucontrol); in wm5110_in_pga_get() 456 static int wm5110_in_pga_put(struct snd_kcontrol *kcontrol, in wm5110_in_pga_put() argument [all …]
|
D | tpa6130a2.c | 191 static int tpa6130a2_get_volsw(struct snd_kcontrol *kcontrol, in tpa6130a2_get_volsw() argument 195 (struct soc_mixer_control *)kcontrol->private_value; in tpa6130a2_get_volsw() 220 static int tpa6130a2_put_volsw(struct snd_kcontrol *kcontrol, in tpa6130a2_put_volsw() argument 224 (struct soc_mixer_control *)kcontrol->private_value; in tpa6130a2_put_volsw()
|
D | ab8500-codec.c | 1126 static int sid_status_control_get(struct snd_kcontrol *kcontrol, in sid_status_control_get() argument 1129 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sid_status_control_get() 1140 static int sid_status_control_put(struct snd_kcontrol *kcontrol, in sid_status_control_put() argument 1143 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in sid_status_control_put() 1195 static int anc_status_control_get(struct snd_kcontrol *kcontrol, in anc_status_control_get() argument 1198 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in anc_status_control_get() 1208 static int anc_status_control_put(struct snd_kcontrol *kcontrol, in anc_status_control_put() argument 1211 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in anc_status_control_put() 1277 static int filter_control_info(struct snd_kcontrol *kcontrol, in filter_control_info() argument 1281 (struct filter_control *)kcontrol->private_value; in filter_control_info() [all …]
|
D | tlv320aic23.c | 82 static int snd_soc_tlv320aic23_put_volsw(struct snd_kcontrol *kcontrol, in snd_soc_tlv320aic23_put_volsw() argument 85 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_soc_tlv320aic23_put_volsw() 105 static int snd_soc_tlv320aic23_get_volsw(struct snd_kcontrol *kcontrol, in snd_soc_tlv320aic23_get_volsw() argument 108 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in snd_soc_tlv320aic23_get_volsw()
|
D | ak4641.c | 74 static int ak4641_put_deemph(struct snd_kcontrol *kcontrol, in ak4641_put_deemph() argument 77 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in ak4641_put_deemph() 89 static int ak4641_get_deemph(struct snd_kcontrol *kcontrol, in ak4641_get_deemph() argument 92 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in ak4641_get_deemph()
|
D | arizona.c | 83 struct snd_kcontrol *kcontrol, in arizona_spk_ev() argument 731 int arizona_in_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, in arizona_in_ev() argument 777 struct snd_kcontrol *kcontrol, in arizona_out_ev() argument 860 struct snd_kcontrol *kcontrol, in arizona_hp_ev() argument 878 return arizona_out_ev(w, kcontrol, event); in arizona_hp_ev() 894 return arizona_out_ev(w, kcontrol, event); in arizona_hp_ev() 986 struct snd_kcontrol *kcontrol, int event) in arizona_dvfs_sysclk_ev() argument 2365 int arizona_eq_coeff_put(struct snd_kcontrol *kcontrol, in arizona_eq_coeff_put() argument 2368 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in arizona_eq_coeff_put() 2370 struct soc_bytes *params = (void *)kcontrol->private_value; in arizona_eq_coeff_put() [all …]
|
D | wm8998.c | 41 struct snd_kcontrol *kcontrol, in wm8998_asrc_ev() argument 104 static int wm8998_in1mux_put(struct snd_kcontrol *kcontrol, in wm8998_in1mux_put() argument 107 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in wm8998_in1mux_put() 111 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in wm8998_in1mux_put() 156 return snd_soc_dapm_mux_update_power(dapm, kcontrol, in wm8998_in1mux_put() 161 static int wm8998_in2mux_put(struct snd_kcontrol *kcontrol, in wm8998_in2mux_put() argument 164 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in wm8998_in2mux_put() 168 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in wm8998_in2mux_put() 192 return snd_soc_dapm_mux_update_power(dapm, kcontrol, in wm8998_in2mux_put()
|
D | wm8962.c | 1538 static int wm8962_dsp2_ena_info(struct snd_kcontrol *kcontrol, in wm8962_dsp2_ena_info() argument 1550 static int wm8962_dsp2_ena_get(struct snd_kcontrol *kcontrol, in wm8962_dsp2_ena_get() argument 1553 int shift = kcontrol->private_value; in wm8962_dsp2_ena_get() 1554 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8962_dsp2_ena_get() 1562 static int wm8962_dsp2_ena_put(struct snd_kcontrol *kcontrol, in wm8962_dsp2_ena_put() argument 1565 int shift = kcontrol->private_value; in wm8962_dsp2_ena_put() 1566 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8962_dsp2_ena_put() 1601 static int wm8962_put_hp_sw(struct snd_kcontrol *kcontrol, in wm8962_put_hp_sw() argument 1604 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8962_put_hp_sw() 1608 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm8962_put_hp_sw() [all …]
|
D | wm8770.c | 92 struct snd_kcontrol *kcontrol, int event); 94 struct snd_kcontrol *kcontrol, int event); 309 struct snd_kcontrol *kcontrol, int event) in vout12supply_event() argument 326 struct snd_kcontrol *kcontrol, int event) in vout34supply_event() argument
|
D | cs4271.c | 283 static int cs4271_get_deemph(struct snd_kcontrol *kcontrol, in cs4271_get_deemph() argument 286 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in cs4271_get_deemph() 293 static int cs4271_put_deemph(struct snd_kcontrol *kcontrol, in cs4271_put_deemph() argument 296 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in cs4271_put_deemph()
|
D | wm8955.c | 334 struct snd_kcontrol *kcontrol, int event) in wm8955_sysclk() argument 390 static int wm8955_get_deemph(struct snd_kcontrol *kcontrol, in wm8955_get_deemph() argument 393 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8955_get_deemph() 400 static int wm8955_put_deemph(struct snd_kcontrol *kcontrol, in wm8955_put_deemph() argument 403 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8955_put_deemph()
|
D | wm8983.c | 127 static int eqmode_get(struct snd_kcontrol *kcontrol, 129 static int eqmode_put(struct snd_kcontrol *kcontrol, 492 static int eqmode_get(struct snd_kcontrol *kcontrol, in eqmode_get() argument 495 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in eqmode_get() 507 static int eqmode_put(struct snd_kcontrol *kcontrol, in eqmode_put() argument 510 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in eqmode_put()
|
D | da7210.c | 331 static int da7210_put_alc_sw(struct snd_kcontrol *kcontrol, in da7210_put_alc_sw() argument 334 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in da7210_put_alc_sw() 345 return snd_soc_put_volsw(kcontrol, ucontrol); in da7210_put_alc_sw() 354 static int da7210_put_noise_sup_sw(struct snd_kcontrol *kcontrol, in da7210_put_noise_sup_sw() argument 357 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in da7210_put_noise_sup_sw() 387 return snd_soc_put_volsw(kcontrol, ucontrol); in da7210_put_noise_sup_sw()
|
D | wm8985.c | 208 static int eqmode_get(struct snd_kcontrol *kcontrol, 210 static int eqmode_put(struct snd_kcontrol *kcontrol, 526 static int eqmode_get(struct snd_kcontrol *kcontrol, in eqmode_get() argument 529 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in eqmode_get() 541 static int eqmode_put(struct snd_kcontrol *kcontrol, in eqmode_put() argument 544 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in eqmode_put()
|
D | wm8990.c | 132 static int wm899x_outpga_put_volsw_vu(struct snd_kcontrol *kcontrol, in wm899x_outpga_put_volsw_vu() argument 135 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm899x_outpga_put_volsw_vu() 137 (struct soc_mixer_control *)kcontrol->private_value; in wm899x_outpga_put_volsw_vu() 142 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm899x_outpga_put_volsw_vu() 375 struct snd_kcontrol *kcontrol, int event) in outmixer_event() argument 378 u32 reg_shift = kcontrol->private_value & 0xfff; in outmixer_event()
|
D | wm8350.c | 257 struct snd_kcontrol *kcontrol, int event) in pga_event() argument 299 static int wm8350_put_volsw_2r_vu(struct snd_kcontrol *kcontrol, in wm8350_put_volsw_2r_vu() argument 302 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8350_put_volsw_2r_vu() 306 (struct soc_mixer_control *)kcontrol->private_value; in wm8350_put_volsw_2r_vu() 332 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm8350_put_volsw_2r_vu() 342 static int wm8350_get_volsw_2r(struct snd_kcontrol *kcontrol, in wm8350_get_volsw_2r() argument 345 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8350_get_volsw_2r() 350 (struct soc_mixer_control *)kcontrol->private_value; in wm8350_get_volsw_2r() 369 return snd_soc_get_volsw(kcontrol, ucontrol); in wm8350_get_volsw_2r()
|
D | es8328.c | 126 static int es8328_get_deemph(struct snd_kcontrol *kcontrol, in es8328_get_deemph() argument 129 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in es8328_get_deemph() 136 static int es8328_put_deemph(struct snd_kcontrol *kcontrol, in es8328_put_deemph() argument 139 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in es8328_put_deemph()
|
D | sgtl5000.c | 156 struct snd_kcontrol *kcontrol, int event) in mic_bias_event() argument 183 struct snd_kcontrol *kcontrol, int event) in power_vag_event() argument 293 static int dac_info_volsw(struct snd_kcontrol *kcontrol, in dac_info_volsw() argument 326 static int dac_get_volsw(struct snd_kcontrol *kcontrol, in dac_get_volsw() argument 329 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in dac_get_volsw() 379 static int dac_put_volsw(struct snd_kcontrol *kcontrol, in dac_put_volsw() argument 382 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in dac_put_volsw()
|
D | wm8991.c | 123 static int wm899x_outpga_put_volsw_vu(struct snd_kcontrol *kcontrol, in wm899x_outpga_put_volsw_vu() argument 126 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm899x_outpga_put_volsw_vu() 127 int reg = kcontrol->private_value & 0xff; in wm899x_outpga_put_volsw_vu() 131 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm899x_outpga_put_volsw_vu() 352 struct snd_kcontrol *kcontrol, int event) in outmixer_event() argument 355 u32 reg_shift = kcontrol->private_value & 0xfff; in outmixer_event()
|
D | wm8903.c | 252 struct snd_kcontrol *kcontrol, int event) in wm8903_cp_event() argument 261 struct snd_kcontrol *kcontrol, int event) in wm8903_dcs_event() argument 364 static int wm8903_class_w_put(struct snd_kcontrol *kcontrol, in wm8903_class_w_put() argument 367 struct snd_soc_codec *codec = snd_soc_dapm_kcontrol_codec(kcontrol); in wm8903_class_w_put() 385 ret = snd_soc_dapm_put_volsw(kcontrol, ucontrol); in wm8903_class_w_put() 439 static int wm8903_get_deemph(struct snd_kcontrol *kcontrol, in wm8903_get_deemph() argument 442 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8903_get_deemph() 450 static int wm8903_put_deemph(struct snd_kcontrol *kcontrol, in wm8903_put_deemph() argument 453 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8903_put_deemph()
|
D | da732x.c | 331 static int da732x_hpf_set(struct snd_kcontrol *kcontrol, in da732x_hpf_set() argument 334 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in da732x_hpf_set() 335 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; in da732x_hpf_set() 359 static int da732x_hpf_get(struct snd_kcontrol *kcontrol, in da732x_hpf_get() argument 362 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in da732x_hpf_get() 363 struct soc_enum *enum_ctrl = (struct soc_enum *)kcontrol->private_value; in da732x_hpf_get() 610 struct snd_kcontrol *kcontrol, int event) in da732x_adc_event() argument 664 struct snd_kcontrol *kcontrol, int event) in da732x_out_pga_event() argument
|
D | wm8400.c | 91 static int wm8400_outpga_put_volsw_vu(struct snd_kcontrol *kcontrol, in wm8400_outpga_put_volsw_vu() argument 94 struct snd_soc_codec *codec = snd_soc_kcontrol_codec(kcontrol); in wm8400_outpga_put_volsw_vu() 96 (struct soc_mixer_control *)kcontrol->private_value; in wm8400_outpga_put_volsw_vu() 101 ret = snd_soc_put_volsw(kcontrol, ucontrol); in wm8400_outpga_put_volsw_vu() 325 struct snd_kcontrol * kcontrol, int event) in outmixer_event() argument 329 (struct soc_mixer_control *)kcontrol->private_value; in outmixer_event()
|
/linux-4.4.14/sound/core/ |
D | vmaster.c | 185 static int slave_info(struct snd_kcontrol *kcontrol, in slave_info() argument 188 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_info() 192 static int slave_get(struct snd_kcontrol *kcontrol, in slave_get() argument 195 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_get() 199 static int slave_put(struct snd_kcontrol *kcontrol, in slave_put() argument 202 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_put() 222 static int slave_tlv_cmd(struct snd_kcontrol *kcontrol, in slave_tlv_cmd() argument 226 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_tlv_cmd() 231 static void slave_free(struct snd_kcontrol *kcontrol) in slave_free() argument 233 struct link_slave *slave = snd_kcontrol_chip(kcontrol); in slave_free() [all …]
|
D | control.c | 304 void snd_ctl_free_one(struct snd_kcontrol *kcontrol) in snd_ctl_free_one() argument 306 if (kcontrol) { in snd_ctl_free_one() 307 if (kcontrol->private_free) in snd_ctl_free_one() 308 kcontrol->private_free(kcontrol); in snd_ctl_free_one() 309 kfree(kcontrol); in snd_ctl_free_one() 361 int snd_ctl_add(struct snd_card *card, struct snd_kcontrol *kcontrol) in snd_ctl_add() argument 368 if (! kcontrol) in snd_ctl_add() 370 if (snd_BUG_ON(!card || !kcontrol->info)) in snd_ctl_add() 372 id = kcontrol->id; in snd_ctl_add() 373 if (id.index > UINT_MAX - kcontrol->count) in snd_ctl_add() [all …]
|
D | ctljack.c | 19 static int jack_detect_kctl_get(struct snd_kcontrol *kcontrol, in jack_detect_kctl_get() argument 22 ucontrol->value.integer.value[0] = kcontrol->private_value; in jack_detect_kctl_get()
|
/linux-4.4.14/sound/pci/ac97/ |
D | ac97_patch.c | 85 static int ac97_surround_jack_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *ui… in ac97_surround_jack_mode_info() argument 92 static int ac97_surround_jack_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in ac97_surround_jack_mode_get() argument 94 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in ac97_surround_jack_mode_get() 100 static int ac97_surround_jack_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uc… in ac97_surround_jack_mode_put() argument 102 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in ac97_surround_jack_mode_put() 114 static int ac97_channel_mode_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in ac97_channel_mode_info() argument 118 return snd_ctl_enum_info(uinfo, 1, kcontrol->private_value, texts); in ac97_channel_mode_info() 121 static int ac97_channel_mode_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_channel_mode_get() argument 123 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in ac97_channel_mode_get() 129 static int ac97_channel_mode_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in ac97_channel_mode_put() argument [all …]
|
D | ac97_codec.c | 462 static int snd_ac97_info_enum_double(struct snd_kcontrol *kcontrol, in snd_ac97_info_enum_double() argument 465 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_info_enum_double() 471 static int snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol, in snd_ac97_get_enum_double() argument 474 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_get_enum_double() 475 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_get_enum_double() 488 static int snd_ac97_put_enum_double(struct snd_kcontrol *kcontrol, in snd_ac97_put_enum_double() argument 491 struct snd_ac97 *ac97 = snd_kcontrol_chip(kcontrol); in snd_ac97_put_enum_double() 492 struct ac97_enum *e = (struct ac97_enum *)kcontrol->private_value; in snd_ac97_put_enum_double() 512 static int snd_ac97_page_save(struct snd_ac97 *ac97, int reg, struct snd_kcontrol *kcontrol) in snd_ac97_page_save() argument 515 if ((kcontrol->private_value & (1<<25)) && in snd_ac97_page_save() [all …]
|
D | ac97_patch.h | 71 static int snd_ac97_info_volsw(struct snd_kcontrol *kcontrol, 73 static int snd_ac97_get_volsw(struct snd_kcontrol *kcontrol, 75 static int snd_ac97_put_volsw(struct snd_kcontrol *kcontrol, 90 static int snd_ac97_info_enum_double(struct snd_kcontrol *kcontrol, 92 static int snd_ac97_get_enum_double(struct snd_kcontrol *kcontrol, 94 static int snd_ac97_put_enum_double(struct snd_kcontrol *kcontrol,
|
/linux-4.4.14/sound/pcmcia/vx/ |
D | vxp_mixer.c | 34 static int vx_mic_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_mic_level_info() argument 43 static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_get() argument 45 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_get() 51 static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_put() argument 53 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_put() 88 static int vx_mic_boost_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_boost_get() argument 90 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_boost_get() 96 static int vx_mic_boost_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_boost_put() argument 98 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_boost_put()
|
/linux-4.4.14/sound/pci/hda/ |
D | hda_beep.c | 294 static bool ctl_has_mute(struct snd_kcontrol *kcontrol) in ctl_has_mute() argument 296 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ctl_has_mute() 297 return query_amp_caps(codec, get_amp_nid(kcontrol), in ctl_has_mute() 298 get_amp_direction(kcontrol)) & AC_AMPCAP_MUTE; in ctl_has_mute() 308 int snd_hda_mixer_amp_switch_get_beep(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_get_beep() argument 311 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_get_beep() 313 if (beep && (!beep->enabled || !ctl_has_mute(kcontrol))) { in snd_hda_mixer_amp_switch_get_beep() 318 return snd_hda_mixer_amp_switch_get(kcontrol, ucontrol); in snd_hda_mixer_amp_switch_get_beep() 327 int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_switch_put_beep() argument 330 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_switch_put_beep() [all …]
|
D | hda_codec.c | 1300 int snd_hda_mixer_amp_volume_info(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_volume_info() argument 1303 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_info() 1304 u16 nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_info() 1305 u8 chs = get_amp_channels(kcontrol); in snd_hda_mixer_amp_volume_info() 1306 int dir = get_amp_direction(kcontrol); in snd_hda_mixer_amp_volume_info() 1307 unsigned int ofs = get_amp_offset(kcontrol); in snd_hda_mixer_amp_volume_info() 1316 nid, kcontrol->id.name); in snd_hda_mixer_amp_volume_info() 1363 int snd_hda_mixer_amp_volume_get(struct snd_kcontrol *kcontrol, in snd_hda_mixer_amp_volume_get() argument 1366 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in snd_hda_mixer_amp_volume_get() 1367 hda_nid_t nid = get_amp_nid(kcontrol); in snd_hda_mixer_amp_volume_get() [all …]
|
D | patch_si3054.c | 99 static int si3054_switch_get(struct snd_kcontrol *kcontrol, in si3054_switch_get() argument 102 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_get() 103 u16 reg = PRIVATE_REG(kcontrol->private_value); in si3054_switch_get() 104 u16 mask = PRIVATE_MASK(kcontrol->private_value); in si3054_switch_get() 109 static int si3054_switch_put(struct snd_kcontrol *kcontrol, in si3054_switch_put() argument 112 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in si3054_switch_put() 113 u16 reg = PRIVATE_REG(kcontrol->private_value); in si3054_switch_put() 114 u16 mask = PRIVATE_MASK(kcontrol->private_value); in si3054_switch_put()
|
D | patch_ca0132.c | 2948 static int tuning_ctl_get(struct snd_kcontrol *kcontrol, in tuning_ctl_get() argument 2951 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in tuning_ctl_get() 2953 hda_nid_t nid = get_amp_nid(kcontrol); in tuning_ctl_get() 2961 static int voice_focus_ctl_info(struct snd_kcontrol *kcontrol, in voice_focus_ctl_info() argument 2964 int chs = get_amp_channels(kcontrol); in voice_focus_ctl_info() 2974 static int voice_focus_ctl_put(struct snd_kcontrol *kcontrol, in voice_focus_ctl_put() argument 2977 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in voice_focus_ctl_put() 2979 hda_nid_t nid = get_amp_nid(kcontrol); in voice_focus_ctl_put() 2996 static int mic_svm_ctl_info(struct snd_kcontrol *kcontrol, in mic_svm_ctl_info() argument 2999 int chs = get_amp_channels(kcontrol); in mic_svm_ctl_info() [all …]
|
D | hda_local.h | 109 int snd_hda_mixer_amp_volume_info(struct snd_kcontrol *kcontrol, 111 int snd_hda_mixer_amp_volume_get(struct snd_kcontrol *kcontrol, 113 int snd_hda_mixer_amp_volume_put(struct snd_kcontrol *kcontrol, 115 int snd_hda_mixer_amp_tlv(struct snd_kcontrol *kcontrol, int op_flag, 117 int snd_hda_mixer_amp_switch_info(struct snd_kcontrol *kcontrol, 119 int snd_hda_mixer_amp_switch_get(struct snd_kcontrol *kcontrol, 121 int snd_hda_mixer_amp_switch_put(struct snd_kcontrol *kcontrol, 124 int snd_hda_mixer_amp_switch_get_beep(struct snd_kcontrol *kcontrol, 126 int snd_hda_mixer_amp_switch_put_beep(struct snd_kcontrol *kcontrol, 193 int snd_hda_mixer_bind_switch_get(struct snd_kcontrol *kcontrol, [all …]
|
D | patch_analog.c | 461 static int ad1983_auto_smux_enum_info(struct snd_kcontrol *kcontrol, in ad1983_auto_smux_enum_info() argument 464 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ad1983_auto_smux_enum_info() 472 return snd_hda_enum_helper_info(kcontrol, uinfo, 2, texts2); in ad1983_auto_smux_enum_info() 474 return snd_hda_enum_helper_info(kcontrol, uinfo, 3, texts3); in ad1983_auto_smux_enum_info() 479 static int ad1983_auto_smux_enum_get(struct snd_kcontrol *kcontrol, in ad1983_auto_smux_enum_get() argument 482 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ad1983_auto_smux_enum_get() 489 static int ad1983_auto_smux_enum_put(struct snd_kcontrol *kcontrol, in ad1983_auto_smux_enum_put() argument 492 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ad1983_auto_smux_enum_put() 741 static int ad1988_auto_smux_enum_info(struct snd_kcontrol *kcontrol, in ad1988_auto_smux_enum_info() argument 744 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in ad1988_auto_smux_enum_info() [all …]
|
D | patch_conexant.c | 317 struct snd_kcontrol *kcontrol, in cxt_update_headset_mode_hook() argument 471 static int olpc_xo_dc_mode_get(struct snd_kcontrol *kcontrol, in olpc_xo_dc_mode_get() argument 474 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_mode_get() 480 static int olpc_xo_dc_mode_put(struct snd_kcontrol *kcontrol, in olpc_xo_dc_mode_put() argument 483 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_mode_put() 496 static int olpc_xo_dc_bias_enum_get(struct snd_kcontrol *kcontrol, in olpc_xo_dc_bias_enum_get() argument 499 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_bias_enum_get() 505 static int olpc_xo_dc_bias_enum_info(struct snd_kcontrol *kcontrol, in olpc_xo_dc_bias_enum_info() argument 511 static int olpc_xo_dc_bias_enum_put(struct snd_kcontrol *kcontrol, in olpc_xo_dc_bias_enum_put() argument 514 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in olpc_xo_dc_bias_enum_put() [all …]
|
D | patch_via.c | 234 static int via_pin_power_ctl_info(struct snd_kcontrol *kcontrol, in via_pin_power_ctl_info() argument 237 return snd_hda_enum_bool_helper_info(kcontrol, uinfo); in via_pin_power_ctl_info() 240 static int via_pin_power_ctl_get(struct snd_kcontrol *kcontrol, in via_pin_power_ctl_get() argument 243 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_get() 250 static int via_pin_power_ctl_put(struct snd_kcontrol *kcontrol, in via_pin_power_ctl_put() argument 253 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in via_pin_power_ctl_put() 519 static int vt1708_jack_detect_get(struct snd_kcontrol *kcontrol, in vt1708_jack_detect_get() argument 522 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in vt1708_jack_detect_get() 531 static int vt1708_jack_detect_put(struct snd_kcontrol *kcontrol, in vt1708_jack_detect_put() argument 534 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in vt1708_jack_detect_put() [all …]
|
D | hda_generic.c | 963 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol, 965 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol, 1097 static void sync_auto_mute_bits(struct snd_kcontrol *kcontrol, in sync_auto_mute_bits() argument 1100 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in sync_auto_mute_bits() 1104 hda_nid_t nid = get_amp_nid(kcontrol); in sync_auto_mute_bits() 1111 static int hda_gen_mixer_mute_put(struct snd_kcontrol *kcontrol, in hda_gen_mixer_mute_put() argument 1114 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_mixer_mute_put() 1115 return snd_hda_mixer_amp_switch_put(kcontrol, ucontrol); in hda_gen_mixer_mute_put() 1118 static int hda_gen_bind_mute_put(struct snd_kcontrol *kcontrol, in hda_gen_bind_mute_put() argument 1121 sync_auto_mute_bits(kcontrol, ucontrol); in hda_gen_bind_mute_put() [all …]
|
D | dell_wmi_helper.c | 15 struct snd_kcontrol *kcontrol, in update_dell_wmi_micmute_led() argument 19 dell_old_cap_hook(codec, kcontrol, ucontrol); in update_dell_wmi_micmute_led()
|
D | patch_cirrus.c | 51 int (*spdif_sw_put)(struct snd_kcontrol *kcontrol, 708 static int cs4208_spdif_sw_put(struct snd_kcontrol *kcontrol, in cs4208_spdif_sw_put() argument 711 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cs4208_spdif_sw_put() 717 return spec->spdif_sw_put(kcontrol, ucontrol); in cs4208_spdif_sw_put() 946 static int cs421x_boost_vol_info(struct snd_kcontrol *kcontrol, in cs421x_boost_vol_info() argument 956 static int cs421x_boost_vol_get(struct snd_kcontrol *kcontrol, in cs421x_boost_vol_get() argument 959 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cs421x_boost_vol_get() 966 static int cs421x_boost_vol_put(struct snd_kcontrol *kcontrol, in cs421x_boost_vol_put() argument 969 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in cs421x_boost_vol_put()
|
D | patch_sigmatel.c | 335 struct snd_kcontrol *kcontrol, in stac_capture_led_hook() argument 342 if (!kcontrol || !ucontrol) in stac_capture_led_hook() 345 mask = 1U << snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac_capture_led_hook() 594 static int stac_aloopback_get(struct snd_kcontrol *kcontrol, in stac_aloopback_get() argument 597 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in stac_aloopback_get() 598 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac_aloopback_get() 606 static int stac_aloopback_put(struct snd_kcontrol *kcontrol, in stac_aloopback_put() argument 609 struct hda_codec *codec = snd_kcontrol_chip(kcontrol); in stac_aloopback_put() 611 unsigned int idx = snd_ctl_get_ioffidx(kcontrol, &ucontrol->id); in stac_aloopback_put() 629 kcontrol->private_value & 0xFFFF, 0x0); in stac_aloopback_put() [all …]
|
/linux-4.4.14/sound/drivers/opl4/ |
D | opl4_mixer.c | 23 static int snd_opl4_ctl_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_opl4_ctl_info() argument 32 static int snd_opl4_ctl_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_opl4_ctl_get() argument 34 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_get() 36 u8 reg = kcontrol->private_value; in snd_opl4_ctl_get() 47 static int snd_opl4_ctl_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_opl4_ctl_put() argument 49 struct snd_opl4 *opl4 = snd_kcontrol_chip(kcontrol); in snd_opl4_ctl_put() 51 u8 reg = kcontrol->private_value; in snd_opl4_ctl_put()
|
/linux-4.4.14/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 727 static int snd_ad1816a_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ad1816a_info_mux() argument 737 static int snd_ad1816a_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ad1816a_get_mux() argument 739 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); in snd_ad1816a_get_mux() 751 static int snd_ad1816a_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_ad1816a_put_mux() argument 753 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); in snd_ad1816a_put_mux() 782 static int snd_ad1816a_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_ad1816a_info_single() argument 784 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_info_single() 793 static int snd_ad1816a_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_ad1816a_get_single() argument 795 struct snd_ad1816a *chip = snd_kcontrol_chip(kcontrol); in snd_ad1816a_get_single() 797 int reg = kcontrol->private_value & 0xff; in snd_ad1816a_get_single() [all …]
|
/linux-4.4.14/sound/isa/es1688/ |
D | es1688_lib.c | 758 static int snd_es1688_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_es1688_info_mux() argument 768 static int snd_es1688_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_get_mux() argument 770 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); in snd_es1688_get_mux() 775 static int snd_es1688_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_put_mux() argument 777 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); in snd_es1688_put_mux() 800 static int snd_es1688_info_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_es1688_info_single() argument 802 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_info_single() 811 static int snd_es1688_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es1688_get_single() argument 813 struct snd_es1688 *chip = snd_kcontrol_chip(kcontrol); in snd_es1688_get_single() 815 int reg = kcontrol->private_value & 0xff; in snd_es1688_get_single() [all …]
|
/linux-4.4.14/sound/pci/asihpi/ |
D | asihpi.c | 1495 static int snd_asihpi_volume_info(struct snd_kcontrol *kcontrol, in snd_asihpi_volume_info() argument 1498 u32 h_control = kcontrol->private_value; in snd_asihpi_volume_info() 1526 static int snd_asihpi_volume_get(struct snd_kcontrol *kcontrol, in snd_asihpi_volume_get() argument 1529 u32 h_control = kcontrol->private_value; in snd_asihpi_volume_get() 1539 static int snd_asihpi_volume_put(struct snd_kcontrol *kcontrol, in snd_asihpi_volume_put() argument 1543 u32 h_control = kcontrol->private_value; in snd_asihpi_volume_put() 1562 static int snd_asihpi_volume_mute_get(struct snd_kcontrol *kcontrol, in snd_asihpi_volume_mute_get() argument 1565 u32 h_control = kcontrol->private_value; in snd_asihpi_volume_mute_get() 1574 static int snd_asihpi_volume_mute_put(struct snd_kcontrol *kcontrol, in snd_asihpi_volume_mute_put() argument 1577 u32 h_control = kcontrol->private_value; in snd_asihpi_volume_mute_put() [all …]
|
/linux-4.4.14/sound/pci/echoaudio/ |
D | echoaudio.c | 990 static int snd_echo_output_gain_info(struct snd_kcontrol *kcontrol, in snd_echo_output_gain_info() argument 995 chip = snd_kcontrol_chip(kcontrol); in snd_echo_output_gain_info() 1003 static int snd_echo_output_gain_get(struct snd_kcontrol *kcontrol, in snd_echo_output_gain_get() argument 1009 chip = snd_kcontrol_chip(kcontrol); in snd_echo_output_gain_get() 1015 static int snd_echo_output_gain_put(struct snd_kcontrol *kcontrol, in snd_echo_output_gain_put() argument 1022 chip = snd_kcontrol_chip(kcontrol); in snd_echo_output_gain_put() 1071 static int snd_echo_input_gain_info(struct snd_kcontrol *kcontrol, in snd_echo_input_gain_info() argument 1076 chip = snd_kcontrol_chip(kcontrol); in snd_echo_input_gain_info() 1084 static int snd_echo_input_gain_get(struct snd_kcontrol *kcontrol, in snd_echo_input_gain_get() argument 1090 chip = snd_kcontrol_chip(kcontrol); in snd_echo_input_gain_get() [all …]
|
/linux-4.4.14/sound/pci/au88x0/ |
D | au88x0_a3d.c | 729 snd_vortex_a3d_hrtf_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_a3d_hrtf_info() argument 738 snd_vortex_a3d_itd_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_a3d_itd_info() argument 747 snd_vortex_a3d_ild_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_a3d_ild_info() argument 756 snd_vortex_a3d_filter_info(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_filter_info() argument 767 snd_vortex_a3d_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_a3d_get() argument 776 snd_vortex_a3d_hrtf_put(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_hrtf_put() argument 779 a3dsrc_t *a = kcontrol->private_data; in snd_vortex_a3d_hrtf_put() 793 snd_vortex_a3d_itd_put(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_itd_put() argument 796 a3dsrc_t *a = kcontrol->private_data; in snd_vortex_a3d_itd_put() 812 snd_vortex_a3d_ild_put(struct snd_kcontrol *kcontrol, in snd_vortex_a3d_ild_put() argument [all …]
|
D | au88x0_eq.c | 734 snd_vortex_eqtoggle_get(struct snd_kcontrol *kcontrol, in snd_vortex_eqtoggle_get() argument 737 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eqtoggle_get() 747 snd_vortex_eqtoggle_put(struct snd_kcontrol *kcontrol, in snd_vortex_eqtoggle_put() argument 750 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eqtoggle_put() 772 snd_vortex_eq_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_eq_info() argument 782 snd_vortex_eq_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_eq_get() argument 784 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eq_get() 785 int i = kcontrol->private_value; in snd_vortex_eq_get() 796 snd_vortex_eq_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_eq_put() argument 798 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_eq_put() [all …]
|
D | au88x0_pcm.c | 472 static int snd_vortex_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_vortex_spdif_info() argument 479 static int snd_vortex_spdif_mask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucon… in snd_vortex_spdif_mask_get() argument 488 static int snd_vortex_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_spdif_get() argument 490 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_spdif_get() 502 static int snd_vortex_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_vortex_spdif_put() argument 504 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_spdif_put() 538 static int snd_vortex_pcm_vol_info(struct snd_kcontrol *kcontrol, in snd_vortex_pcm_vol_info() argument 541 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_pcm_vol_info() 549 static int snd_vortex_pcm_vol_get(struct snd_kcontrol *kcontrol, in snd_vortex_pcm_vol_get() argument 553 vortex_t *vortex = snd_kcontrol_chip(kcontrol); in snd_vortex_pcm_vol_get() [all …]
|
/linux-4.4.14/sound/isa/msnd/ |
D | msnd_pinnacle_mixer.c | 55 static int snd_msndmix_info_mux(struct snd_kcontrol *kcontrol, in snd_msndmix_info_mux() argument 61 struct snd_msnd *chip = snd_kcontrol_chip(kcontrol); in snd_msndmix_info_mux() 67 static int snd_msndmix_get_mux(struct snd_kcontrol *kcontrol, in snd_msndmix_get_mux() argument 70 struct snd_msnd *chip = snd_kcontrol_chip(kcontrol); in snd_msndmix_get_mux() 119 static int snd_msndmix_put_mux(struct snd_kcontrol *kcontrol, in snd_msndmix_put_mux() argument 122 struct snd_msnd *msnd = snd_kcontrol_chip(kcontrol); in snd_msndmix_put_mux() 127 static int snd_msndmix_volume_info(struct snd_kcontrol *kcontrol, in snd_msndmix_volume_info() argument 137 static int snd_msndmix_volume_get(struct snd_kcontrol *kcontrol, in snd_msndmix_volume_get() argument 140 struct snd_msnd *msnd = snd_kcontrol_chip(kcontrol); in snd_msndmix_volume_get() 141 int addr = kcontrol->private_value; in snd_msndmix_volume_get() [all …]
|
/linux-4.4.14/sound/drivers/ |
D | aloop.c | 800 static int loopback_rate_shift_info(struct snd_kcontrol *kcontrol, in loopback_rate_shift_info() argument 811 static int loopback_rate_shift_get(struct snd_kcontrol *kcontrol, in loopback_rate_shift_get() argument 814 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_rate_shift_get() 817 loopback->setup[kcontrol->id.subdevice] in loopback_rate_shift_get() 818 [kcontrol->id.device].rate_shift; in loopback_rate_shift_get() 822 static int loopback_rate_shift_put(struct snd_kcontrol *kcontrol, in loopback_rate_shift_put() argument 825 struct loopback *loopback = snd_kcontrol_chip(kcontrol); in loopback_rate_shift_put() 835 if (val != loopback->setup[kcontrol->id.subdevice] in loopback_rate_shift_put() 836 [kcontrol->id.device].rate_shift) { in loopback_rate_shift_put() 837 loopback->setup[kcontrol->id.subdevice] in loopback_rate_shift_put() [all …]
|
D | dummy.c | 733 static int snd_dummy_volume_info(struct snd_kcontrol *kcontrol, in snd_dummy_volume_info() argument 743 static int snd_dummy_volume_get(struct snd_kcontrol *kcontrol, in snd_dummy_volume_get() argument 746 struct snd_dummy *dummy = snd_kcontrol_chip(kcontrol); in snd_dummy_volume_get() 747 int addr = kcontrol->private_value; in snd_dummy_volume_get() 756 static int snd_dummy_volume_put(struct snd_kcontrol *kcontrol, in snd_dummy_volume_put() argument 759 struct snd_dummy *dummy = snd_kcontrol_chip(kcontrol); in snd_dummy_volume_put() 760 int change, addr = kcontrol->private_value; in snd_dummy_volume_put() 792 static int snd_dummy_capsrc_get(struct snd_kcontrol *kcontrol, in snd_dummy_capsrc_get() argument 795 struct snd_dummy *dummy = snd_kcontrol_chip(kcontrol); in snd_dummy_capsrc_get() 796 int addr = kcontrol->private_value; in snd_dummy_capsrc_get() [all …]
|
/linux-4.4.14/sound/isa/ |
D | opl3sa2.c | 355 static int snd_opl3sa2_get_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_opl3sa2_get_single() argument 357 struct snd_opl3sa2 *chip = snd_kcontrol_chip(kcontrol); in snd_opl3sa2_get_single() 359 int reg = kcontrol->private_value & 0xff; in snd_opl3sa2_get_single() 360 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_opl3sa2_get_single() 361 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_opl3sa2_get_single() 362 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_get_single() 372 static int snd_opl3sa2_put_single(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_opl3sa2_put_single() argument 374 struct snd_opl3sa2 *chip = snd_kcontrol_chip(kcontrol); in snd_opl3sa2_put_single() 376 int reg = kcontrol->private_value & 0xff; in snd_opl3sa2_put_single() 377 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_opl3sa2_put_single() [all …]
|
D | es18xx.c | 966 static int snd_es18xx_info_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in snd_es18xx_info_mux() argument 975 struct snd_es18xx *chip = snd_kcontrol_chip(kcontrol); in snd_es18xx_info_mux() 992 static int snd_es18xx_get_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es18xx_get_mux() argument 995 struct snd_es18xx *chip = snd_kcontrol_chip(kcontrol); in snd_es18xx_get_mux() 1009 static int snd_es18xx_put_mux(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_es18xx_put_mux() argument 1012 struct snd_es18xx *chip = snd_kcontrol_chip(kcontrol); in snd_es18xx_put_mux() 1048 static int snd_es18xx_get_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_es18xx_get_spatializer_enable() argument 1050 struct snd_es18xx *chip = snd_kcontrol_chip(kcontrol); in snd_es18xx_get_spatializer_enable() 1056 static int snd_es18xx_put_spatializer_enable(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_es18xx_put_spatializer_enable() argument 1058 struct snd_es18xx *chip = snd_kcontrol_chip(kcontrol); in snd_es18xx_put_spatializer_enable() [all …]
|
/linux-4.4.14/sound/usb/ |
D | mixer_quirks.c | 300 static int snd_audigy2nx_led_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_audigy2nx_led_get() argument 302 ucontrol->value.integer.value[0] = kcontrol->private_value >> 8; in snd_audigy2nx_led_get() 336 static int snd_audigy2nx_led_put(struct snd_kcontrol *kcontrol, in snd_audigy2nx_led_put() argument 339 struct usb_mixer_elem_list *list = snd_kcontrol_chip(kcontrol); in snd_audigy2nx_led_put() 341 int index = kcontrol->private_value & 0xff; in snd_audigy2nx_led_put() 343 int old_value = kcontrol->private_value >> 8; in snd_audigy2nx_led_put() 350 kcontrol->private_value = (value << 8) | index; in snd_audigy2nx_led_put() 460 static int snd_emu0204_ch_switch_info(struct snd_kcontrol *kcontrol, in snd_emu0204_ch_switch_info() argument 468 static int snd_emu0204_ch_switch_get(struct snd_kcontrol *kcontrol, in snd_emu0204_ch_switch_get() argument 471 ucontrol->value.enumerated.item[0] = kcontrol->private_value; in snd_emu0204_ch_switch_get() [all …]
|
D | mixer.c | 536 int snd_usb_mixer_vol_tlv(struct snd_kcontrol *kcontrol, int op_flag, in snd_usb_mixer_vol_tlv() argument 539 struct usb_mixer_elem_info *cval = kcontrol->private_data; in snd_usb_mixer_vol_tlv() 1059 static int mixer_ctl_feature_info(struct snd_kcontrol *kcontrol, in mixer_ctl_feature_info() argument 1062 struct usb_mixer_elem_info *cval = kcontrol->private_data; in mixer_ctl_feature_info() 1076 get_min_max_with_quirks(cval, 0, kcontrol); in mixer_ctl_feature_info() 1078 kcontrol->vd[0].access &= in mixer_ctl_feature_info() 1083 &kcontrol->id); in mixer_ctl_feature_info() 1094 static int mixer_ctl_feature_get(struct snd_kcontrol *kcontrol, in mixer_ctl_feature_get() argument 1097 struct usb_mixer_elem_info *cval = kcontrol->private_data; in mixer_ctl_feature_get() 1126 static int mixer_ctl_feature_put(struct snd_kcontrol *kcontrol, in mixer_ctl_feature_put() argument [all …]
|
D | stream.c | 111 static int usb_chmap_ctl_info(struct snd_kcontrol *kcontrol, in usb_chmap_ctl_info() argument 114 struct snd_pcm_chmap *info = snd_kcontrol_chip(kcontrol); in usb_chmap_ctl_info() 140 static int usb_chmap_ctl_tlv(struct snd_kcontrol *kcontrol, int op_flag, in usb_chmap_ctl_tlv() argument 143 struct snd_pcm_chmap *info = snd_kcontrol_chip(kcontrol); in usb_chmap_ctl_tlv() 183 static int usb_chmap_ctl_get(struct snd_kcontrol *kcontrol, in usb_chmap_ctl_get() argument 186 struct snd_pcm_chmap *info = snd_kcontrol_chip(kcontrol); in usb_chmap_ctl_get()
|
/linux-4.4.14/sound/pci/rme9652/ |
D | hdsp.c | 1583 static int snd_hdsp_control_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uin… in snd_hdsp_control_spdif_info() argument 1590 static int snd_hdsp_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_hdsp_control_spdif_get() argument 1592 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_get() 1598 static int snd_hdsp_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uco… in snd_hdsp_control_spdif_put() argument 1600 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_put() 1612 static int snd_hdsp_control_spdif_stream_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_in… in snd_hdsp_control_spdif_stream_info() argument 1619 static int snd_hdsp_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_hdsp_control_spdif_stream_get() argument 1621 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_get() 1627 static int snd_hdsp_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_val… in snd_hdsp_control_spdif_stream_put() argument 1629 struct hdsp *hdsp = snd_kcontrol_chip(kcontrol); in snd_hdsp_control_spdif_stream_put() [all …]
|
D | rme9652.c | 810 static int snd_rme9652_control_spdif_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *… in snd_rme9652_control_spdif_info() argument 817 static int snd_rme9652_control_spdif_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *… in snd_rme9652_control_spdif_get() argument 819 struct snd_rme9652 *rme9652 = snd_kcontrol_chip(kcontrol); in snd_rme9652_control_spdif_get() 825 static int snd_rme9652_control_spdif_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *… in snd_rme9652_control_spdif_put() argument 827 struct snd_rme9652 *rme9652 = snd_kcontrol_chip(kcontrol); in snd_rme9652_control_spdif_put() 839 static int snd_rme9652_control_spdif_stream_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem… in snd_rme9652_control_spdif_stream_info() argument 846 static int snd_rme9652_control_spdif_stream_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_… in snd_rme9652_control_spdif_stream_get() argument 848 struct snd_rme9652 *rme9652 = snd_kcontrol_chip(kcontrol); in snd_rme9652_control_spdif_stream_get() 854 static int snd_rme9652_control_spdif_stream_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_… in snd_rme9652_control_spdif_stream_put() argument 856 struct snd_rme9652 *rme9652 = snd_kcontrol_chip(kcontrol); in snd_rme9652_control_spdif_stream_put() [all …]
|
D | hdspm.c | 2241 static int snd_hdspm_info_system_sample_rate(struct snd_kcontrol *kcontrol, in snd_hdspm_info_system_sample_rate() argument 2253 static int snd_hdspm_get_system_sample_rate(struct snd_kcontrol *kcontrol, in snd_hdspm_get_system_sample_rate() argument 2257 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_system_sample_rate() 2263 static int snd_hdspm_put_system_sample_rate(struct snd_kcontrol *kcontrol, in snd_hdspm_put_system_sample_rate() argument 2267 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_put_system_sample_rate() 2409 static int snd_hdspm_info_autosync_sample_rate(struct snd_kcontrol *kcontrol, in snd_hdspm_info_autosync_sample_rate() argument 2417 static int snd_hdspm_get_autosync_sample_rate(struct snd_kcontrol *kcontrol, in snd_hdspm_get_autosync_sample_rate() argument 2421 struct hdspm *hdspm = snd_kcontrol_chip(kcontrol); in snd_hdspm_get_autosync_sample_rate() 2425 switch (kcontrol->private_value) { in snd_hdspm_get_autosync_sample_rate() 2441 kcontrol->private_value-1); in snd_hdspm_get_autosync_sample_rate() [all …]
|
/linux-4.4.14/sound/soc/omap/ |
D | n810.c | 133 static int n810_get_spk(struct snd_kcontrol *kcontrol, in n810_get_spk() argument 141 static int n810_set_spk(struct snd_kcontrol *kcontrol, in n810_set_spk() argument 144 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in n810_set_spk() 155 static int n810_get_jack(struct snd_kcontrol *kcontrol, in n810_get_jack() argument 163 static int n810_set_jack(struct snd_kcontrol *kcontrol, in n810_set_jack() argument 166 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in n810_set_jack() 177 static int n810_get_input(struct snd_kcontrol *kcontrol, in n810_get_input() argument 185 static int n810_set_input(struct snd_kcontrol *kcontrol, in n810_set_input() argument 188 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in n810_set_input()
|
D | rx51.c | 132 static int rx51_get_spk(struct snd_kcontrol *kcontrol, in rx51_get_spk() argument 140 static int rx51_set_spk(struct snd_kcontrol *kcontrol, in rx51_set_spk() argument 143 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in rx51_set_spk() 180 static int rx51_get_input(struct snd_kcontrol *kcontrol, in rx51_get_input() argument 188 static int rx51_set_input(struct snd_kcontrol *kcontrol, in rx51_set_input() argument 191 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in rx51_set_input() 202 static int rx51_get_jack(struct snd_kcontrol *kcontrol, in rx51_get_jack() argument 210 static int rx51_set_jack(struct snd_kcontrol *kcontrol, in rx51_set_jack() argument 213 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in rx51_set_jack()
|
D | ams-delta.c | 98 static int ams_delta_set_audio_mode(struct snd_kcontrol *kcontrol, in ams_delta_set_audio_mode() argument 101 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in ams_delta_set_audio_mode() 103 struct soc_enum *control = (struct soc_enum *)kcontrol->private_value; in ams_delta_set_audio_mode() 171 static int ams_delta_get_audio_mode(struct snd_kcontrol *kcontrol, in ams_delta_get_audio_mode() argument 174 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in ams_delta_get_audio_mode()
|
D | omap-mcbsp.c | 609 static int omap_mcbsp_st_info_volsw(struct snd_kcontrol *kcontrol, in omap_mcbsp_st_info_volsw() argument 613 (struct soc_mixer_control *)kcontrol->private_value; in omap_mcbsp_st_info_volsw() 662 static int omap_mcbsp_st_put_mode(struct snd_kcontrol *kcontrol, in omap_mcbsp_st_put_mode() argument 665 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in omap_mcbsp_st_put_mode() 680 static int omap_mcbsp_st_get_mode(struct snd_kcontrol *kcontrol, in omap_mcbsp_st_get_mode() argument 683 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in omap_mcbsp_st_get_mode()
|
/linux-4.4.14/sound/usb/line6/ |
D | pcm.c | 24 static int snd_line6_impulse_volume_info(struct snd_kcontrol *kcontrol, in snd_line6_impulse_volume_info() argument 34 static int snd_line6_impulse_volume_get(struct snd_kcontrol *kcontrol, in snd_line6_impulse_volume_get() argument 37 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_volume_get() 43 static int snd_line6_impulse_volume_put(struct snd_kcontrol *kcontrol, in snd_line6_impulse_volume_put() argument 46 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_volume_put() 68 static int snd_line6_impulse_period_info(struct snd_kcontrol *kcontrol, in snd_line6_impulse_period_info() argument 78 static int snd_line6_impulse_period_get(struct snd_kcontrol *kcontrol, in snd_line6_impulse_period_get() argument 81 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_period_get() 87 static int snd_line6_impulse_period_put(struct snd_kcontrol *kcontrol, in snd_line6_impulse_period_put() argument 90 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_line6_impulse_period_put() [all …]
|
D | toneport.c | 147 static int snd_toneport_monitor_info(struct snd_kcontrol *kcontrol, in snd_toneport_monitor_info() argument 158 static int snd_toneport_monitor_get(struct snd_kcontrol *kcontrol, in snd_toneport_monitor_get() argument 161 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_get() 168 static int snd_toneport_monitor_put(struct snd_kcontrol *kcontrol, in snd_toneport_monitor_put() argument 171 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_monitor_put() 194 static int snd_toneport_source_info(struct snd_kcontrol *kcontrol, in snd_toneport_source_info() argument 213 static int snd_toneport_source_get(struct snd_kcontrol *kcontrol, in snd_toneport_source_get() argument 216 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_source_get() 224 static int snd_toneport_source_put(struct snd_kcontrol *kcontrol, in snd_toneport_source_put() argument 227 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_toneport_source_put()
|
D | pod.c | 346 static int snd_pod_control_monitor_info(struct snd_kcontrol *kcontrol, in snd_pod_control_monitor_info() argument 357 static int snd_pod_control_monitor_get(struct snd_kcontrol *kcontrol, in snd_pod_control_monitor_get() argument 360 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_get() 368 static int snd_pod_control_monitor_put(struct snd_kcontrol *kcontrol, in snd_pod_control_monitor_put() argument 371 struct snd_line6_pcm *line6pcm = snd_kcontrol_chip(kcontrol); in snd_pod_control_monitor_put()
|
/linux-4.4.14/Documentation/sound/alsa/ |
D | Jack-Controls.txt | 22 Each jack will have a kcontrol list, so that we can create a kcontrol 24 kcontrol to an existing jack, at anytime when required. 34 - @initial_kctl: if true, create a kcontrol and add it to the jack 39 jack and set initial_kctl to true to create an initial kcontrol with 43 assigned as the jack kcontrol name.
|
/linux-4.4.14/sound/pci/ctxfi/ |
D | ctmixer.c | 334 static int ct_alsa_mix_volume_info(struct snd_kcontrol *kcontrol, in ct_alsa_mix_volume_info() argument 345 static int ct_alsa_mix_volume_get(struct snd_kcontrol *kcontrol, in ct_alsa_mix_volume_get() argument 348 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in ct_alsa_mix_volume_get() 349 enum CT_AMIXER_CTL type = get_amixer_index(kcontrol->private_value); in ct_alsa_mix_volume_get() 367 static int ct_alsa_mix_volume_put(struct snd_kcontrol *kcontrol, in ct_alsa_mix_volume_put() argument 370 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in ct_alsa_mix_volume_put() 372 enum CT_AMIXER_CTL type = get_amixer_index(kcontrol->private_value); in ct_alsa_mix_volume_put() 414 static int output_switch_info(struct snd_kcontrol *kcontrol, in output_switch_info() argument 424 static int output_switch_get(struct snd_kcontrol *kcontrol, in output_switch_get() argument 427 struct ct_atc *atc = snd_kcontrol_chip(kcontrol); in output_switch_get() [all …]
|
/linux-4.4.14/sound/soc/pxa/ |
D | tosa.c | 95 static int tosa_get_jack(struct snd_kcontrol *kcontrol, in tosa_get_jack() argument 102 static int tosa_set_jack(struct snd_kcontrol *kcontrol, in tosa_set_jack() argument 105 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in tosa_set_jack() 115 static int tosa_get_spk(struct snd_kcontrol *kcontrol, in tosa_get_spk() argument 122 static int tosa_set_spk(struct snd_kcontrol *kcontrol, in tosa_set_spk() argument 125 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in tosa_set_spk()
|
D | poodle.c | 138 static int poodle_get_jack(struct snd_kcontrol *kcontrol, in poodle_get_jack() argument 145 static int poodle_set_jack(struct snd_kcontrol *kcontrol, in poodle_set_jack() argument 148 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in poodle_set_jack() 158 static int poodle_get_spk(struct snd_kcontrol *kcontrol, in poodle_get_spk() argument 165 static int poodle_set_spk(struct snd_kcontrol *kcontrol, in poodle_set_spk() argument 168 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in poodle_set_spk()
|
D | corgi.c | 163 static int corgi_get_jack(struct snd_kcontrol *kcontrol, in corgi_get_jack() argument 170 static int corgi_set_jack(struct snd_kcontrol *kcontrol, in corgi_set_jack() argument 173 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in corgi_set_jack() 183 static int corgi_get_spk(struct snd_kcontrol *kcontrol, in corgi_get_spk() argument 190 static int corgi_set_spk(struct snd_kcontrol *kcontrol, in corgi_set_spk() argument 193 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in corgi_set_spk()
|
D | spitz.c | 164 static int spitz_get_jack(struct snd_kcontrol *kcontrol, in spitz_get_jack() argument 171 static int spitz_set_jack(struct snd_kcontrol *kcontrol, in spitz_set_jack() argument 174 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in spitz_set_jack() 184 static int spitz_get_spk(struct snd_kcontrol *kcontrol, in spitz_get_spk() argument 191 static int spitz_set_spk(struct snd_kcontrol *kcontrol, in spitz_set_spk() argument 194 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in spitz_set_spk()
|
D | magician.c | 268 static int magician_get_hp(struct snd_kcontrol *kcontrol, in magician_get_hp() argument 275 static int magician_set_hp(struct snd_kcontrol *kcontrol, in magician_set_hp() argument 278 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in magician_set_hp() 288 static int magician_get_spk(struct snd_kcontrol *kcontrol, in magician_get_spk() argument 295 static int magician_set_spk(struct snd_kcontrol *kcontrol, in magician_set_spk() argument 298 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in magician_set_spk() 308 static int magician_get_input(struct snd_kcontrol *kcontrol, in magician_get_input() argument 315 static int magician_set_input(struct snd_kcontrol *kcontrol, in magician_set_input() argument
|
D | e750_wm9705.c | 29 struct snd_kcontrol *kcontrol, int event) in e750_spk_amp_event() argument 40 struct snd_kcontrol *kcontrol, int event) in e750_hp_amp_event() argument
|
D | e800_wm9712.c | 28 struct snd_kcontrol *kcontrol, int event) in e800_spk_amp_event() argument 39 struct snd_kcontrol *kcontrol, int event) in e800_hp_amp_event() argument
|
D | e740_wm9705.c | 42 struct snd_kcontrol *kcontrol, int event) in e740_mic_amp_event() argument 55 struct snd_kcontrol *kcontrol, int event) in e740_output_amp_event() argument
|
/linux-4.4.14/drivers/media/usb/em28xx/ |
D | em28xx-audio.c | 479 static int em28xx_vol_info(struct snd_kcontrol *kcontrol, in em28xx_vol_info() argument 482 struct em28xx *dev = snd_kcontrol_chip(kcontrol); in em28xx_vol_info() 495 static int em28xx_vol_put(struct snd_kcontrol *kcontrol, in em28xx_vol_put() argument 498 struct em28xx *dev = snd_kcontrol_chip(kcontrol); in em28xx_vol_put() 515 rc = em28xx_read_ac97(dev, kcontrol->private_value); in em28xx_vol_put() 521 rc = em28xx_write_ac97(dev, kcontrol->private_value, val); in em28xx_vol_put() 528 val, (int)kcontrol->private_value); in em28xx_vol_put() 535 static int em28xx_vol_get(struct snd_kcontrol *kcontrol, in em28xx_vol_get() argument 538 struct em28xx *dev = snd_kcontrol_chip(kcontrol); in em28xx_vol_get() 553 val = em28xx_read_ac97(dev, kcontrol->private_value); in em28xx_vol_get() [all …]
|
/linux-4.4.14/drivers/media/pci/saa7134/ |
D | saa7134-alsa.c | 391 static int snd_saa7134_capsrc_set(struct snd_kcontrol *kcontrol, in snd_saa7134_capsrc_set() argument 394 snd_card_saa7134_t *chip = snd_kcontrol_chip(kcontrol); in snd_saa7134_capsrc_set() 395 int change = 0, addr = kcontrol->private_value; in snd_saa7134_capsrc_set() 920 static int snd_saa7134_volume_info(struct snd_kcontrol * kcontrol, in snd_saa7134_volume_info() argument 930 static int snd_saa7134_volume_get(struct snd_kcontrol * kcontrol, in snd_saa7134_volume_get() argument 933 snd_card_saa7134_t *chip = snd_kcontrol_chip(kcontrol); in snd_saa7134_volume_get() 934 int addr = kcontrol->private_value; in snd_saa7134_volume_get() 941 static int snd_saa7134_volume_put(struct snd_kcontrol * kcontrol, in snd_saa7134_volume_put() argument 944 snd_card_saa7134_t *chip = snd_kcontrol_chip(kcontrol); in snd_saa7134_volume_put() 947 int change, addr = kcontrol->private_value; in snd_saa7134_volume_put() [all …]
|
/linux-4.4.14/sound/pci/ymfpci/ |
D | ymfpci_main.c | 1281 static int snd_ymfpci_spdif_default_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *u… in snd_ymfpci_spdif_default_info() argument 1288 static int snd_ymfpci_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_ymfpci_spdif_default_get() argument 1291 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); in snd_ymfpci_spdif_default_get() 1301 static int snd_ymfpci_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_ymfpci_spdif_default_put() argument 1304 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); in snd_ymfpci_spdif_default_put() 1328 static int snd_ymfpci_spdif_mask_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinf… in snd_ymfpci_spdif_mask_info() argument 1335 static int snd_ymfpci_spdif_mask_get(struct snd_kcontrol *kcontrol, in snd_ymfpci_spdif_mask_get() argument 1338 struct snd_ymfpci *chip = snd_kcontrol_chip(kcontrol); in snd_ymfpci_spdif_mask_get() 1356 static int snd_ymfpci_spdif_stream_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *ui… in snd_ymfpci_spdif_stream_info() argument 1363 static int snd_ymfpci_spdif_stream_get(struct snd_kcontrol *kcontrol, in snd_ymfpci_spdif_stream_get() argument [all …]
|
/linux-4.4.14/sound/soc/intel/atom/ |
D | sst-atom-controls.c | 135 static int sst_slot_enum_info(struct snd_kcontrol *kcontrol, in sst_slot_enum_info() argument 138 struct sst_enum *e = (struct sst_enum *)kcontrol->private_value; in sst_slot_enum_info() 159 static int sst_slot_get(struct snd_kcontrol *kcontrol, in sst_slot_get() argument 162 struct sst_enum *e = (void *)kcontrol->private_value; in sst_slot_get() 163 struct snd_soc_component *c = snd_kcontrol_chip(kcontrol); in sst_slot_get() 191 static int sst_check_and_send_slot_map(struct sst_data *drv, struct snd_kcontrol *kcontrol) in sst_check_and_send_slot_map() argument 193 struct sst_enum *e = (void *)kcontrol->private_value; in sst_check_and_send_slot_map() 200 kcontrol->id.name); in sst_check_and_send_slot_map() 217 static int sst_slot_put(struct snd_kcontrol *kcontrol, in sst_slot_put() argument 220 struct snd_soc_component *c = snd_soc_kcontrol_component(kcontrol); in sst_slot_put() [all …]
|
/linux-4.4.14/drivers/media/pci/cx88/ |
D | cx88-alsa.c | 635 static int snd_cx88_volume_info(struct snd_kcontrol *kcontrol, in snd_cx88_volume_info() argument 646 static int snd_cx88_volume_get(struct snd_kcontrol *kcontrol, in snd_cx88_volume_get() argument 649 snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_volume_get() 661 static void snd_cx88_wm8775_volume_put(struct snd_kcontrol *kcontrol, in snd_cx88_wm8775_volume_put() argument 664 snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_wm8775_volume_put() 683 static int snd_cx88_volume_put(struct snd_kcontrol *kcontrol, in snd_cx88_volume_put() argument 686 snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_volume_put() 693 snd_cx88_wm8775_volume_put(kcontrol, value); in snd_cx88_volume_put() 733 static int snd_cx88_switch_get(struct snd_kcontrol *kcontrol, in snd_cx88_switch_get() argument 736 snd_cx88_card_t *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_switch_get() [all …]
|
/linux-4.4.14/sound/usb/caiaq/ |
D | control.c | 33 static int control_info(struct snd_kcontrol *kcontrol, in control_info() argument 36 struct snd_usb_audio *chip = snd_kcontrol_chip(kcontrol); in control_info() 38 int pos = kcontrol->private_value; in control_info() 79 static int control_get(struct snd_kcontrol *kcontrol, in control_get() argument 82 struct snd_usb_audio *chip = snd_kcontrol_chip(kcontrol); in control_get() 84 int pos = kcontrol->private_value; in control_get() 96 static int control_put(struct snd_kcontrol *kcontrol, in control_put() argument 99 struct snd_usb_audio *chip = snd_kcontrol_chip(kcontrol); in control_put() 101 int pos = kcontrol->private_value; in control_put()
|
/linux-4.4.14/sound/sparc/ |
D | cs4231.c | 1285 static int snd_cs4231_info_mux(struct snd_kcontrol *kcontrol, in snd_cs4231_info_mux() argument 1295 static int snd_cs4231_get_mux(struct snd_kcontrol *kcontrol, in snd_cs4231_get_mux() argument 1298 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol); in snd_cs4231_get_mux() 1311 static int snd_cs4231_put_mux(struct snd_kcontrol *kcontrol, in snd_cs4231_put_mux() argument 1314 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol); in snd_cs4231_put_mux() 1339 static int snd_cs4231_info_single(struct snd_kcontrol *kcontrol, in snd_cs4231_info_single() argument 1342 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4231_info_single() 1353 static int snd_cs4231_get_single(struct snd_kcontrol *kcontrol, in snd_cs4231_get_single() argument 1356 struct snd_cs4231 *chip = snd_kcontrol_chip(kcontrol); in snd_cs4231_get_single() 1358 int reg = kcontrol->private_value & 0xff; in snd_cs4231_get_single() [all …]
|
D | dbri.c | 2252 static int snd_cs4215_info_volume(struct snd_kcontrol *kcontrol, in snd_cs4215_info_volume() argument 2258 if (kcontrol->private_value == DBRI_PLAY) in snd_cs4215_info_volume() 2265 static int snd_cs4215_get_volume(struct snd_kcontrol *kcontrol, in snd_cs4215_get_volume() argument 2268 struct snd_dbri *dbri = snd_kcontrol_chip(kcontrol); in snd_cs4215_get_volume() 2273 info = &dbri->stream_info[kcontrol->private_value]; in snd_cs4215_get_volume() 2280 static int snd_cs4215_put_volume(struct snd_kcontrol *kcontrol, in snd_cs4215_put_volume() argument 2283 struct snd_dbri *dbri = snd_kcontrol_chip(kcontrol); in snd_cs4215_put_volume() 2285 &dbri->stream_info[kcontrol->private_value]; in snd_cs4215_put_volume() 2291 if (kcontrol->private_value == DBRI_PLAY) { in snd_cs4215_put_volume() 2318 static int snd_cs4215_info_single(struct snd_kcontrol *kcontrol, in snd_cs4215_info_single() argument [all …]
|
/linux-4.4.14/sound/soc/fsl/ |
D | fsl_spdif.c | 632 static int fsl_spdif_info(struct snd_kcontrol *kcontrol, in fsl_spdif_info() argument 641 static int fsl_spdif_pb_get(struct snd_kcontrol *kcontrol, in fsl_spdif_pb_get() argument 644 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in fsl_spdif_pb_get() 656 static int fsl_spdif_pb_put(struct snd_kcontrol *kcontrol, in fsl_spdif_pb_put() argument 659 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in fsl_spdif_pb_put() 674 static int fsl_spdif_capture_get(struct snd_kcontrol *kcontrol, in fsl_spdif_capture_get() argument 677 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in fsl_spdif_capture_get() 706 static int fsl_spdif_subcode_get(struct snd_kcontrol *kcontrol, in fsl_spdif_subcode_get() argument 709 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in fsl_spdif_subcode_get() 728 static int fsl_spdif_qinfo(struct snd_kcontrol *kcontrol, in fsl_spdif_qinfo() argument [all …]
|
D | mx27vis-aic32x4.c | 80 static int mx27vis_amp_set(struct snd_kcontrol *kcontrol, in mx27vis_amp_set() argument 84 (struct soc_mixer_control *)kcontrol->private_value; in mx27vis_amp_set() 107 static int mx27vis_amp_get(struct snd_kcontrol *kcontrol, in mx27vis_amp_get() argument 111 (struct soc_mixer_control *)kcontrol->private_value; in mx27vis_amp_get()
|
/linux-4.4.14/sound/isa/wss/ |
D | wss_lib.c | 1989 static int snd_wss_info_mux(struct snd_kcontrol *kcontrol, in snd_wss_info_mux() argument 2002 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_wss_info_mux() 2020 static int snd_wss_get_mux(struct snd_kcontrol *kcontrol, in snd_wss_get_mux() argument 2023 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_wss_get_mux() 2033 static int snd_wss_put_mux(struct snd_kcontrol *kcontrol, in snd_wss_put_mux() argument 2036 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_wss_put_mux() 2057 int snd_wss_info_single(struct snd_kcontrol *kcontrol, in snd_wss_info_single() argument 2060 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_wss_info_single() 2070 int snd_wss_get_single(struct snd_kcontrol *kcontrol, in snd_wss_get_single() argument 2073 struct snd_wss *chip = snd_kcontrol_chip(kcontrol); in snd_wss_get_single() [all …]
|
/linux-4.4.14/sound/pci/trident/ |
D | trident_main.c | 2315 static int snd_trident_spdif_control_get(struct snd_kcontrol *kcontrol, in snd_trident_spdif_control_get() argument 2318 struct snd_trident *trident = snd_kcontrol_chip(kcontrol); in snd_trident_spdif_control_get() 2323 ucontrol->value.integer.value[0] = val == kcontrol->private_value; in snd_trident_spdif_control_get() 2328 static int snd_trident_spdif_control_put(struct snd_kcontrol *kcontrol, in snd_trident_spdif_control_put() argument 2331 struct snd_trident *trident = snd_kcontrol_chip(kcontrol); in snd_trident_spdif_control_put() 2335 val = ucontrol->value.integer.value[0] ? (unsigned char) kcontrol->private_value : 0x00; in snd_trident_spdif_control_put() 2375 static int snd_trident_spdif_default_info(struct snd_kcontrol *kcontrol, in snd_trident_spdif_default_info() argument 2383 static int snd_trident_spdif_default_get(struct snd_kcontrol *kcontrol, in snd_trident_spdif_default_get() argument 2386 struct snd_trident *trident = snd_kcontrol_chip(kcontrol); in snd_trident_spdif_default_get() 2397 static int snd_trident_spdif_default_put(struct snd_kcontrol *kcontrol, in snd_trident_spdif_default_put() argument [all …]
|
/linux-4.4.14/sound/isa/opti9xx/ |
D | miro.c | 268 static int snd_miro_get_capture(struct snd_kcontrol *kcontrol, in snd_miro_get_capture() argument 271 struct snd_miro *miro = snd_kcontrol_chip(kcontrol); in snd_miro_get_capture() 286 static int snd_miro_put_capture(struct snd_kcontrol *kcontrol, in snd_miro_put_capture() argument 289 struct snd_miro *miro = snd_kcontrol_chip(kcontrol); in snd_miro_put_capture() 307 static int snd_miro_info_preamp(struct snd_kcontrol *kcontrol, in snd_miro_info_preamp() argument 318 static int snd_miro_get_preamp(struct snd_kcontrol *kcontrol, in snd_miro_get_preamp() argument 321 struct snd_miro *miro = snd_kcontrol_chip(kcontrol); in snd_miro_get_preamp() 348 static int snd_miro_put_preamp(struct snd_kcontrol *kcontrol, in snd_miro_put_preamp() argument 351 struct snd_miro *miro = snd_kcontrol_chip(kcontrol); in snd_miro_put_preamp() 371 static int snd_miro_get_amp(struct snd_kcontrol *kcontrol, in snd_miro_get_amp() argument [all …]
|
/linux-4.4.14/sound/pci/korg1212/ |
D | korg1212.c | 1711 static int snd_korg1212_control_phase_info(struct snd_kcontrol *kcontrol, in snd_korg1212_control_phase_info() argument 1715 uinfo->count = (kcontrol->private_value >= 8) ? 2 : 1; in snd_korg1212_control_phase_info() 1719 static int snd_korg1212_control_phase_get(struct snd_kcontrol *kcontrol, in snd_korg1212_control_phase_get() argument 1722 struct snd_korg1212 *korg1212 = snd_kcontrol_chip(kcontrol); in snd_korg1212_control_phase_get() 1723 int i = kcontrol->private_value; in snd_korg1212_control_phase_get() 1737 static int snd_korg1212_control_phase_put(struct snd_kcontrol *kcontrol, in snd_korg1212_control_phase_put() argument 1740 struct snd_korg1212 *korg1212 = snd_kcontrol_chip(kcontrol); in snd_korg1212_control_phase_put() 1746 i = kcontrol->private_value; in snd_korg1212_control_phase_put() 1750 val = korg1212->sharedBufferPtr->volumeData[kcontrol->private_value]; in snd_korg1212_control_phase_put() 1761 val = korg1212->sharedBufferPtr->volumeData[kcontrol->private_value+1]; in snd_korg1212_control_phase_put() [all …]
|
/linux-4.4.14/sound/mips/ |
D | sgio2audio.c | 158 static int sgio2audio_gain_info(struct snd_kcontrol *kcontrol, in sgio2audio_gain_info() argument 161 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_gain_info() 167 (int)kcontrol->private_value); in sgio2audio_gain_info() 171 static int sgio2audio_gain_get(struct snd_kcontrol *kcontrol, in sgio2audio_gain_get() argument 174 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_gain_get() 177 vol = ad1843_get_gain(&chip->ad1843, (int)kcontrol->private_value); in sgio2audio_gain_get() 185 static int sgio2audio_gain_put(struct snd_kcontrol *kcontrol, in sgio2audio_gain_put() argument 188 struct snd_sgio2audio *chip = snd_kcontrol_chip(kcontrol); in sgio2audio_gain_put() 191 oldvol = ad1843_get_gain(&chip->ad1843, kcontrol->private_value); in sgio2audio_gain_put() 195 newvol = ad1843_set_gain(&chip->ad1843, kcontrol->private_value, in sgio2audio_gain_put() [all …]
|
D | hal2.c | 182 static int hal2_gain_info(struct snd_kcontrol *kcontrol, in hal2_gain_info() argument 188 switch ((int)kcontrol->private_value) { in hal2_gain_info() 199 static int hal2_gain_get(struct snd_kcontrol *kcontrol, in hal2_gain_get() argument 202 struct snd_hal2 *hal2 = snd_kcontrol_chip(kcontrol); in hal2_gain_get() 206 switch ((int)kcontrol->private_value) { in hal2_gain_get() 229 static int hal2_gain_put(struct snd_kcontrol *kcontrol, in hal2_gain_put() argument 232 struct snd_hal2 *hal2 = snd_kcontrol_chip(kcontrol); in hal2_gain_put() 239 switch ((int)kcontrol->private_value) { in hal2_gain_put()
|
/linux-4.4.14/sound/soc/intel/boards/ |
D | mfld_machine.c | 94 static int headset_get_switch(struct snd_kcontrol *kcontrol, in headset_get_switch() argument 101 static int headset_set_switch(struct snd_kcontrol *kcontrol, in headset_set_switch() argument 104 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in headset_set_switch() 148 static int lo_get_switch(struct snd_kcontrol *kcontrol, in lo_get_switch() argument 155 static int lo_set_switch(struct snd_kcontrol *kcontrol, in lo_set_switch() argument 158 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in lo_set_switch()
|
/linux-4.4.14/sound/pci/cs46xx/ |
D | cs46xx_lib.c | 1902 static int snd_cs46xx_vol_info(struct snd_kcontrol *kcontrol, in snd_cs46xx_vol_info() argument 1912 static int snd_cs46xx_vol_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs46xx_vol_get() argument 1914 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); in snd_cs46xx_vol_get() 1915 int reg = kcontrol->private_value; in snd_cs46xx_vol_get() 1922 static int snd_cs46xx_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in snd_cs46xx_vol_put() argument 1924 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); in snd_cs46xx_vol_put() 1925 int reg = kcontrol->private_value; in snd_cs46xx_vol_put() 1940 static int snd_cs46xx_vol_dac_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs46xx_vol_dac_get() argument 1942 struct snd_cs46xx *chip = snd_kcontrol_chip(kcontrol); in snd_cs46xx_vol_dac_get() 1950 static int snd_cs46xx_vol_dac_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontro… in snd_cs46xx_vol_dac_put() argument [all …]
|
/linux-4.4.14/sound/aoa/fabrics/ |
D | layout.c | 634 static int n##_control_get(struct snd_kcontrol *kcontrol, \ 637 struct gpio_runtime *gpio = snd_kcontrol_chip(kcontrol); \ 643 static int n##_control_put(struct snd_kcontrol *kcontrol, \ 646 struct gpio_runtime *gpio = snd_kcontrol_chip(kcontrol); \ 666 static int detect_choice_get(struct snd_kcontrol *kcontrol, in detect_choice_get() argument 669 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detect_choice_get() 671 switch (kcontrol->private_value) { in detect_choice_get() 684 static int detect_choice_put(struct snd_kcontrol *kcontrol, in detect_choice_put() argument 687 struct layout_dev *ldev = snd_kcontrol_chip(kcontrol); in detect_choice_put() 689 switch (kcontrol->private_value) { in detect_choice_put() [all …]
|
/linux-4.4.14/sound/soc/samsung/ |
D | s3c24xx_simtec.c | 34 static int speaker_gain_get(struct snd_kcontrol *kcontrol, in speaker_gain_get() argument 63 static int speaker_gain_put(struct snd_kcontrol *kcontrol, in speaker_gain_put() argument 104 static int speaker_unmute_get(struct snd_kcontrol *kcontrol, in speaker_unmute_get() argument 119 static int speaker_unmute_put(struct snd_kcontrol *kcontrol, in speaker_unmute_put() argument
|
D | rx1950_uda1380.c | 39 struct snd_kcontrol *kcontrol, int event); 143 struct snd_kcontrol *kcontrol, int event) in rx1950_spk_power() argument
|
/linux-4.4.14/sound/pci/vx222/ |
D | vx222_ops.c | 869 static int vx_input_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_input_level_info() argument 878 static int vx_input_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_input_level_get() argument 880 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_input_level_get() 889 static int vx_input_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_input_level_put() argument 891 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_input_level_put() 913 static int vx_mic_level_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) in vx_mic_level_info() argument 922 static int vx_mic_level_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_get() argument 924 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_get() 930 static int vx_mic_level_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) in vx_mic_level_put() argument 932 struct vx_core *_chip = snd_kcontrol_chip(kcontrol); in vx_mic_level_put()
|
/linux-4.4.14/sound/soc/intel/haswell/ |
D | sst-haswell-pcm.c | 181 static int hsw_stream_volume_put(struct snd_kcontrol *kcontrol, in hsw_stream_volume_put() argument 184 struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); in hsw_stream_volume_put() 186 (struct soc_mixer_control *)kcontrol->private_value; in hsw_stream_volume_put() 230 static int hsw_stream_volume_get(struct snd_kcontrol *kcontrol, in hsw_stream_volume_get() argument 233 struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); in hsw_stream_volume_get() 235 (struct soc_mixer_control *)kcontrol->private_value; in hsw_stream_volume_get() 273 static int hsw_volume_put(struct snd_kcontrol *kcontrol, in hsw_volume_put() argument 276 struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); in hsw_volume_put() 302 static int hsw_volume_get(struct snd_kcontrol *kcontrol, in hsw_volume_get() argument 305 struct snd_soc_platform *platform = snd_soc_kcontrol_platform(kcontrol); in hsw_volume_get() [all …]
|
/linux-4.4.14/sound/pci/aw2/ |
D | aw2-alsa.c | 140 static int snd_aw2_control_switch_capture_info(struct snd_kcontrol *kcontrol, 142 static int snd_aw2_control_switch_capture_get(struct snd_kcontrol *kcontrol, 145 static int snd_aw2_control_switch_capture_put(struct snd_kcontrol *kcontrol, 723 static int snd_aw2_control_switch_capture_info(struct snd_kcontrol *kcontrol, in snd_aw2_control_switch_capture_info() argument 732 static int snd_aw2_control_switch_capture_get(struct snd_kcontrol *kcontrol, in snd_aw2_control_switch_capture_get() argument 736 struct aw2 *chip = snd_kcontrol_chip(kcontrol); in snd_aw2_control_switch_capture_get() 744 static int snd_aw2_control_switch_capture_put(struct snd_kcontrol *kcontrol, in snd_aw2_control_switch_capture_put() argument 748 struct aw2 *chip = snd_kcontrol_chip(kcontrol); in snd_aw2_control_switch_capture_put()
|
/linux-4.4.14/sound/soc/sti/ |
D | uniperif_player.c | 545 static int uni_player_ctl_iec958_info(struct snd_kcontrol *kcontrol, in uni_player_ctl_iec958_info() argument 554 static int uni_player_ctl_iec958_get(struct snd_kcontrol *kcontrol, in uni_player_ctl_iec958_get() argument 557 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); in uni_player_ctl_iec958_get() 571 static int uni_player_ctl_iec958_put(struct snd_kcontrol *kcontrol, in uni_player_ctl_iec958_put() argument 574 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); in uni_player_ctl_iec958_put() 602 static int snd_sti_clk_adjustment_info(struct snd_kcontrol *kcontrol, in snd_sti_clk_adjustment_info() argument 614 static int snd_sti_clk_adjustment_get(struct snd_kcontrol *kcontrol, in snd_sti_clk_adjustment_get() argument 617 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); in snd_sti_clk_adjustment_get() 628 static int snd_sti_clk_adjustment_put(struct snd_kcontrol *kcontrol, in snd_sti_clk_adjustment_put() argument 631 struct snd_soc_dai *dai = snd_kcontrol_chip(kcontrol); in snd_sti_clk_adjustment_put()
|
/linux-4.4.14/drivers/media/pci/solo6x10/ |
D | solo6x10-g723.c | 267 static int snd_solo_capture_volume_info(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_info() argument 279 static int snd_solo_capture_volume_get(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_get() argument 282 struct solo_dev *solo_dev = snd_kcontrol_chip(kcontrol); in snd_solo_capture_volume_get() 290 static int snd_solo_capture_volume_put(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_put() argument 293 struct solo_dev *solo_dev = snd_kcontrol_chip(kcontrol); in snd_solo_capture_volume_put()
|
/linux-4.4.14/sound/sh/ |
D | aica.c | 483 static int aica_pcmswitch_get(struct snd_kcontrol *kcontrol, in aica_pcmswitch_get() argument 490 static int aica_pcmswitch_put(struct snd_kcontrol *kcontrol, in aica_pcmswitch_put() argument 500 static int aica_pcmvolume_info(struct snd_kcontrol *kcontrol, in aica_pcmvolume_info() argument 510 static int aica_pcmvolume_get(struct snd_kcontrol *kcontrol, in aica_pcmvolume_get() argument 514 dreamcastcard = kcontrol->private_data; in aica_pcmvolume_get() 521 static int aica_pcmvolume_put(struct snd_kcontrol *kcontrol, in aica_pcmvolume_put() argument 526 dreamcastcard = kcontrol->private_data; in aica_pcmvolume_put()
|
/linux-4.4.14/sound/soc/spear/ |
D | spdif_out.c | 213 static int spdif_mute_get(struct snd_kcontrol *kcontrol, in spdif_mute_get() argument 216 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in spdif_mute_get() 223 static int spdif_mute_put(struct snd_kcontrol *kcontrol, in spdif_mute_put() argument 226 struct snd_soc_dai *cpu_dai = snd_kcontrol_chip(kcontrol); in spdif_mute_put()
|
/linux-4.4.14/sound/soc/ux500/ |
D | mop500_ab8500.c | 133 static int mclk_input_control_get(struct snd_kcontrol *kcontrol, in mclk_input_control_get() argument 136 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in mclk_input_control_get() 145 static int mclk_input_control_put(struct snd_kcontrol *kcontrol, in mclk_input_control_put() argument 148 struct snd_soc_card *card = snd_kcontrol_chip(kcontrol); in mclk_input_control_put()
|