/Linux-v4.19/sound/i2c/other/ |
D | ak4xxx-adda.c | 369 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_info() 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() 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() 400 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in put_ak_reg() 402 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in put_ak_reg() 404 if (AK_GET_INVERT(kcontrol->private_value)) in put_ak_reg() 406 if (AK_GET_NEEDSMSB(kcontrol->private_value)) in put_ak_reg() 417 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_put() [all …]
|
/Linux-v4.19/sound/pci/ |
D | ak4531_codec.c | 65 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) } 72 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \ 77 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_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() 108 int reg = kcontrol->private_value & 0xff; in snd_ak4531_put_single() 109 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_single() 110 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_put_single() [all …]
|
/Linux-v4.19/sound/ppc/ |
D | burgundy.c | 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() 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() 215 .private_value = ((ADDR2BASE(addr) & 0xff) | ((shift) << 8)) } 264 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume_2b() 265 int off = kcontrol->private_value & 0x300; in snd_pmac_burgundy_get_volume_2b() 275 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume_2b() 276 int off = kcontrol->private_value & 0x300; in snd_pmac_burgundy_put_volume_2b() 291 .private_value = ((ADDR2BASE(addr) & 0xff) | ((off) << 8)) } [all …]
|
D | awacs.c | 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() 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() 174 int inverted = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_put_volume() 206 .private_value = (xreg) | ((xshift) << 8) | ((xinverted) << 16) } 215 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_get_switch() 216 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_switch() 217 int invert = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_get_switch() [all …]
|
/Linux-v4.19/sound/isa/cs423x/ |
D | cs4236_lib.c | 398 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 405 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \ 410 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_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() 440 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_single() 441 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_single() 442 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_single() [all …]
|
/Linux-v4.19/sound/usb/ |
D | mixer_quirks.c | 302 ucontrol->value.integer.value[0] = kcontrol->private_value >> 8; in snd_audigy2nx_led_get() 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() 357 int priv_value = list->kctl->private_value; in snd_audigy2nx_led_resume() 399 knew.private_value = (1 << 8) | i; /* LED on as default */ in snd_audigy2nx_controls_create() 471 ucontrol->value.enumerated.item[0] = kcontrol->private_value; in snd_emu0204_ch_switch_get() 507 if (value == kcontrol->private_value) in snd_emu0204_ch_switch_put() 510 kcontrol->private_value = value; in snd_emu0204_ch_switch_put() 518 list->kctl->private_value); in snd_emu0204_ch_switch_resume() [all …]
|
D | mixer_us16x08.h | 18 #define SND_US16X08_KCBIAS(x) (((x)->private_value >> 24) & 0xff) 19 #define SND_US16X08_KCSTEP(x) (((x)->private_value >> 16) & 0xff) 20 #define SND_US16X08_KCMIN(x) (((x)->private_value >> 8) & 0xff) 21 #define SND_US16X08_KCMAX(x) (((x)->private_value >> 0) & 0xff)
|
/Linux-v4.19/drivers/staging/vc04_services/bcm2835-audio/ |
D | bcm2835-ctl.c | 33 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) { in snd_bcm2835_ctl_info() 38 } else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) { in snd_bcm2835_ctl_info() 43 } else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) { in snd_bcm2835_ctl_info() 85 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) in snd_bcm2835_ctl_get() 87 else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) in snd_bcm2835_ctl_get() 89 else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) in snd_bcm2835_ctl_get() 105 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) { in snd_bcm2835_ctl_put() 117 } else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) { in snd_bcm2835_ctl_put() 122 } else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) { in snd_bcm2835_ctl_put() 145 .private_value = PCM_PLAYBACK_VOLUME, [all …]
|
/Linux-v4.19/sound/spi/ |
D | at73c213.c | 408 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_get() 409 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_get() 410 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_get() 411 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_get() 431 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_put() 432 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_put() 433 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_put() 434 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_put() 460 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_stereo_info() 478 int left_reg = kcontrol->private_value & 0xff; in snd_at73c213_stereo_get() [all …]
|
/Linux-v4.19/sound/pci/oxygen/ |
D | oxygen_mixer.c | 444 u32 bit = ctl->private_value; in spdif_bit_switch_get() 455 u32 bit = ctl->private_value; in spdif_bit_switch_put() 486 u8 bit = ctl->private_value; in monitor_get() 487 int invert = ctl->private_value & (1 << 8); in monitor_get() 498 u8 bit = ctl->private_value; in monitor_put() 499 int invert = ctl->private_value & (1 << 8); in monitor_put() 520 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_switch_get() 521 unsigned int index = ctl->private_value & 0xff; in ac97_switch_get() 522 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_get() 523 int invert = ctl->private_value & (1 << 16); in ac97_switch_get() [all …]
|
D | xonar_wm87x6.c | 513 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_get() 514 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_get() 515 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_get() 527 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_put() 529 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_put() 530 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_put() 580 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_enum_info() 581 switch ((ctl->private_value >> 24) & 0x1f) { in wm8776_field_enum_info() 586 if (((ctl->private_value >> 20) & 0xf) == 0) { in wm8776_field_enum_info() 587 if (ctl->private_value & LC_CONTROL_LIMITER) in wm8776_field_enum_info() [all …]
|
/Linux-v4.19/sound/isa/sb/ |
D | sb_mixer.c | 62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_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() 91 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_put_single() 92 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_sbmixer_put_single() 93 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_put_single() 114 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_double() 127 int left_reg = kcontrol->private_value & 0xff; in snd_sbmixer_get_double() 128 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_sbmixer_get_double() [all …]
|
/Linux-v4.19/sound/pci/ice1712/ |
D | maya44.c | 174 unsigned int idx = kcontrol->private_value; in maya_vol_info() 190 unsigned int idx = kcontrol->private_value; in maya_vol_get() 205 unsigned int idx = kcontrol->private_value; in maya_vol_put() 251 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value); in maya_sw_get() 263 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value); in maya_sw_put() 273 mask = GET_SW_VAL_MASK(kcontrol->private_value); in maya_sw_put() 275 GET_SW_VAL_REG(kcontrol->private_value), in maya_sw_put() 314 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_get() 318 if (GET_GPIO_VAL_INV(kcontrol->private_value)) in maya_gpio_sw_get() 328 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_put() [all …]
|
D | aureon.c | 364 uinfo->count = kcontrol->private_value & AUREON_AC97_STEREO ? 2 : 1; in aureon_ac97_vol_info() 377 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get() 379 if (kcontrol->private_value & AUREON_AC97_STEREO) in aureon_ac97_vol_get() 394 ovol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_put() 396 if (kcontrol->private_value & AUREON_AC97_STEREO) in aureon_ac97_vol_put() 402 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_vol_put() 421 kcontrol->private_value & 0x7F) & 0x8000 ? 0 : 1; in aureon_ac97_mute_get() 435 ovol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_mute_put() 440 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_mute_put() 798 int voices = kcontrol->private_value >> 8; in wm_vol_info() [all …]
|
D | phase.c | 481 int voices = kcontrol->private_value >> 8; in wm_vol_info() 496 voices = kcontrol->private_value >> 8; in wm_vol_get() 497 ofs = kcontrol->private_value & 0xff; in wm_vol_get() 512 voices = kcontrol->private_value >> 8; in wm_vol_put() 513 ofs = kcontrol->private_value & 0xff; in wm_vol_put() 539 uinfo->count = kcontrol->private_value >> 8; in wm_mute_info() 552 voices = kcontrol->private_value >> 8; in wm_mute_get() 553 ofs = kcontrol->private_value & 0xFF; in wm_mute_get() 568 voices = kcontrol->private_value >> 8; in wm_mute_put() 569 ofs = kcontrol->private_value & 0xFF; in wm_mute_put() [all …]
|
/Linux-v4.19/sound/soc/ |
D | soc-ops.c | 43 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double() 63 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double() 97 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_put_enum_double() 185 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw() 220 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw_sx() 247 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_get_volsw() 307 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_put_volsw() 369 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_get_volsw_sx() 413 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_put_volsw_sx() 459 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw_range() [all …]
|
/Linux-v4.19/sound/isa/gus/ |
D | gus_mixer.c | 36 .private_value = shift | (invert << 8) } 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() 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() 79 .private_value = addr } 94 int addr = kcontrol->private_value & 0xff; in snd_ics_get_double() 110 int addr = kcontrol->private_value & 0xff; in snd_ics_put_double()
|
/Linux-v4.19/sound/isa/ |
D | opl3sa2.c | 345 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 352 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \ 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() 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() 378 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_opl3sa2_put_single() 379 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_put_single() [all …]
|
/Linux-v4.19/sound/isa/ad1816a/ |
D | ad1816a_lib.c | 776 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \ 781 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 785 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_info_single() 798 int reg = kcontrol->private_value & 0xff; in snd_ad1816a_get_single() 799 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_ad1816a_get_single() 800 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_get_single() 801 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_get_single() 815 int reg = kcontrol->private_value & 0xff; in snd_ad1816a_put_single() 816 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_ad1816a_put_single() 817 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_put_single() [all …]
|
/Linux-v4.19/sound/pci/mixart/ |
D | mixart_mixer.c | 347 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info() 361 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get() 379 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put() 839 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_get() 840 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_get() 861 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_put() 862 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_put() 920 if(kcontrol->private_value & MIXART_VOL_AES_MASK) /* AES playback */ in mixart_pcm_sw_get() 932 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_sw_put() 1129 temp.private_value = 0; /* playback */ in snd_mixart_create_mixer() [all …]
|
/Linux-v4.19/sound/core/ |
D | ctljack.c | 22 ucontrol->value.integer.value[0] = kcontrol->private_value; in jack_detect_kctl_get() 77 kctl->private_value = 0; in snd_kctl_jack_new() 84 if (kctl->private_value == status) in snd_kctl_jack_report() 86 kctl->private_value = status; in snd_kctl_jack_report()
|
/Linux-v4.19/sound/isa/es1688/ |
D | es1688_lib.c | 798 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) } 802 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_info_single() 815 int reg = kcontrol->private_value & 0xff; in snd_es1688_get_single() 816 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_es1688_get_single() 817 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_get_single() 818 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_get_single() 832 int reg = kcontrol->private_value & 0xff; in snd_es1688_put_single() 833 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_es1688_put_single() 834 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_put_single() 835 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_put_single() [all …]
|
/Linux-v4.19/sound/drivers/vx/ |
D | vx_mixer.c | 584 int audio = kcontrol->private_value & 0xff; in vx_audio_gain_get() 585 int capture = (kcontrol->private_value >> 8) & 1; in vx_audio_gain_get() 597 int audio = kcontrol->private_value & 0xff; in vx_audio_gain_put() 598 int capture = (kcontrol->private_value >> 8) & 1; in vx_audio_gain_put() 620 int audio = kcontrol->private_value & 0xff; in vx_audio_monitor_get() 632 int audio = kcontrol->private_value & 0xff; in vx_audio_monitor_put() 659 int audio = kcontrol->private_value & 0xff; in vx_audio_sw_get() 671 int audio = kcontrol->private_value & 0xff; in vx_audio_sw_put() 690 int audio = kcontrol->private_value & 0xff; in vx_monitor_sw_get() 702 int audio = kcontrol->private_value & 0xff; in vx_monitor_sw_put() [all …]
|
/Linux-v4.19/sound/drivers/opl4/ |
D | opl4_mixer.c | 36 u8 reg = kcontrol->private_value; in snd_opl4_ctl_get() 51 u8 reg = kcontrol->private_value; in snd_opl4_ctl_put() 70 .private_value = OPL4_REG_MIX_CONTROL_FM 78 .private_value = OPL4_REG_MIX_CONTROL_PCM
|
/Linux-v4.19/include/sound/ |
D | soc.h | 63 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) } 68 .private_value = (unsigned long)&(struct soc_mixer_control) \ 79 .private_value = SOC_SINGLE_VALUE(reg, shift, max, invert, 0) } 88 .private_value = (unsigned long)&(struct soc_mixer_control) \ 99 .private_value = (unsigned long)&(struct soc_mixer_control) \ 107 .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \ 115 .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \ 121 .private_value = SOC_DOUBLE_R_VALUE(reg_left, reg_right, xshift, \ 128 .private_value = SOC_DOUBLE_R_RANGE_VALUE(reg_left, reg_right, \ 137 .private_value = SOC_DOUBLE_VALUE(reg, shift_left, shift_right, \ [all …]
|