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