Home
last modified time | relevance | path

Searched refs:private_value (Results 1 – 25 of 258) sorted by relevance

1234567891011

/linux-6.1.9/sound/i2c/other/
Dak4xxx-adda.c355 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_info()
368 int chip = AK_GET_CHIP(kcontrol->private_value); in snd_akm4xxx_volume_get()
369 int addr = AK_GET_ADDR(kcontrol->private_value); in snd_akm4xxx_volume_get()
379 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in put_ak_reg()
380 int chip = AK_GET_CHIP(kcontrol->private_value); in put_ak_reg()
386 if (AK_GET_VOL_CVT(kcontrol->private_value) && nval < 128) in put_ak_reg()
388 if (AK_GET_IPGA(kcontrol->private_value) && nval >= 128) in put_ak_reg()
390 if (AK_GET_INVERT(kcontrol->private_value)) in put_ak_reg()
392 if (AK_GET_NEEDSMSB(kcontrol->private_value)) in put_ak_reg()
403 unsigned int mask = AK_GET_MASK(kcontrol->private_value); in snd_akm4xxx_volume_put()
[all …]
/linux-6.1.9/sound/pci/
Dak4531_codec.c50 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) }
57 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \
62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single()
74 int reg = kcontrol->private_value & 0xff; in snd_ak4531_get_single()
75 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_get_single()
76 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_get_single()
77 int invert = (kcontrol->private_value >> 22) & 1; in snd_ak4531_get_single()
93 int reg = kcontrol->private_value & 0xff; in snd_ak4531_put_single()
94 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_ak4531_put_single()
95 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_put_single()
[all …]
/linux-6.1.9/sound/ppc/
Dburgundy.c175 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume()
176 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_get_volume()
186 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume()
187 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_burgundy_put_volume()
202 .private_value = ((ADDR2BASE(addr) & 0xff) | ((shift) << 8)) }
251 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_get_volume_2b()
252 int off = kcontrol->private_value & 0x300; in snd_pmac_burgundy_get_volume_2b()
262 unsigned int addr = BASE2ADDR(kcontrol->private_value & 0xff); in snd_pmac_burgundy_put_volume_2b()
263 int off = kcontrol->private_value & 0x300; in snd_pmac_burgundy_put_volume_2b()
278 .private_value = ((ADDR2BASE(addr) & 0xff) | ((off) << 8)) }
[all …]
Dawacs.c136 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_get_volume()
137 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_volume()
138 int inverted = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_get_volume()
159 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_put_volume()
160 int lshift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_put_volume()
161 int inverted = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_put_volume()
193 .private_value = (xreg) | ((xshift) << 8) | ((xinverted) << 16) }
202 int reg = kcontrol->private_value & 0xff; in snd_pmac_awacs_get_switch()
203 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_pmac_awacs_get_switch()
204 int invert = (kcontrol->private_value >> 16) & 1; in snd_pmac_awacs_get_switch()
[all …]
/linux-6.1.9/sound/isa/cs423x/
Dcs4236_lib.c382 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
389 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
394 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_info_single()
407 int reg = kcontrol->private_value & 0xff; in snd_cs4236_get_single()
408 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_get_single()
409 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_get_single()
410 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_cs4236_get_single()
424 int reg = kcontrol->private_value & 0xff; in snd_cs4236_put_single()
425 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_cs4236_put_single()
426 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_cs4236_put_single()
[all …]
/linux-6.1.9/sound/usb/
Dmixer_quirks.c295 ucontrol->value.integer.value[0] = kcontrol->private_value >> 8; in snd_audigy2nx_led_get()
334 int index = kcontrol->private_value & 0xff; in snd_audigy2nx_led_put()
336 int old_value = kcontrol->private_value >> 8; in snd_audigy2nx_led_put()
343 kcontrol->private_value = (value << 8) | index; in snd_audigy2nx_led_put()
350 int priv_value = list->kctl->private_value; in snd_audigy2nx_led_resume()
392 knew.private_value = (1 << 8) | i; /* LED on as default */ in snd_audigy2nx_controls_create()
464 ucontrol->value.enumerated.item[0] = kcontrol->private_value; in snd_emu0204_ch_switch_get()
500 if (value == kcontrol->private_value) in snd_emu0204_ch_switch_put()
503 kcontrol->private_value = value; in snd_emu0204_ch_switch_put()
511 list->kctl->private_value); in snd_emu0204_ch_switch_resume()
[all …]
/linux-6.1.9/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-ctl.c33 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()
59 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) in snd_bcm2835_ctl_get()
61 else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) in snd_bcm2835_ctl_get()
63 else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) in snd_bcm2835_ctl_get()
77 if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) in snd_bcm2835_ctl_put()
79 else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) in snd_bcm2835_ctl_put()
81 else if (kcontrol->private_value == PCM_PLAYBACK_DEVICE) in snd_bcm2835_ctl_put()
105 .private_value = PCM_PLAYBACK_VOLUME,
[all …]
/linux-6.1.9/sound/spi/
Dat73c213.c399 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_get()
400 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_get()
401 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_get()
402 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_get()
422 int reg = kcontrol->private_value & 0xff; in snd_at73c213_mono_put()
423 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_at73c213_mono_put()
424 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_at73c213_mono_put()
425 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_mono_put()
451 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_at73c213_stereo_info()
469 int left_reg = kcontrol->private_value & 0xff; in snd_at73c213_stereo_get()
[all …]
/linux-6.1.9/sound/soc/sof/
Dcontrol.c21 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_get()
36 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_put()
50 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_volume_info()
73 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_switch_get()
88 struct soc_mixer_control *sm = (struct soc_mixer_control *)kcontrol->private_value; in snd_sof_switch_put()
103 struct soc_enum *se = (struct soc_enum *)kcontrol->private_value; in snd_sof_enum_get()
118 struct soc_enum *se = (struct soc_enum *)kcontrol->private_value; in snd_sof_enum_put()
133 struct soc_bytes_ext *be = (struct soc_bytes_ext *)kcontrol->private_value; in snd_sof_bytes_get()
148 struct soc_bytes_ext *be = (struct soc_bytes_ext *)kcontrol->private_value; in snd_sof_bytes_put()
164 struct soc_bytes_ext *be = (struct soc_bytes_ext *)kcontrol->private_value; in snd_sof_bytes_ext_put()
[all …]
/linux-6.1.9/sound/pci/oxygen/
Doxygen_mixer.c432 u32 bit = ctl->private_value; in spdif_bit_switch_get()
443 u32 bit = ctl->private_value; in spdif_bit_switch_put()
474 u8 bit = ctl->private_value; in monitor_get()
475 int invert = ctl->private_value & (1 << 8); in monitor_get()
486 u8 bit = ctl->private_value; in monitor_put()
487 int invert = ctl->private_value & (1 << 8); in monitor_put()
508 unsigned int codec = (ctl->private_value >> 24) & 1; in ac97_switch_get()
509 unsigned int index = ctl->private_value & 0xff; in ac97_switch_get()
510 unsigned int bitnr = (ctl->private_value >> 8) & 0xff; in ac97_switch_get()
511 int invert = ctl->private_value & (1 << 16); in ac97_switch_get()
[all …]
Dxonar_wm87x6.c504 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_get()
505 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_get()
506 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_get()
518 u16 bit = ctl->private_value & 0xffff; in wm8776_bit_switch_put()
520 unsigned int reg_index = (ctl->private_value >> 16) & 0xff; in wm8776_bit_switch_put()
521 bool invert = (ctl->private_value >> 24) & 1; in wm8776_bit_switch_put()
571 max = (ctl->private_value >> 12) & 0xf; in wm8776_field_enum_info()
572 switch ((ctl->private_value >> 24) & 0x1f) { in wm8776_field_enum_info()
577 if (((ctl->private_value >> 20) & 0xf) == 0) { in wm8776_field_enum_info()
578 if (ctl->private_value & LC_CONTROL_LIMITER) in wm8776_field_enum_info()
[all …]
/linux-6.1.9/sound/isa/sb/
Dsb_mixer.c47 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_single()
60 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_get_single()
61 int shift = (kcontrol->private_value >> 16) & 0xff; in snd_sbmixer_get_single()
62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_get_single()
76 int reg = kcontrol->private_value & 0xff; in snd_sbmixer_put_single()
77 int shift = (kcontrol->private_value >> 16) & 0x07; in snd_sbmixer_put_single()
78 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_put_single()
99 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_sbmixer_info_double()
112 int left_reg = kcontrol->private_value & 0xff; in snd_sbmixer_get_double()
113 int right_reg = (kcontrol->private_value >> 8) & 0xff; in snd_sbmixer_get_double()
[all …]
/linux-6.1.9/sound/pci/ice1712/
Dmaya44.c160 unsigned int idx = kcontrol->private_value; in maya_vol_info()
176 unsigned int idx = kcontrol->private_value; in maya_vol_get()
191 unsigned int idx = kcontrol->private_value; in maya_vol_put()
237 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value); in maya_sw_get()
249 unsigned int idx = GET_SW_VAL_IDX(kcontrol->private_value); in maya_sw_put()
259 mask = GET_SW_VAL_MASK(kcontrol->private_value); in maya_sw_put()
261 GET_SW_VAL_REG(kcontrol->private_value), in maya_sw_put()
300 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_get()
304 if (GET_GPIO_VAL_INV(kcontrol->private_value)) in maya_gpio_sw_get()
314 unsigned int shift = GET_GPIO_VAL_SHIFT(kcontrol->private_value); in maya_gpio_sw_put()
[all …]
Daureon.c350 uinfo->count = kcontrol->private_value & AUREON_AC97_STEREO ? 2 : 1; in aureon_ac97_vol_info()
363 vol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_get()
365 if (kcontrol->private_value & AUREON_AC97_STEREO) in aureon_ac97_vol_get()
380 ovol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_vol_put()
382 if (kcontrol->private_value & AUREON_AC97_STEREO) in aureon_ac97_vol_put()
388 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_vol_put()
407 kcontrol->private_value & 0x7F) & 0x8000 ? 0 : 1; in aureon_ac97_mute_get()
421 ovol = aureon_ac97_read(ice, kcontrol->private_value & 0x7F); in aureon_ac97_mute_put()
426 aureon_ac97_write(ice, kcontrol->private_value & 0x7F, nvol); in aureon_ac97_mute_put()
784 int voices = kcontrol->private_value >> 8; in wm_vol_info()
[all …]
Dphase.c467 int voices = kcontrol->private_value >> 8; in wm_vol_info()
482 voices = kcontrol->private_value >> 8; in wm_vol_get()
483 ofs = kcontrol->private_value & 0xff; in wm_vol_get()
498 voices = kcontrol->private_value >> 8; in wm_vol_put()
499 ofs = kcontrol->private_value & 0xff; in wm_vol_put()
525 uinfo->count = kcontrol->private_value >> 8; in wm_mute_info()
538 voices = kcontrol->private_value >> 8; in wm_mute_get()
539 ofs = kcontrol->private_value & 0xFF; in wm_mute_get()
554 voices = kcontrol->private_value >> 8; in wm_mute_put()
555 ofs = kcontrol->private_value & 0xFF; in wm_mute_put()
[all …]
/linux-6.1.9/sound/isa/
Dopl3sa2.c329 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
336 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
343 int reg = kcontrol->private_value & 0xff; in snd_opl3sa2_get_single()
344 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_opl3sa2_get_single()
345 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_opl3sa2_get_single()
346 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_get_single()
360 int reg = kcontrol->private_value & 0xff; in snd_opl3sa2_put_single()
361 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_opl3sa2_put_single()
362 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_opl3sa2_put_single()
363 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_opl3sa2_put_single()
[all …]
/linux-6.1.9/sound/isa/gus/
Dgus_mixer.c21 .private_value = shift | (invert << 8) }
28 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single()
29 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single()
41 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single()
42 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single()
64 .private_value = addr }
79 int addr = kcontrol->private_value & 0xff; in snd_ics_get_double()
95 int addr = kcontrol->private_value & 0xff; in snd_ics_put_double()
/linux-6.1.9/sound/soc/
Dsoc-ops.c42 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_info_enum_double()
62 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_get_enum_double()
93 struct soc_enum *e = (struct soc_enum *)kcontrol->private_value; in snd_soc_put_enum_double()
178 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw()
222 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw_sx()
258 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_get_volsw()
318 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_put_volsw()
400 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_get_volsw_sx()
437 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_put_volsw_sx()
504 (struct soc_mixer_control *)kcontrol->private_value; in snd_soc_info_volsw_range()
[all …]
/linux-6.1.9/sound/isa/es1688/
Des1688_lib.c758 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
762 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_info_single()
775 int reg = kcontrol->private_value & 0xff; in snd_es1688_get_single()
776 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_es1688_get_single()
777 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_get_single()
778 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_get_single()
792 int reg = kcontrol->private_value & 0xff; in snd_es1688_put_single()
793 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_es1688_put_single()
794 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_es1688_put_single()
795 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_es1688_put_single()
[all …]
/linux-6.1.9/sound/isa/ad1816a/
Dad1816a_lib.c717 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24), \
722 .private_value = reg | (shift << 8) | (mask << 16) | (invert << 24) }
726 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_info_single()
739 int reg = kcontrol->private_value & 0xff; in snd_ad1816a_get_single()
740 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_ad1816a_get_single()
741 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_get_single()
742 int invert = (kcontrol->private_value >> 24) & 0xff; in snd_ad1816a_get_single()
756 int reg = kcontrol->private_value & 0xff; in snd_ad1816a_put_single()
757 int shift = (kcontrol->private_value >> 8) & 0xff; in snd_ad1816a_put_single()
758 int mask = (kcontrol->private_value >> 16) & 0xff; in snd_ad1816a_put_single()
[all …]
/linux-6.1.9/sound/pci/mixart/
Dmixart_mixer.c334 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_info()
348 if(kcontrol->private_value == 0) { /* playback */ in mixart_analog_vol_get()
366 is_capture = (kcontrol->private_value != 0); in mixart_analog_vol_put()
826 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_get()
827 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_get()
848 int is_capture = kcontrol->private_value & MIXART_VOL_REC_MASK; in mixart_pcm_vol_put()
849 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_vol_put()
907 if(kcontrol->private_value & MIXART_VOL_AES_MASK) /* AES playback */ in mixart_pcm_sw_get()
919 int is_aes = kcontrol->private_value & MIXART_VOL_AES_MASK; in mixart_pcm_sw_put()
1116 temp.private_value = 0; /* playback */ in snd_mixart_create_mixer()
[all …]
/linux-6.1.9/include/sound/
Dsoc.h63 .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 …]
/linux-6.1.9/sound/core/
Dctljack.c18 ucontrol->value.integer.value[0] = kcontrol->private_value; in jack_detect_kctl_get()
73 kctl->private_value = 0; in snd_kctl_jack_new()
80 if (kctl->private_value == status) in snd_kctl_jack_report()
82 kctl->private_value = status; in snd_kctl_jack_report()
/linux-6.1.9/sound/drivers/vx/
Dvx_mixer.c571 int audio = kcontrol->private_value & 0xff; in vx_audio_gain_get()
572 int capture = (kcontrol->private_value >> 8) & 1; in vx_audio_gain_get()
584 int audio = kcontrol->private_value & 0xff; in vx_audio_gain_put()
585 int capture = (kcontrol->private_value >> 8) & 1; in vx_audio_gain_put()
607 int audio = kcontrol->private_value & 0xff; in vx_audio_monitor_get()
619 int audio = kcontrol->private_value & 0xff; in vx_audio_monitor_put()
646 int audio = kcontrol->private_value & 0xff; in vx_audio_sw_get()
658 int audio = kcontrol->private_value & 0xff; in vx_audio_sw_put()
677 int audio = kcontrol->private_value & 0xff; in vx_monitor_sw_get()
689 int audio = kcontrol->private_value & 0xff; in vx_monitor_sw_put()
[all …]
/linux-6.1.9/sound/drivers/opl4/
Dopl4_mixer.c23 u8 reg = kcontrol->private_value; in snd_opl4_ctl_get()
38 u8 reg = kcontrol->private_value; in snd_opl4_ctl_put()
57 .private_value = OPL4_REG_MIX_CONTROL_FM
65 .private_value = OPL4_REG_MIX_CONTROL_PCM

1234567891011