Lines Matching refs:template
1178 struct snd_kcontrol_new template; in snd_ac97_cnew() local
1179 memcpy(&template, _template, sizeof(template)); in snd_ac97_cnew()
1180 template.index = ac97->num; in snd_ac97_cnew()
1181 return snd_ctl_new1(&template, ac97); in snd_ac97_cnew()
2013 int snd_ac97_mixer(struct snd_ac97_bus *bus, struct snd_ac97_template *template, struct snd_ac97 **… in snd_ac97_mixer() argument
2030 if (snd_BUG_ON(!bus || !template)) in snd_ac97_mixer()
2032 if (snd_BUG_ON(template->num >= 4)) in snd_ac97_mixer()
2034 if (bus->codec[template->num]) in snd_ac97_mixer()
2041 ac97->private_data = template->private_data; in snd_ac97_mixer()
2042 ac97->private_free = template->private_free; in snd_ac97_mixer()
2044 ac97->pci = template->pci; in snd_ac97_mixer()
2045 ac97->num = template->num; in snd_ac97_mixer()
2046 ac97->addr = template->addr; in snd_ac97_mixer()
2047 ac97->scaps = template->scaps; in snd_ac97_mixer()
2048 ac97->res_table = template->res_table; in snd_ac97_mixer()