Lines Matching refs:knew
811 struct snd_kcontrol_new knew; in snd_emu10k1_add_controls() local
841 memset(&knew, 0, sizeof(knew)); in snd_emu10k1_add_controls()
842 knew.iface = gctl_id->iface; in snd_emu10k1_add_controls()
843 knew.name = gctl_id->name; in snd_emu10k1_add_controls()
844 knew.index = gctl_id->index; in snd_emu10k1_add_controls()
845 knew.device = gctl_id->device; in snd_emu10k1_add_controls()
846 knew.subdevice = gctl_id->subdevice; in snd_emu10k1_add_controls()
847 knew.info = snd_emu10k1_gpr_ctl_info; in snd_emu10k1_add_controls()
848 knew.tlv.p = copy_tlv((const unsigned int __user *)gctl->tlv, in_kernel); in snd_emu10k1_add_controls()
849 if (knew.tlv.p) in snd_emu10k1_add_controls()
850 knew.access = SNDRV_CTL_ELEM_ACCESS_READWRITE | in snd_emu10k1_add_controls()
852 knew.get = snd_emu10k1_gpr_ctl_get; in snd_emu10k1_add_controls()
853 knew.put = snd_emu10k1_gpr_ctl_put; in snd_emu10k1_add_controls()
869 kfree(knew.tlv.p); in snd_emu10k1_add_controls()
872 knew.private_value = (unsigned long)ctl; in snd_emu10k1_add_controls()
874 if ((err = snd_ctl_add(emu->card, kctl = snd_ctl_new1(&knew, emu))) < 0) { in snd_emu10k1_add_controls()
876 kfree(knew.tlv.p); in snd_emu10k1_add_controls()