Lines Matching refs:uctl

536 	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.i… in snd_mixer_oss_get_volume1_vol()
561 …*right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.… 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 = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
589 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_sw()
593 if (kctl->get(kctl, uctl)) in snd_mixer_oss_get_volume1_sw()
595 if (!uctl->value.integer.value[0]) { in snd_mixer_oss_get_volume1_sw()
600 if (uinfo->count > 1 && !uctl->value.integer.value[route ? 3 : 1]) in snd_mixer_oss_get_volume1_sw()
604 kfree(uctl); in snd_mixer_oss_get_volume1_sw()
640 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_volume1_vol() local
654 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
655 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_vol()
662uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.in… in snd_mixer_oss_put_volume1_vol()
664uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_put_volume1_vol()
665 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_vol()
672 kfree(uctl); in snd_mixer_oss_put_volume1_vol()
683 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_volume1_sw() local
697 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
698 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_sw()
703 uctl->value.integer.value[0] = left > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
704 uctl->value.integer.value[route ? 3 : 1] = right > 0 ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
706 uctl->value.integer.value[1] = in snd_mixer_oss_put_volume1_sw()
707 uctl->value.integer.value[2] = 0; in snd_mixer_oss_put_volume1_sw()
710 uctl->value.integer.value[0] = (left > 0 || right > 0) ? 1 : 0; in snd_mixer_oss_put_volume1_sw()
712 res = kctl->put(kctl, uctl); in snd_mixer_oss_put_volume1_sw()
719 kfree(uctl); in snd_mixer_oss_put_volume1_sw()
826 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_get_recsrc2() local
830 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_recsrc2()
831 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_get_recsrc2()
844 err = kctl->get(kctl, uctl); in snd_mixer_oss_get_recsrc2()
856 if (slot->capture_item == uctl->value.enumerated.item[0]) { in snd_mixer_oss_get_recsrc2()
865 kfree(uctl); in snd_mixer_oss_get_recsrc2()
878 struct snd_ctl_elem_value *uctl; in snd_mixer_oss_put_recsrc2() local
883 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_recsrc2()
884 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_put_recsrc2()
913 uctl->value.enumerated.item[idx] = slot->capture_item; in snd_mixer_oss_put_recsrc2()
914 err = kctl->put(kctl, uctl); in snd_mixer_oss_put_recsrc2()
921 kfree(uctl); in snd_mixer_oss_put_recsrc2()