Lines Matching refs:uinfo
535 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_get_volume1_vol() local
547 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
549 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
551 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol()
555 if (uinfo->type == SNDRV_CTL_ELEM_TYPE_BOOLEAN && in snd_mixer_oss_get_volume1_vol()
556 uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1) in snd_mixer_oss_get_volume1_vol()
558 …*left = snd_mixer_oss_conv1(uctl->value.integer.value[0], uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_get_volume1_vol()
559 if (uinfo->count > 1) in snd_mixer_oss_get_volume1_vol()
560 …*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(uinfo); in snd_mixer_oss_get_volume1_vol()
573 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_get_volume1_sw() local
585 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
587 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_sw()
589 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw()
595 if (uinfo->count == 1) in snd_mixer_oss_get_volume1_sw()
598 if (uinfo->count > 1 && !uctl->value.integer.value[route ? 3 : 1]) in snd_mixer_oss_get_volume1_sw()
603 kfree(uinfo); in snd_mixer_oss_get_volume1_sw()
637 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_put_volume1_vol() local
650 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
652 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_vol()
654 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_vol()
656 if (uinfo->type == SNDRV_CTL_ELEM_TYPE_BOOLEAN && in snd_mixer_oss_put_volume1_vol()
657 uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1) in snd_mixer_oss_put_volume1_vol()
659 …uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.in… in snd_mixer_oss_put_volume1_vol()
660 if (uinfo->count > 1) in snd_mixer_oss_put_volume1_vol()
661 …uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_put_volume1_vol()
669 kfree(uinfo); in snd_mixer_oss_put_volume1_vol()
678 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_put_volume1_sw() local
691 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
693 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_sw()
695 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_sw()
697 if (uinfo->count > 1) { in snd_mixer_oss_put_volume1_sw()
714 kfree(uinfo); in snd_mixer_oss_put_volume1_sw()
819 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_get_recsrc2() local
823 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_recsrc2()
825 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_get_recsrc2()
835 if ((err = kctl->info(kctl, uinfo)) < 0) in snd_mixer_oss_get_recsrc2()
858 kfree(uinfo); in snd_mixer_oss_get_recsrc2()
869 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_put_recsrc2() local
874 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_recsrc2()
876 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_put_recsrc2()
886 if ((err = kctl->info(kctl, uinfo)) < 0) in snd_mixer_oss_put_recsrc2()
903 for (idx = 0; idx < uinfo->count; idx++) in snd_mixer_oss_put_recsrc2()
913 kfree(uinfo); in snd_mixer_oss_put_recsrc2()
1063 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_build_input() local
1065 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_build_input()
1066 if (! uinfo) { in snd_mixer_oss_build_input()
1071 if (kctl->info(kctl, uinfo)) { in snd_mixer_oss_build_input()
1073 kfree(uinfo); in snd_mixer_oss_build_input()
1082 if (!strcmp(uinfo->value.enumerated.name, str)) { in snd_mixer_oss_build_input()
1085 …for (slot.capture_item = 1; slot.capture_item < uinfo->value.enumerated.items; slot.capture_item++… in snd_mixer_oss_build_input()
1086 uinfo->value.enumerated.item = slot.capture_item; in snd_mixer_oss_build_input()
1087 if (kctl->info(kctl, uinfo)) { in snd_mixer_oss_build_input()
1089 kfree(uinfo); in snd_mixer_oss_build_input()
1092 if (!strcmp(uinfo->value.enumerated.name, str)) { in snd_mixer_oss_build_input()
1098 kfree(uinfo); in snd_mixer_oss_build_input()