Lines Matching defs:index
131 ref->id, SND_TPLG_TYPE_MIXER, elem->index);
139 ref->id, SND_TPLG_TYPE_ENUM, elem->index);
147 ref->id, SND_TPLG_TYPE_BYTES, elem->index);
230 SND_TPLG_TYPE_MIXER, elem->index) &&
232 SND_TPLG_TYPE_ENUM, elem->index)) {
257 struct tplg_elem *tplg_elem_new_route(snd_tplg_t *tplg, int index)
266 elem->index = index;
336 static int tplg_parse_routes(snd_tplg_t *tplg, snd_config_t *cfg, int index)
351 elem = tplg_elem_new_route(tplg, index);
374 int index = -1;
391 if (strcmp(id, "index") == 0) {
392 if (tplg_get_integer(n, &index, 0))
394 if (index < 0)
399 if (index < 0) {
400 SNDERR("failed to parse dapm graph %s, missing index",
404 err = tplg_parse_routes(tplg, n, index);
418 int tplg_save_dapm_graph(snd_tplg_t *tplg, int index,
435 if (index >= 0 && elem->index != index)
437 if (old_index != elem->index) {
439 old_index = elem->index;
462 if (index >= 0 && elem->index != index)
464 if (old_index != elem->index) {
473 old_index = elem->index;
479 elem->index);
691 if (err >= 0 && elem->index)
693 elem->index);
743 int tplg_add_route(snd_tplg_t *tplg, struct snd_tplg_graph_elem *t, int index)
751 elem = tplg_elem_new_route(tplg, index);
771 ret = tplg_add_route(tplg, gt->elem + i, t->index);
889 unsigned int index;
950 for (index = 0; index < w->num_kcontrols; index++) {
959 wt->ctl[index] = (void *)mt;
979 wt->ctl[index] = (void *)et;
998 wt->ctl[index] = (void *)bt;