Home
last modified time | relevance | path

Searched refs:kcontrol (Results 1 – 9 of 9) sorted by relevance

/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-ctl.c30 static int snd_bcm2835_ctl_info(struct snd_kcontrol *kcontrol, in snd_bcm2835_ctl_info() argument
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()
52 static int snd_bcm2835_ctl_get(struct snd_kcontrol *kcontrol, in snd_bcm2835_ctl_get() argument
55 struct bcm2835_chip *chip = snd_kcontrol_chip(kcontrol); in snd_bcm2835_ctl_get()
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()
70 static int snd_bcm2835_ctl_put(struct snd_kcontrol *kcontrol, in snd_bcm2835_ctl_put() argument
[all …]
/drivers/staging/greybus/
Daudio_topology.c164 static int gbcodec_mixer_ctl_info(struct snd_kcontrol *kcontrol, in gbcodec_mixer_ctl_info() argument
172 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); in gbcodec_mixer_ctl_info()
175 dev_dbg(comp->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); in gbcodec_mixer_ctl_info()
176 data = (struct gbaudio_ctl_pvt *)kcontrol->private_value; in gbcodec_mixer_ctl_info()
200 module = find_gb_module(gbcodec, kcontrol->id.name); in gbcodec_mixer_ctl_info()
209 info->type, kcontrol->id.name); in gbcodec_mixer_ctl_info()
215 static int gbcodec_mixer_ctl_get(struct snd_kcontrol *kcontrol, in gbcodec_mixer_ctl_get() argument
223 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); in gbcodec_mixer_ctl_get()
227 dev_dbg(comp->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); in gbcodec_mixer_ctl_get()
228 module = find_gb_module(gb, kcontrol->id.name); in gbcodec_mixer_ctl_get()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-audio.c393 static int em28xx_vol_info(struct snd_kcontrol *kcontrol, in em28xx_vol_info() argument
396 struct em28xx *dev = snd_kcontrol_chip(kcontrol); in em28xx_vol_info()
409 static int em28xx_vol_put(struct snd_kcontrol *kcontrol, in em28xx_vol_put() argument
412 struct em28xx *dev = snd_kcontrol_chip(kcontrol); in em28xx_vol_put()
430 rc = em28xx_read_ac97(dev, kcontrol->private_value); in em28xx_vol_put()
436 rc = em28xx_write_ac97(dev, kcontrol->private_value, val); in em28xx_vol_put()
443 val, (int)kcontrol->private_value); in em28xx_vol_put()
450 static int em28xx_vol_get(struct snd_kcontrol *kcontrol, in em28xx_vol_get() argument
453 struct em28xx *dev = snd_kcontrol_chip(kcontrol); in em28xx_vol_get()
469 val = em28xx_read_ac97(dev, kcontrol->private_value); in em28xx_vol_get()
[all …]
/drivers/media/pci/cx88/
Dcx88-alsa.c618 static int snd_cx88_volume_info(struct snd_kcontrol *kcontrol, in snd_cx88_volume_info() argument
629 static int snd_cx88_volume_get(struct snd_kcontrol *kcontrol, in snd_cx88_volume_get() argument
632 struct cx88_audio_dev *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_volume_get()
644 static void snd_cx88_wm8775_volume_put(struct snd_kcontrol *kcontrol, in snd_cx88_wm8775_volume_put() argument
647 struct cx88_audio_dev *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_wm8775_volume_put()
666 static int snd_cx88_volume_put(struct snd_kcontrol *kcontrol, in snd_cx88_volume_put() argument
669 struct cx88_audio_dev *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_volume_put()
676 snd_cx88_wm8775_volume_put(kcontrol, value); in snd_cx88_volume_put()
716 static int snd_cx88_switch_get(struct snd_kcontrol *kcontrol, in snd_cx88_switch_get() argument
719 struct cx88_audio_dev *chip = snd_kcontrol_chip(kcontrol); in snd_cx88_switch_get()
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c378 static int snd_saa7134_capsrc_set(struct snd_kcontrol *kcontrol, in snd_saa7134_capsrc_set() argument
381 snd_card_saa7134_t *chip = snd_kcontrol_chip(kcontrol); in snd_saa7134_capsrc_set()
382 int change = 0, addr = kcontrol->private_value; in snd_saa7134_capsrc_set()
905 static int snd_saa7134_volume_info(struct snd_kcontrol * kcontrol, in snd_saa7134_volume_info() argument
915 static int snd_saa7134_volume_get(struct snd_kcontrol * kcontrol, in snd_saa7134_volume_get() argument
918 snd_card_saa7134_t *chip = snd_kcontrol_chip(kcontrol); in snd_saa7134_volume_get()
919 int addr = kcontrol->private_value; in snd_saa7134_volume_get()
926 static int snd_saa7134_volume_put(struct snd_kcontrol * kcontrol, in snd_saa7134_volume_put() argument
929 snd_card_saa7134_t *chip = snd_kcontrol_chip(kcontrol); in snd_saa7134_volume_put()
932 int change, addr = kcontrol->private_value; in snd_saa7134_volume_put()
[all …]
/drivers/usb/gadget/function/
Du_audio.c891 static int u_audio_pitch_info(struct snd_kcontrol *kcontrol, in u_audio_pitch_info() argument
894 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_pitch_info()
911 static int u_audio_pitch_get(struct snd_kcontrol *kcontrol, in u_audio_pitch_get() argument
914 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_pitch_get()
921 static int u_audio_pitch_put(struct snd_kcontrol *kcontrol, in u_audio_pitch_put() argument
924 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_pitch_put()
950 static int u_audio_mute_info(struct snd_kcontrol *kcontrol, in u_audio_mute_info() argument
962 static int u_audio_mute_get(struct snd_kcontrol *kcontrol, in u_audio_mute_get() argument
965 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_mute_get()
975 static int u_audio_mute_put(struct snd_kcontrol *kcontrol, in u_audio_mute_put() argument
[all …]
Df_midi2.c1486 static int f_midi2_operation_mode_info(struct snd_kcontrol *kcontrol, in f_midi2_operation_mode_info() argument
1496 static int f_midi2_operation_mode_get(struct snd_kcontrol *kcontrol, in f_midi2_operation_mode_get() argument
1499 struct f_midi2 *midi2 = snd_kcontrol_chip(kcontrol); in f_midi2_operation_mode_get()
/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c243 static int snd_solo_capture_volume_info(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_info() argument
255 static int snd_solo_capture_volume_get(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_get() argument
258 struct solo_dev *solo_dev = snd_kcontrol_chip(kcontrol); in snd_solo_capture_volume_get()
266 static int snd_solo_capture_volume_put(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_put() argument
269 struct solo_dev *solo_dev = snd_kcontrol_chip(kcontrol); in snd_solo_capture_volume_put()
/drivers/platform/x86/
Dthinkpad_acpi.c7389 static int volume_alsa_vol_info(struct snd_kcontrol *kcontrol, in volume_alsa_vol_info() argument
7399 static int volume_alsa_vol_get(struct snd_kcontrol *kcontrol, in volume_alsa_vol_get() argument
7413 static int volume_alsa_vol_put(struct snd_kcontrol *kcontrol, in volume_alsa_vol_put() argument
7423 static int volume_alsa_mute_get(struct snd_kcontrol *kcontrol, in volume_alsa_mute_get() argument
7438 static int volume_alsa_mute_put(struct snd_kcontrol *kcontrol, in volume_alsa_mute_put() argument