Home
last modified time | relevance | path

Searched refs:uctl (Results 1 - 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/sound/core/oss/
H A Dmixer_oss.c536 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_volume1_vol() local
548 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
549 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
553 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
558 *left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[0]); in snd_mixer_oss_get_volume1_vol()
560 *right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[1]); in snd_mixer_oss_get_volume1_vol()
563 kfree(uctl); in snd_mixer_oss_get_volume1_vol()
574 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_volume1_sw() local
586 uctl in snd_mixer_oss_get_volume1_sw()
638 struct snd_ctl_elem_value *uctl; snd_mixer_oss_put_volume1_vol() local
679 struct snd_ctl_elem_value *uctl; snd_mixer_oss_put_volume1_sw() local
820 struct snd_ctl_elem_value *uctl; snd_mixer_oss_get_recsrc2() local
870 struct snd_ctl_elem_value *uctl; snd_mixer_oss_put_recsrc2() local
[all...]
/kernel/linux/linux-6.6/sound/core/oss/
H A Dmixer_oss.c536 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_volume1_vol() local
549 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
550 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
554 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
559 *left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[0]); in snd_mixer_oss_get_volume1_vol()
561 *right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[1]); in snd_mixer_oss_get_volume1_vol()
564 kfree(uctl); in snd_mixer_oss_get_volume1_vol()
575 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_volume1_sw() local
588 uctl in snd_mixer_oss_get_volume1_sw()
640 struct snd_ctl_elem_value *uctl; snd_mixer_oss_put_volume1_vol() local
683 struct snd_ctl_elem_value *uctl; snd_mixer_oss_put_volume1_sw() local
826 struct snd_ctl_elem_value *uctl; snd_mixer_oss_get_recsrc2() local
878 struct snd_ctl_elem_value *uctl; snd_mixer_oss_put_recsrc2() local
[all...]
/kernel/linux/linux-5.10/sound/drivers/
H A Dmts64.c431 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_switch_get()
436 uctl->value.integer.value[0] = mts->smpte_switch; in snd_mts64_ctl_smpte_switch_get()
445 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_switch_put()
449 int val = !!uctl->value.integer.value[0]; in snd_mts64_ctl_smpte_switch_put()
513 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_time_get()
519 uctl->value.integer.value[0] = mts->time[idx]; in snd_mts64_ctl_smpte_time_get()
526 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_time_put()
530 unsigned int time = uctl->value.integer.value[0] % 60; in snd_mts64_ctl_smpte_time_put()
599 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_fps_get()
604 uctl in snd_mts64_ctl_smpte_fps_get()
430 snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_switch_get() argument
444 snd_mts64_ctl_smpte_switch_put(struct snd_kcontrol* kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_switch_put() argument
512 snd_mts64_ctl_smpte_time_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_time_get() argument
525 snd_mts64_ctl_smpte_time_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_time_put() argument
598 snd_mts64_ctl_smpte_fps_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_fps_get() argument
610 snd_mts64_ctl_smpte_fps_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_fps_put() argument
[all...]
/kernel/linux/linux-6.6/sound/drivers/
H A Dmts64.c430 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_switch_get()
435 uctl->value.integer.value[0] = mts->smpte_switch; in snd_mts64_ctl_smpte_switch_get()
444 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_switch_put()
448 int val = !!uctl->value.integer.value[0]; in snd_mts64_ctl_smpte_switch_put()
512 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_time_get()
518 uctl->value.integer.value[0] = mts->time[idx]; in snd_mts64_ctl_smpte_time_get()
525 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_time_put()
529 unsigned int time = uctl->value.integer.value[0] % 60; in snd_mts64_ctl_smpte_time_put()
598 struct snd_ctl_elem_value *uctl) in snd_mts64_ctl_smpte_fps_get()
603 uctl in snd_mts64_ctl_smpte_fps_get()
429 snd_mts64_ctl_smpte_switch_get(struct snd_kcontrol* kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_switch_get() argument
443 snd_mts64_ctl_smpte_switch_put(struct snd_kcontrol* kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_switch_put() argument
511 snd_mts64_ctl_smpte_time_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_time_get() argument
524 snd_mts64_ctl_smpte_time_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_time_put() argument
597 snd_mts64_ctl_smpte_fps_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_fps_get() argument
609 snd_mts64_ctl_smpte_fps_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) snd_mts64_ctl_smpte_fps_put() argument
[all...]
/kernel/linux/linux-5.10/sound/core/
H A Dvmaster.c59 struct snd_ctl_elem_value *uctl; in follower_update() local
62 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in follower_update()
63 if (!uctl) in follower_update()
65 uctl->id = follower->follower.id; in follower_update()
66 err = follower->follower.get(&follower->follower, uctl); in follower_update()
70 follower->vals[ch] = uctl->value.integer.value[ch]; in follower_update()
72 kfree(uctl); in follower_update()
/kernel/linux/linux-6.6/sound/core/
H A Dvmaster.c59 struct snd_ctl_elem_value *uctl; in follower_update() local
62 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in follower_update()
63 if (!uctl) in follower_update()
65 uctl->id = follower->follower.id; in follower_update()
66 err = follower->follower.get(&follower->follower, uctl); in follower_update()
70 follower->vals[ch] = uctl->value.integer.value[ch]; in follower_update()
72 kfree(uctl); in follower_update()
/kernel/linux/linux-5.10/sound/soc/intel/catpt/
H A Dpcm.c960 struct snd_ctl_elem_value *uctl) in catpt_offload1_volume_get()
962 return catpt_stream_volume_get(kctl, uctl, CATPT_PIN_ID_OFFLOAD1); in catpt_offload1_volume_get()
966 struct snd_ctl_elem_value *uctl) in catpt_offload1_volume_put()
968 return catpt_stream_volume_put(kctl, uctl, CATPT_PIN_ID_OFFLOAD1); in catpt_offload1_volume_put()
972 struct snd_ctl_elem_value *uctl) in catpt_offload2_volume_get()
974 return catpt_stream_volume_get(kctl, uctl, CATPT_PIN_ID_OFFLOAD2); in catpt_offload2_volume_get()
978 struct snd_ctl_elem_value *uctl) in catpt_offload2_volume_put()
980 return catpt_stream_volume_put(kctl, uctl, CATPT_PIN_ID_OFFLOAD2); in catpt_offload2_volume_put()
984 struct snd_ctl_elem_value *uctl) in catpt_capture_volume_get()
986 return catpt_stream_volume_get(kctl, uctl, CATPT_PIN_ID_CAPTURE in catpt_capture_volume_get()
959 catpt_offload1_volume_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload1_volume_get() argument
965 catpt_offload1_volume_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload1_volume_put() argument
971 catpt_offload2_volume_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload2_volume_get() argument
977 catpt_offload2_volume_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload2_volume_put() argument
983 catpt_capture_volume_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_capture_volume_get() argument
989 catpt_capture_volume_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_capture_volume_put() argument
[all...]
/kernel/linux/linux-6.6/sound/soc/intel/catpt/
H A Dpcm.c973 struct snd_ctl_elem_value *uctl) in catpt_offload1_volume_get()
975 return catpt_stream_volume_get(kctl, uctl, CATPT_PIN_ID_OFFLOAD1); in catpt_offload1_volume_get()
979 struct snd_ctl_elem_value *uctl) in catpt_offload1_volume_put()
981 return catpt_stream_volume_put(kctl, uctl, CATPT_PIN_ID_OFFLOAD1); in catpt_offload1_volume_put()
985 struct snd_ctl_elem_value *uctl) in catpt_offload2_volume_get()
987 return catpt_stream_volume_get(kctl, uctl, CATPT_PIN_ID_OFFLOAD2); in catpt_offload2_volume_get()
991 struct snd_ctl_elem_value *uctl) in catpt_offload2_volume_put()
993 return catpt_stream_volume_put(kctl, uctl, CATPT_PIN_ID_OFFLOAD2); in catpt_offload2_volume_put()
997 struct snd_ctl_elem_value *uctl) in catpt_capture_volume_get()
999 return catpt_stream_volume_get(kctl, uctl, CATPT_PIN_ID_CAPTURE in catpt_capture_volume_get()
972 catpt_offload1_volume_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload1_volume_get() argument
978 catpt_offload1_volume_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload1_volume_put() argument
984 catpt_offload2_volume_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload2_volume_get() argument
990 catpt_offload2_volume_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_offload2_volume_put() argument
996 catpt_capture_volume_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_capture_volume_get() argument
1002 catpt_capture_volume_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) catpt_capture_volume_put() argument
[all...]
/kernel/linux/linux-5.10/sound/soc/tegra/
H A Dtegra210_ahub.c18 struct snd_ctl_elem_value *uctl) in tegra_ahub_get_value_enum()
46 uctl->value.enumerated.item[0] = i; in tegra_ahub_get_value_enum()
55 struct snd_ctl_elem_value *uctl) in tegra_ahub_put_value_enum()
62 unsigned int *item = uctl->value.enumerated.item; in tegra_ahub_put_value_enum()
17 tegra_ahub_get_value_enum(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) tegra_ahub_get_value_enum() argument
54 tegra_ahub_put_value_enum(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) tegra_ahub_put_value_enum() argument
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/
H A Docteon-platform.c448 { .compatible = "cavium,octeon-6335-uctl", },
453 { .compatible = "cavium,octeon-7130-usb-uctl", },
1085 "uctl", NULL); in octeon_prune_device_tree()
1087 int uctl = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree() local
1089 if (uctl >= 0 && (!OCTEON_IS_MODEL(OCTEON_CN6XXX) || in octeon_prune_device_tree()
1091 pr_debug("Deleting uctl\n"); in octeon_prune_device_tree()
1092 fdt_nop_node(initial_boot_params, uctl); in octeon_prune_device_tree()
1093 fdt_nop_property(initial_boot_params, aliases, "uctl"); in octeon_prune_device_tree()
1097 fdt_nop_property(initial_boot_params, uctl, "refclk-type"); in octeon_prune_device_tree()
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/
H A Docteon-platform.c450 { .compatible = "cavium,octeon-6335-uctl", },
1086 "uctl", NULL); in octeon_prune_device_tree()
1088 int uctl = fdt_path_offset(initial_boot_params, alias_prop); in octeon_prune_device_tree() local
1090 if (uctl >= 0 && (!OCTEON_IS_MODEL(OCTEON_CN6XXX) || in octeon_prune_device_tree()
1092 pr_debug("Deleting uctl\n"); in octeon_prune_device_tree()
1093 fdt_nop_node(initial_boot_params, uctl); in octeon_prune_device_tree()
1094 fdt_nop_property(initial_boot_params, aliases, "uctl"); in octeon_prune_device_tree()
1098 fdt_nop_property(initial_boot_params, uctl, "refclk-type"); in octeon_prune_device_tree()
/kernel/linux/linux-5.10/sound/isa/
H A Dsscape.c603 struct snd_ctl_elem_value *uctl) in sscape_midi_get()
611 uctl->value.integer.value[0] = s->midi_vol; in sscape_midi_get()
617 struct snd_ctl_elem_value *uctl) in sscape_midi_put()
628 new_val = uctl->value.integer.value[0] & 127; in sscape_midi_put()
602 sscape_midi_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) sscape_midi_get() argument
616 sscape_midi_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) sscape_midi_put() argument
/kernel/linux/linux-6.6/sound/isa/
H A Dsscape.c592 struct snd_ctl_elem_value *uctl) in sscape_midi_get()
600 uctl->value.integer.value[0] = s->midi_vol; in sscape_midi_get()
606 struct snd_ctl_elem_value *uctl) in sscape_midi_put()
617 new_val = uctl->value.integer.value[0] & 127; in sscape_midi_put()
591 sscape_midi_get(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) sscape_midi_get() argument
605 sscape_midi_put(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) sscape_midi_put() argument
/kernel/linux/linux-5.10/sound/soc/stm/
H A Dstm32_sai_sub.c272 struct snd_ctl_elem_value *uctl) in snd_pcm_iec958_get()
277 memcpy(uctl->value.iec958.status, sai->iec958.status, 4); in snd_pcm_iec958_get()
284 struct snd_ctl_elem_value *uctl) in snd_pcm_iec958_put()
289 memcpy(sai->iec958.status, uctl->value.iec958.status, 4); in snd_pcm_iec958_put()
271 snd_pcm_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uctl) snd_pcm_iec958_get() argument
283 snd_pcm_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uctl) snd_pcm_iec958_put() argument
/kernel/linux/linux-6.6/sound/soc/stm/
H A Dstm32_sai_sub.c270 struct snd_ctl_elem_value *uctl) in snd_pcm_iec958_get()
275 memcpy(uctl->value.iec958.status, sai->iec958.status, 4); in snd_pcm_iec958_get()
282 struct snd_ctl_elem_value *uctl) in snd_pcm_iec958_put()
287 memcpy(sai->iec958.status, uctl->value.iec958.status, 4); in snd_pcm_iec958_put()
269 snd_pcm_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uctl) snd_pcm_iec958_get() argument
281 snd_pcm_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uctl) snd_pcm_iec958_put() argument
/kernel/linux/linux-6.6/sound/soc/tegra/
H A Dtegra210_ahub.c18 struct snd_ctl_elem_value *uctl) in tegra_ahub_get_value_enum()
46 uctl->value.enumerated.item[0] = i; in tegra_ahub_get_value_enum()
55 struct snd_ctl_elem_value *uctl) in tegra_ahub_put_value_enum()
62 unsigned int *item = uctl->value.enumerated.item; in tegra_ahub_put_value_enum()
17 tegra_ahub_get_value_enum(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) tegra_ahub_get_value_enum() argument
54 tegra_ahub_put_value_enum(struct snd_kcontrol *kctl, struct snd_ctl_elem_value *uctl) tegra_ahub_put_value_enum() argument
/kernel/linux/linux-5.10/sound/pci/trident/
H A Dtrident_main.c2913 struct snd_ctl_elem_value *uctl; in snd_trident_mixer() local
2920 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_trident_mixer()
2921 if (!uctl) in snd_trident_mixer()
2967 kctl->put(kctl, uctl); in snd_trident_mixer()
2970 kctl->put(kctl, uctl); in snd_trident_mixer()
3005 kctl->put(kctl, uctl); in snd_trident_mixer()
3021 kctl->put(kctl, uctl); in snd_trident_mixer()
3062 kfree(uctl); in snd_trident_mixer()
/kernel/linux/linux-6.6/sound/pci/trident/
H A Dtrident_main.c2916 struct snd_ctl_elem_value *uctl; in snd_trident_mixer() local
2923 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_trident_mixer()
2924 if (!uctl) in snd_trident_mixer()
2975 kctl->put(kctl, uctl); in snd_trident_mixer()
2980 kctl->put(kctl, uctl); in snd_trident_mixer()
3025 kctl->put(kctl, uctl); in snd_trident_mixer()
3042 kctl->put(kctl, uctl); in snd_trident_mixer()
3086 kfree(uctl); in snd_trident_mixer()
/kernel/linux/linux-6.6/sound/soc/ti/
H A Ddavinci-mcasp.c1629 struct snd_ctl_elem_value *uctl) in davinci_mcasp_iec958_get()
1634 memcpy(uctl->value.iec958.status, &mcasp->iec958_status, in davinci_mcasp_iec958_get()
1641 struct snd_ctl_elem_value *uctl) in davinci_mcasp_iec958_put()
1646 memcpy(&mcasp->iec958_status, uctl->value.iec958.status, in davinci_mcasp_iec958_put()
1628 davinci_mcasp_iec958_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uctl) davinci_mcasp_iec958_get() argument
1640 davinci_mcasp_iec958_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *uctl) davinci_mcasp_iec958_put() argument
/kernel/linux/linux-5.10/drivers/pci/switch/
H A Dswitchtec.c1014 struct switchtec_ioctl_event_ctl __user *uctl) in ioctl_event_ctl()
1021 if (copy_from_user(&ctl, uctl, sizeof(ctl))) in ioctl_event_ctl()
1053 if (copy_to_user(uctl, &ctl, sizeof(ctl))) in ioctl_event_ctl()
1013 ioctl_event_ctl(struct switchtec_dev *stdev, struct switchtec_ioctl_event_ctl __user *uctl) ioctl_event_ctl() argument
/kernel/linux/linux-6.6/drivers/pci/switch/
H A Dswitchtec.c1071 struct switchtec_ioctl_event_ctl __user *uctl) in ioctl_event_ctl()
1078 if (copy_from_user(&ctl, uctl, sizeof(ctl))) in ioctl_event_ctl()
1110 if (copy_to_user(uctl, &ctl, sizeof(ctl))) in ioctl_event_ctl()
1070 ioctl_event_ctl(struct switchtec_dev *stdev, struct switchtec_ioctl_event_ctl __user *uctl) ioctl_event_ctl() argument
/kernel/linux/linux-5.10/sound/pci/hda/
H A Dpatch_realtek.c385 struct snd_ctl_elem_value *uctl; in alc_update_knob_master() local
390 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in alc_update_knob_master()
391 if (!uctl) in alc_update_knob_master()
396 uctl->value.integer.value[0] = val; in alc_update_knob_master()
397 uctl->value.integer.value[1] = val; in alc_update_knob_master()
398 kctl->put(kctl, uctl); in alc_update_knob_master()
399 kfree(uctl); in alc_update_knob_master()
/kernel/linux/linux-6.6/sound/pci/hda/
H A Dpatch_realtek.c382 struct snd_ctl_elem_value *uctl; in alc_update_knob_master() local
387 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in alc_update_knob_master()
388 if (!uctl) in alc_update_knob_master()
393 uctl->value.integer.value[0] = val; in alc_update_knob_master()
394 uctl->value.integer.value[1] = val; in alc_update_knob_master()
395 kctl->put(kctl, uctl); in alc_update_knob_master()
396 kfree(uctl); in alc_update_knob_master()

Completed in 64 milliseconds