Home
last modified time | relevance | path

Searched refs:ucontrol (Results 1 – 5 of 5) sorted by relevance

/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-ctl.c53 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_ctl_get() argument
60 ucontrol->value.integer.value[0] = chip->volume; in snd_bcm2835_ctl_get()
62 ucontrol->value.integer.value[0] = chip->mute; in snd_bcm2835_ctl_get()
64 ucontrol->value.integer.value[0] = chip->dest; in snd_bcm2835_ctl_get()
71 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_ctl_put() argument
86 val = ucontrol->value.integer.value[0]; in snd_bcm2835_ctl_put()
140 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_spdif_default_get() argument
148 ucontrol->value.iec958.status[i] = in snd_bcm2835_spdif_default_get()
156 struct snd_ctl_elem_value *ucontrol) in snd_bcm2835_spdif_default_put() argument
165 val |= (unsigned int)ucontrol->value.iec958.status[i] << (i * 8); in snd_bcm2835_spdif_default_put()
[all …]
/drivers/staging/greybus/
Daudio_topology.c217 struct snd_ctl_elem_value *ucontrol) in gbcodec_mixer_ctl_get() argument
256 ucontrol->value.integer.value[0] = in gbcodec_mixer_ctl_get()
259 ucontrol->value.integer.value[1] = in gbcodec_mixer_ctl_get()
263 ucontrol->value.enumerated.item[0] = in gbcodec_mixer_ctl_get()
266 ucontrol->value.enumerated.item[1] = in gbcodec_mixer_ctl_get()
279 struct snd_ctl_elem_value *ucontrol) in gbcodec_mixer_ctl_put() argument
304 cpu_to_le32(ucontrol->value.integer.value[0]); in gbcodec_mixer_ctl_put()
307 cpu_to_le32(ucontrol->value.integer.value[1]); in gbcodec_mixer_ctl_put()
311 cpu_to_le32(ucontrol->value.enumerated.item[0]); in gbcodec_mixer_ctl_put()
314 cpu_to_le32(ucontrol->value.enumerated.item[1]); in gbcodec_mixer_ctl_put()
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c916 struct snd_ctl_elem_value * ucontrol) in snd_saa7134_volume_get() argument
921 ucontrol->value.integer.value[0] = chip->mixer_volume[addr][0]; in snd_saa7134_volume_get()
922 ucontrol->value.integer.value[1] = chip->mixer_volume[addr][1]; in snd_saa7134_volume_get()
927 struct snd_ctl_elem_value * ucontrol) in snd_saa7134_volume_put() argument
935 left = ucontrol->value.integer.value[0]; in snd_saa7134_volume_put()
940 right = ucontrol->value.integer.value[1]; in snd_saa7134_volume_put()
1013 struct snd_ctl_elem_value * ucontrol) in snd_saa7134_capsrc_get() argument
1020 ucontrol->value.integer.value[0] = chip->capture_source[0]; in snd_saa7134_capsrc_get()
1021 ucontrol->value.integer.value[1] = chip->capture_source[1]; in snd_saa7134_capsrc_get()
1023 ucontrol->value.integer.value[0] = 0; in snd_saa7134_capsrc_get()
[all …]
/drivers/usb/gadget/function/
Du_audio.c752 struct snd_ctl_elem_value *ucontrol) in u_audio_pitch_get() argument
756 ucontrol->value.integer.value[0] = prm->pitch; in u_audio_pitch_get()
762 struct snd_ctl_elem_value *ucontrol) in u_audio_pitch_put() argument
775 val = ucontrol->value.integer.value[0]; in u_audio_pitch_put()
803 struct snd_ctl_elem_value *ucontrol) in u_audio_mute_get() argument
809 ucontrol->value.integer.value[0] = !prm->mute; in u_audio_mute_get()
816 struct snd_ctl_elem_value *ucontrol) in u_audio_mute_put() argument
825 val = !ucontrol->value.integer.value[0]; in u_audio_mute_put()
878 struct snd_ctl_elem_value *ucontrol) in u_audio_volume_get() argument
884 ucontrol->value.integer.value[0] = in u_audio_volume_get()
[all …]
/drivers/platform/x86/
Dthinkpad_acpi.c7553 struct snd_ctl_elem_value *ucontrol) in volume_alsa_vol_get() argument
7562 ucontrol->value.integer.value[0] = s & TP_EC_AUDIO_LVL_MSK; in volume_alsa_vol_get()
7567 struct snd_ctl_elem_value *ucontrol) in volume_alsa_vol_put() argument
7570 ucontrol->value.integer.value[0]); in volume_alsa_vol_put()
7571 return volume_alsa_set_volume(ucontrol->value.integer.value[0]); in volume_alsa_vol_put()
7577 struct snd_ctl_elem_value *ucontrol) in volume_alsa_mute_get() argument
7586 ucontrol->value.integer.value[0] = in volume_alsa_mute_get()
7592 struct snd_ctl_elem_value *ucontrol) in volume_alsa_mute_put() argument
7595 ucontrol->value.integer.value[0] ? in volume_alsa_mute_put()
7597 return volume_alsa_set_mute(!ucontrol->value.integer.value[0]); in volume_alsa_mute_put()