Lines Matching refs:ncontrol
262 struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new *ncontrol, in snd_ctl_new1() argument
270 if (snd_BUG_ON(!ncontrol || !ncontrol->info)) in snd_ctl_new1()
273 count = ncontrol->count; in snd_ctl_new1()
277 access = ncontrol->access; in snd_ctl_new1()
294 kctl->id.iface = ncontrol->iface; in snd_ctl_new1()
295 kctl->id.device = ncontrol->device; in snd_ctl_new1()
296 kctl->id.subdevice = ncontrol->subdevice; in snd_ctl_new1()
297 if (ncontrol->name) { in snd_ctl_new1()
298 strscpy(kctl->id.name, ncontrol->name, sizeof(kctl->id.name)); in snd_ctl_new1()
299 if (strcmp(ncontrol->name, kctl->id.name) != 0) in snd_ctl_new1()
301 ncontrol->name, kctl->id.name); in snd_ctl_new1()
303 kctl->id.index = ncontrol->index; in snd_ctl_new1()
305 kctl->info = ncontrol->info; in snd_ctl_new1()
306 kctl->get = ncontrol->get; in snd_ctl_new1()
307 kctl->put = ncontrol->put; in snd_ctl_new1()
308 kctl->tlv.p = ncontrol->tlv.p; in snd_ctl_new1()
310 kctl->private_value = ncontrol->private_value; in snd_ctl_new1()