• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/emu10k1/

Lines Matching defs:gctl

679 		     struct snd_emu10k1_fx8010_control_gpr *gctl,
686 return copy_from_user(gctl, &_gctl[idx], sizeof(*gctl));
688 if (copy_from_user(gctl, &octl[idx], sizeof(*octl)))
690 gctl->tlv = NULL;
696 struct snd_emu10k1_fx8010_control_gpr *gctl,
702 return copy_to_user(&_gctl[idx], gctl, sizeof(*gctl));
705 return copy_to_user(&octl[idx], gctl, sizeof(*octl));
714 struct snd_emu10k1_fx8010_control_gpr *gctl;
724 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
725 if (! gctl)
729 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i)) {
733 if (snd_emu10k1_look_for_ctl(emu, &gctl->id))
736 if (snd_ctl_find_id(emu->card, &gctl->id) != NULL) {
742 if (gctl->id.iface != SNDRV_CTL_ELEM_IFACE_MIXER &&
743 gctl->id.iface != SNDRV_CTL_ELEM_IFACE_PCM) {
749 if (copy_gctl(emu, gctl, icode->gpr_list_controls, i)) {
755 kfree(gctl);
775 struct snd_emu10k1_fx8010_control_gpr *gctl;
783 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
785 if (!val || !gctl || !nctl) {
791 if (copy_gctl(emu, gctl, icode->gpr_add_controls, i)) {
795 if (gctl->id.iface != SNDRV_CTL_ELEM_IFACE_MIXER &&
796 gctl->id.iface != SNDRV_CTL_ELEM_IFACE_PCM) {
800 if (! gctl->id.name[0]) {
804 ctl = snd_emu10k1_look_for_ctl(emu, &gctl->id);
806 knew.iface = gctl->id.iface;
807 knew.name = gctl->id.name;
808 knew.index = gctl->id.index;
809 knew.device = gctl->id.device;
810 knew.subdevice = gctl->id.subdevice;
812 knew.tlv.p = copy_tlv(gctl->tlv);
819 nctl->vcount = gctl->vcount;
820 nctl->count = gctl->count;
822 nctl->gpr[j] = gctl->gpr[j];
823 nctl->value[j] = ~gctl->value[j]; /* inverted, we want to write new value in gpr_ctl_put() */
824 val->value.integer.value[j] = gctl->value[j];
826 nctl->min = gctl->min;
827 nctl->max = gctl->max;
828 nctl->translation = gctl->translation;
858 kfree(gctl);
890 struct snd_emu10k1_fx8010_control_gpr *gctl;
894 gctl = kmalloc(sizeof(*gctl), GFP_KERNEL);
895 if (! gctl)
902 memset(gctl, 0, sizeof(*gctl));
904 gctl->id.iface = id->iface;
905 strlcpy(gctl->id.name, id->name, sizeof(gctl->id.name));
906 gctl->id.index = id->index;
907 gctl->id.device = id->device;
908 gctl->id.subdevice = id->subdevice;
909 gctl->vcount = ctl->vcount;
910 gctl->count = ctl->count;
912 gctl->gpr[j] = ctl->gpr[j];
913 gctl->value[j] = ctl->value[j];
915 gctl->min = ctl->min;
916 gctl->max = ctl->max;
917 gctl->translation = ctl->translation;
919 gctl, i)) {
920 kfree(gctl);
927 kfree(gctl);