Lines Matching defs:gctl

767 	struct snd_emu10k1_fx8010_control_gpr *gctl;
779 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
780 if (! gctl)
784 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i,
789 if (snd_emu10k1_look_for_ctl(emu, &gctl->id))
791 gctl_id = (struct snd_ctl_elem_id *)&gctl->id;
801 switch (gctl->translation) {
807 if (gctl->min != 0 || gctl->max != 100) {
814 if (gctl->min != 0 || gctl->max != 40) {
820 if (gctl->min != 0 || gctl->max != 1) {
832 if (copy_gctl(emu, gctl, icode->gpr_list_controls, i,
839 kfree(gctl);
859 struct snd_emu10k1_fx8010_control_gpr *gctl;
868 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
870 if (!val || !gctl || !nctl) {
876 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i,
881 gctl_id = (struct snd_ctl_elem_id *)&gctl->id;
891 ctl = snd_emu10k1_look_for_ctl(emu, &gctl->id);
899 knew.tlv.p = copy_tlv((const unsigned int __user *)gctl->tlv, in_kernel);
906 nctl->vcount = gctl->vcount;
907 nctl->count = gctl->count;
909 nctl->gpr[j] = gctl->gpr[j];
910 nctl->value[j] = ~gctl->value[j]; /* inverted, we want to write new value in gpr_ctl_put() */
911 val->value.integer.value[j] = gctl->value[j];
913 nctl->min = gctl->min;
914 nctl->max = gctl->max;
915 nctl->translation = gctl->translation;
947 kfree(gctl);
979 struct snd_emu10k1_fx8010_control_gpr *gctl;
983 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
984 if (! gctl)
991 memset(gctl, 0, sizeof(*gctl));
993 gctl->id.iface = (__force int)id->iface;
994 strscpy(gctl->id.name, id->name, sizeof(gctl->id.name));
995 gctl->id.index = id->index;
996 gctl->id.device = id->device;
997 gctl->id.subdevice = id->subdevice;
998 gctl->vcount = ctl->vcount;
999 gctl->count = ctl->count;
1001 gctl->gpr[j] = ctl->gpr[j];
1002 gctl->value[j] = ctl->value[j];
1004 gctl->min = ctl->min;
1005 gctl->max = ctl->max;
1006 gctl->translation = ctl->translation;
1008 gctl, i)) {
1009 kfree(gctl);
1016 kfree(gctl);