Lines Matching defs:template
1157 struct snd_kcontrol_new template;
1158 memcpy(&template, _template, sizeof(template));
1159 template.index = ac97->num;
1160 return snd_ctl_new1(&template, ac97);
2041 * @template: the template of ac97, including index, callbacks and
2046 * allocated and initialized from the template. The codec
2049 * The template must include the codec number (num) and address (addr),
2057 int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, struct snd_ac97 **rac97)
2072 if (snd_BUG_ON(!bus || !template || !rac97))
2075 if (snd_BUG_ON(template->num >= 4))
2077 if (bus->codec[template->num])
2084 ac97->private_data = template->private_data;
2085 ac97->private_free = template->private_free;
2087 ac97->pci = template->pci;
2088 ac97->num = template->num;
2089 ac97->addr = template->addr;
2090 ac97->scaps = template->scaps;
2091 ac97->res_table = template->res_table;