Lines Matching defs:template
3110 static bool element_create_settings(pa_alsa_element *e, pa_alsa_setting *template) {
3124 if (template) {
3125 s = pa_xnewdup(pa_alsa_setting, template, 1);
3126 s->options = pa_idxset_copy(template->options, NULL);
3127 s->name = pa_sprintf_malloc("%s+%s", template->name, o->name);
3129 (template->description[0] && o->description[0])
3130 ? pa_sprintf_malloc("%s / %s", template->description, o->description)
3131 : (template->description[0]
3132 ? pa_xstrdup(template->description)
3135 s->priority = PA_MAX(template->priority, o->priority);