Lines Matching refs:uctl
528 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_volume1_vol() local
540 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
541 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
545 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_vol()
550 …*left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_get_volume1_vol()
552 …*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.… in snd_mixer_oss_get_volume1_vol()
555 kfree(uctl); in snd_mixer_oss_get_volume1_vol()
566 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_volume1_sw() local
578 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
579 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_sw()
583 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
585 if (!uctl->value.integer.value[0]) { in snd_mixer_oss_get_volume1_sw()
590 if (uinfo->count > 1 && !uctl->value.integer.value[route ? 3 : 1]) in snd_mixer_oss_get_volume1_sw()
594 kfree(uctl); in snd_mixer_oss_get_volume1_sw()
630 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_volume1_vol() local
643 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
644 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_vol()
651 …uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.in… in snd_mixer_oss_put_volume1_vol()
653 …uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_put_volume1_vol()
654 if ((res = kctl->put(kctl, uctl)) < 0) in snd_mixer_oss_put_volume1_vol()
660 kfree(uctl); in snd_mixer_oss_put_volume1_vol()
671 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_volume1_sw() local
684 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
685 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_sw()
690 uctl->value.integer.value[0] = left > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
691 uctl->value.integer.value[route ? 3 : 1] = right > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
693 uctl->value.integer.value[1] = in snd_mixer_oss_put_volume1_sw()
694 uctl->value.integer.value[2] = 0; in snd_mixer_oss_put_volume1_sw()
697 uctl->value.integer.value[0] = (left > 0 || right > 0) ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
699 if ((res = kctl->put(kctl, uctl)) < 0) in snd_mixer_oss_put_volume1_sw()
705 kfree(uctl); in snd_mixer_oss_put_volume1_sw()
812 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_recsrc2() local
816 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_recsrc2()
817 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_get_recsrc2()
829 if ((err = kctl->get(kctl, uctl)) < 0) in snd_mixer_oss_get_recsrc2()
840 if (slot->capture_item == uctl->value.enumerated.item[0]) { in snd_mixer_oss_get_recsrc2()
849 kfree(uctl); in snd_mixer_oss_get_recsrc2()
862 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_recsrc2() local
867 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_recsrc2()
868 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_put_recsrc2()
896 uctl->value.enumerated.item[idx] = slot->capture_item; in snd_mixer_oss_put_recsrc2()
897 err = kctl->put(kctl, uctl); in snd_mixer_oss_put_recsrc2()
904 kfree(uctl); in snd_mixer_oss_put_recsrc2()