Home
last modified time | relevance | path

Searched refs:kcontrol (Results 1 – 8 of 8) 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.c165 static int gbcodec_mixer_ctl_info(struct snd_kcontrol *kcontrol, in gbcodec_mixer_ctl_info() argument
173 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); in gbcodec_mixer_ctl_info()
176 dev_dbg(comp->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); in gbcodec_mixer_ctl_info()
177 data = (struct gbaudio_ctl_pvt *)kcontrol->private_value; in gbcodec_mixer_ctl_info()
201 module = find_gb_module(gbcodec, kcontrol->id.name); in gbcodec_mixer_ctl_info()
210 info->type, kcontrol->id.name); in gbcodec_mixer_ctl_info()
216 static int gbcodec_mixer_ctl_get(struct snd_kcontrol *kcontrol, in gbcodec_mixer_ctl_get() argument
224 struct snd_soc_component *comp = snd_soc_kcontrol_component(kcontrol); in gbcodec_mixer_ctl_get()
228 dev_dbg(comp->dev, "Entered %s:%s\n", __func__, kcontrol->id.name); in gbcodec_mixer_ctl_get()
229 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.c866 static int u_audio_pitch_info(struct snd_kcontrol *kcontrol, in u_audio_pitch_info() argument
869 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_pitch_info()
886 static int u_audio_pitch_get(struct snd_kcontrol *kcontrol, in u_audio_pitch_get() argument
889 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_pitch_get()
896 static int u_audio_pitch_put(struct snd_kcontrol *kcontrol, in u_audio_pitch_put() argument
899 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_pitch_put()
925 static int u_audio_mute_info(struct snd_kcontrol *kcontrol, in u_audio_mute_info() argument
937 static int u_audio_mute_get(struct snd_kcontrol *kcontrol, in u_audio_mute_get() argument
940 struct uac_rtd_params *prm = snd_kcontrol_chip(kcontrol); in u_audio_mute_get()
950 static int u_audio_mute_put(struct snd_kcontrol *kcontrol, in u_audio_mute_put() argument
[all …]
/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c270 static int snd_solo_capture_volume_info(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_info() argument
282 static int snd_solo_capture_volume_get(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_get() argument
285 struct solo_dev *solo_dev = snd_kcontrol_chip(kcontrol); in snd_solo_capture_volume_get()
293 static int snd_solo_capture_volume_put(struct snd_kcontrol *kcontrol, in snd_solo_capture_volume_put() argument
296 struct solo_dev *solo_dev = snd_kcontrol_chip(kcontrol); in snd_solo_capture_volume_put()
/drivers/platform/x86/
Dthinkpad_acpi.c7589 static int volume_alsa_vol_info(struct snd_kcontrol *kcontrol, in volume_alsa_vol_info() argument
7599 static int volume_alsa_vol_get(struct snd_kcontrol *kcontrol, in volume_alsa_vol_get() argument
7613 static int volume_alsa_vol_put(struct snd_kcontrol *kcontrol, in volume_alsa_vol_put() argument
7623 static int volume_alsa_mute_get(struct snd_kcontrol *kcontrol, in volume_alsa_mute_get() argument
7638 static int volume_alsa_mute_put(struct snd_kcontrol *kcontrol, in volume_alsa_mute_put() argument