Lines Matching refs:uctl

521 	struct snd_ctl_elem_value *uctl __free(kfree) = NULL;  in snd_mixer_oss_get_volume1_vol()
532 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
533 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
537 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
542 …*left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_get_volume1_vol()
544 …*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.… in snd_mixer_oss_get_volume1_vol()
554 struct snd_ctl_elem_value *uctl __free(kfree) = NULL; in snd_mixer_oss_get_volume1_sw()
565 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
566 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_sw()
570 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
572 if (!uctl->value.integer.value[0]) { in snd_mixer_oss_get_volume1_sw()
577 if (uinfo->count > 1 && !uctl->value.integer.value[route ? 3 : 1]) in snd_mixer_oss_get_volume1_sw()
613 struct snd_ctl_elem_value *uctl __free(kfree) = NULL; in snd_mixer_oss_put_volume1_vol()
625 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
626 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_vol()
633uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.in… in snd_mixer_oss_put_volume1_vol()
635uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_put_volume1_vol()
636 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_vol()
650 struct snd_ctl_elem_value *uctl __free(kfree) = NULL; in snd_mixer_oss_put_volume1_sw()
662 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
663 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_sw()
668 uctl->value.integer.value[0] = left > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
669 uctl->value.integer.value[route ? 3 : 1] = right > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
671 uctl->value.integer.value[1] = in snd_mixer_oss_put_volume1_sw()
672 uctl->value.integer.value[2] = 0; in snd_mixer_oss_put_volume1_sw()
675 uctl->value.integer.value[0] = (left > 0 || right > 0) ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
677 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_sw()
787 struct snd_ctl_elem_value *uctl __free(kfree) = NULL; in snd_mixer_oss_get_recsrc2()
791 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_recsrc2()
792 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_recsrc2()
801 err = kctl->get(kctl, uctl); in snd_mixer_oss_get_recsrc2()
813 if (slot->capture_item == uctl->value.enumerated.item[0]) { in snd_mixer_oss_get_recsrc2()
829 struct snd_ctl_elem_value *uctl __free(kfree) = NULL; in snd_mixer_oss_put_recsrc2()
834 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_recsrc2()
835 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_recsrc2()
860 uctl->value.enumerated.item[idx] = slot->capture_item; in snd_mixer_oss_put_recsrc2()
861 err = kctl->put(kctl, uctl); in snd_mixer_oss_put_recsrc2()