Lines Matching refs:uinfo
535 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_get_volume1_vol() local
548 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
550 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_vol()
552 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_vol()
556 if (uinfo->type == SNDRV_CTL_ELEM_TYPE_BOOLEAN && in snd_mixer_oss_get_volume1_vol()
557 uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1) 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()
560 if (uinfo->count > 1) 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()
565 kfree(uinfo); in snd_mixer_oss_get_volume1_vol()
574 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_get_volume1_sw() local
587 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
589 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_get_volume1_sw()
591 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_get_volume1_sw()
597 if (uinfo->count == 1) 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()
605 kfree(uinfo); in snd_mixer_oss_get_volume1_sw()
639 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_put_volume1_vol() local
653 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
655 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_vol()
657 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_vol()
659 if (uinfo->type == SNDRV_CTL_ELEM_TYPE_BOOLEAN && in snd_mixer_oss_put_volume1_vol()
660 uinfo->value.integer.min == 0 && uinfo->value.integer.max == 1) in snd_mixer_oss_put_volume1_vol()
662 …uctl->value.integer.value[0] = snd_mixer_oss_conv2(left, uinfo->value.integer.min, uinfo->value.in… in snd_mixer_oss_put_volume1_vol()
663 if (uinfo->count > 1) in snd_mixer_oss_put_volume1_vol()
664 …uctl->value.integer.value[1] = snd_mixer_oss_conv2(right, uinfo->value.integer.min, uinfo->value.i… in snd_mixer_oss_put_volume1_vol()
673 kfree(uinfo); in snd_mixer_oss_put_volume1_vol()
682 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_put_volume1_sw() local
696 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
698 if (uinfo == NULL || uctl == NULL) in snd_mixer_oss_put_volume1_sw()
700 if (kctl->info(kctl, uinfo)) in snd_mixer_oss_put_volume1_sw()
702 if (uinfo->count > 1) { in snd_mixer_oss_put_volume1_sw()
720 kfree(uinfo); in snd_mixer_oss_put_volume1_sw()
825 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_get_recsrc2() local
829 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_recsrc2()
831 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_get_recsrc2()
841 err = kctl->info(kctl, uinfo); in snd_mixer_oss_get_recsrc2()
866 kfree(uinfo); in snd_mixer_oss_get_recsrc2()
877 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_put_recsrc2() local
882 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_recsrc2()
884 if (uinfo == NULL || uctl == NULL) { in snd_mixer_oss_put_recsrc2()
894 err = kctl->info(kctl, uinfo); in snd_mixer_oss_put_recsrc2()
912 for (idx = 0; idx < uinfo->count; idx++) in snd_mixer_oss_put_recsrc2()
922 kfree(uinfo); in snd_mixer_oss_put_recsrc2()
1076 struct snd_ctl_elem_info *uinfo; in snd_mixer_oss_build_input() local
1078 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_build_input()
1079 if (! uinfo) { in snd_mixer_oss_build_input()
1084 if (kctl->info(kctl, uinfo)) { in snd_mixer_oss_build_input()
1086 kfree(uinfo); in snd_mixer_oss_build_input()
1095 if (!strcmp(uinfo->value.enumerated.name, str)) { in snd_mixer_oss_build_input()
1098 …for (slot.capture_item = 1; slot.capture_item < uinfo->value.enumerated.items; slot.capture_item++… in snd_mixer_oss_build_input()
1099 uinfo->value.enumerated.item = slot.capture_item; in snd_mixer_oss_build_input()
1100 if (kctl->info(kctl, uinfo)) { in snd_mixer_oss_build_input()
1102 kfree(uinfo); in snd_mixer_oss_build_input()
1105 if (!strcmp(uinfo->value.enumerated.name, str)) { in snd_mixer_oss_build_input()
1111 kfree(uinfo); in snd_mixer_oss_build_input()