Lines Matching defs:index
163 * Optionally, the index argument for a widget can be omitted and will be substituted with
164 * the index from the route: ex: pga..0, host..playback etc
167 const char *string, long index, char **widget)
255 /* if no index provided, substitue with route index */
256 if (!strcmp(arg, "") && !strcmp(id, "index")) {
258 arg = tplg_snprintf("%ld", index);
298 long index = 0;
328 /* get route index */
329 ret = snd_config_search(obj, "index", &cfg);
331 ret = snd_config_get_integer(cfg, &index);
333 SNDERR("Invalid index route %s\n", name);
351 ret = tplg_pp_get_widget_name(tplg_pp, wname, index, &src_widget_name);
372 ret = tplg_pp_get_widget_name(tplg_pp, wname, index, &sink_widget_name);
409 /* add index */
410 ret = tplg_config_make_add(&child, "index", SND_CONFIG_TYPE_INTEGER, route);
412 SNDERR("Error creating index config for %s\n", name);
416 ret = snd_config_set_integer(child, index);
418 SNDERR("Error setting index config for %s\n", name);