Searched refs:ncontrol (Results 1 – 1 of 1) sorted by relevance
225 struct snd_kcontrol *snd_ctl_new1(const struct snd_kcontrol_new *ncontrol, in snd_ctl_new1() argument231 if (snd_BUG_ON(!ncontrol || !ncontrol->info)) in snd_ctl_new1()234 kctl.id.iface = ncontrol->iface; in snd_ctl_new1()235 kctl.id.device = ncontrol->device; in snd_ctl_new1()236 kctl.id.subdevice = ncontrol->subdevice; in snd_ctl_new1()237 if (ncontrol->name) { in snd_ctl_new1()238 strlcpy(kctl.id.name, ncontrol->name, sizeof(kctl.id.name)); in snd_ctl_new1()239 if (strcmp(ncontrol->name, kctl.id.name) != 0) in snd_ctl_new1()242 ncontrol->name, kctl.id.name); in snd_ctl_new1()244 kctl.id.index = ncontrol->index; in snd_ctl_new1()[all …]