• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/core/oss/

Lines Matching defs:uctl

487 	struct snd_ctl_elem_value *uctl;
499 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL);
500 if (uinfo == NULL || uctl == NULL)
504 if (kctl->get(kctl, uctl))
509 *left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[0]);
511 *right = snd_mixer_oss_conv1(uctl->value.integer.value[1], uinfo->value.integer.min, uinfo->value.integer.max, &pslot->volume[1]);
514 kfree(uctl);
525 struct snd_ctl_elem_value *uctl;
537 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL);
538 if (uinfo == NULL || uctl == NULL)
542 if (kctl->get(kctl, uctl))
544 if (!uctl->value.integer.value[0]) {
549 if (uinfo->count > 1 && !uctl->value.integer.value[route ? 3 : 1])
553 kfree(uctl);
589 struct snd_ctl_elem_value *uctl;
600 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL);
601 if (uinfo == NULL || uctl == NULL)
608 uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.integer.max);
610 uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.integer.max);
611 if ((res = kctl->put(kctl, uctl)) < 0)
617 kfree(uctl);
628 struct snd_ctl_elem_value *uctl;
641 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL);
642 if (uinfo == NULL || uctl == NULL)
647 uctl->value.integer.value[0] = left > 0 ? 1 : 0;
648 uctl->value.integer.value[route ? 3 : 1] = right > 0 ? 1 : 0;
650 uctl->value.integer.value[1] =
651 uctl->value.integer.value[2] = 0;
654 uctl->value.integer.value[0] = (left > 0 || right > 0) ? 1 : 0;
656 if ((res = kctl->put(kctl, uctl)) < 0)
662 kfree(uctl);
758 struct snd_ctl_elem_value *uctl;
762 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL);
763 if (uinfo == NULL || uctl == NULL) {
775 if ((err = kctl->get(kctl, uctl)) < 0)
786 if (slot->capture_item == uctl->value.enumerated.item[0]) {
794 kfree(uctl);
807 struct snd_ctl_elem_value *uctl;
812 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL);
813 if (uinfo == NULL || uctl == NULL) {
841 uctl->value.enumerated.item[idx] = slot->capture_item;
842 err = kctl->put(kctl, uctl);
848 kfree(uctl);