Lines Matching refs:template
1158 struct snd_kcontrol_new template; in snd_ac97_cnew() local
1159 memcpy(&template, _template, sizeof(template)); in snd_ac97_cnew()
1160 template.index = ac97->num; in snd_ac97_cnew()
1161 return snd_ctl_new1(&template, ac97); in snd_ac97_cnew()
2058 int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, struct snd_ac97 **… in snd_ac97_mixer() argument
2073 if (snd_BUG_ON(!bus || !template || !rac97)) in snd_ac97_mixer()
2076 if (snd_BUG_ON(template->num >= 4)) in snd_ac97_mixer()
2078 if (bus->codec[template->num]) in snd_ac97_mixer()
2085 ac97->private_data = template->private_data; in snd_ac97_mixer()
2086 ac97->private_free = template->private_free; in snd_ac97_mixer()
2088 ac97->pci = template->pci; in snd_ac97_mixer()
2089 ac97->num = template->num; in snd_ac97_mixer()
2090 ac97->addr = template->addr; in snd_ac97_mixer()
2091 ac97->scaps = template->scaps; in snd_ac97_mixer()
2092 ac97->res_table = template->res_table; in snd_ac97_mixer()