Lines Matching refs:uctl

521 	struct snd_ctl_elem_value *uctl;  in snd_mixer_oss_get_volume1_vol()  local
533 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
534 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
538 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
543 …*left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_get_volume1_vol()
545 …*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.… in snd_mixer_oss_get_volume1_vol()
548 kfree(uctl); in snd_mixer_oss_get_volume1_vol()
559 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_volume1_sw() local
571 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
572 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_sw()
576 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
578 if (!uctl->value.integer.value[0]) { in snd_mixer_oss_get_volume1_sw()
583 if (uinfo->count > 1 && !uctl->value.integer.value[route ? 3 : 1]) in snd_mixer_oss_get_volume1_sw()
587 kfree(uctl); in snd_mixer_oss_get_volume1_sw()
623 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_volume1_vol() local
636 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
637 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_vol()
644uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.in… in snd_mixer_oss_put_volume1_vol()
646uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_put_volume1_vol()
647 if ((res = kctl->put(kctl, uctl)) < 0) in snd_mixer_oss_put_volume1_vol()
653 kfree(uctl); in snd_mixer_oss_put_volume1_vol()
664 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_volume1_sw() local
677 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
678 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_sw()
683 uctl->value.integer.value[0] = left > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
684 uctl->value.integer.value[route ? 3 : 1] = right > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
686 uctl->value.integer.value[1] = in snd_mixer_oss_put_volume1_sw()
687 uctl->value.integer.value[2] = 0; in snd_mixer_oss_put_volume1_sw()
690 uctl->value.integer.value[0] = (left > 0 || right > 0) ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
692 if ((res = kctl->put(kctl, uctl)) < 0) in snd_mixer_oss_put_volume1_sw()
698 kfree(uctl); in snd_mixer_oss_put_volume1_sw()
805 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_recsrc2() local
809 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_recsrc2()
810 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_get_recsrc2()
822 if ((err = kctl->get(kctl, uctl)) < 0) in snd_mixer_oss_get_recsrc2()
833 if (slot->capture_item == uctl->value.enumerated.item[0]) { in snd_mixer_oss_get_recsrc2()
842 kfree(uctl); in snd_mixer_oss_get_recsrc2()
855 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_recsrc2() local
860 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_recsrc2()
861 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_put_recsrc2()
889 uctl->value.enumerated.item[idx] = slot->capture_item; in snd_mixer_oss_put_recsrc2()
890 err = kctl->put(kctl, uctl); in snd_mixer_oss_put_recsrc2()
897 kfree(uctl); in snd_mixer_oss_put_recsrc2()