Lines Matching defs:template
1158 struct snd_kcontrol_new template;
1159 memcpy(&template, _template, sizeof(template));
1160 template.index = ac97->num;
1161 return snd_ctl_new1(&template, ac97);
1979 * @template: the template of ac97, including index, callbacks and
1984 * allocated and initialized from the template. The codec
1987 * The template must include the codec number (num) and address (addr),
1995 int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, struct snd_ac97 **rac97)
2010 if (snd_BUG_ON(!bus || !template || !rac97))
2013 if (snd_BUG_ON(template->num >= 4))
2015 if (bus->codec[template->num])
2022 ac97->private_data = template->private_data;
2023 ac97->private_free = template->private_free;
2025 ac97->pci = template->pci;
2026 ac97->num = template->num;
2027 ac97->addr = template->addr;
2028 ac97->scaps = template->scaps;
2029 ac97->res_table = template->res_table;