Lines Matching refs:template
1166 struct snd_kcontrol_new template;
1167 memcpy(&template, _template, sizeof(template));
1168 template.index = ac97->num;
1169 return snd_ctl_new1(&template, ac97);
1977 * @template: the template of ac97, including index, callbacks and
1982 * allocated and initialized from the template. The codec
1985 * The template must include the codec number (num) and address (addr),
1993 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))
2012 if (snd_BUG_ON(template->num >= 4))
2014 if (bus->codec[template->num])
2021 ac97->private_data = template->private_data;
2022 ac97->private_free = template->private_free;
2024 ac97->pci = template->pci;
2025 ac97->num = template->num;
2026 ac97->addr = template->addr;
2027 ac97->scaps = template->scaps;
2028 ac97->res_table = template->res_table;