Lines Matching refs:role_index
361 static void dump_database_helper(struct userdata *u, uint32_t role_index, const char* human, bool s… in dump_database_helper() argument
367 …LID_INDEX != u->preferred_sinks[role_index] && (s = pa_idxset_get_by_index(u->core->sinks, u->pref… in dump_database_helper()
373 …INDEX != u->preferred_sources[role_index] && (s = pa_idxset_get_by_index(u->core->sources, u->pref… in dump_database_helper()
652 uint32_t role_index, device_index; in route_sink_input() local
678 role_index = get_role_index("none"); in route_sink_input()
680 role_index = get_role_index(role); in route_sink_input()
682 if (PA_INVALID_INDEX == role_index) in route_sink_input()
685 device_index = u->preferred_sinks[role_index]; in route_sink_input()
724 uint32_t role_index, device_index; in route_source_output() local
753 role_index = get_role_index("none"); in route_source_output()
755 role_index = get_role_index(role); in route_source_output()
757 if (PA_INVALID_INDEX == role_index) in route_source_output()
760 device_index = u->preferred_sources[role_index]; in route_source_output()
974 uint32_t role_index; in sink_input_new_hook_callback() local
987 role_index = get_role_index("none"); in sink_input_new_hook_callback()
989 role_index = get_role_index(role); in sink_input_new_hook_callback()
991 if (PA_INVALID_INDEX != role_index) { in sink_input_new_hook_callback()
994 device_index = u->preferred_sinks[role_index]; in sink_input_new_hook_callback()
1011 uint32_t role_index; in source_output_new_hook_callback() local
1027 role_index = get_role_index("none"); in source_output_new_hook_callback()
1029 role_index = get_role_index(role); in source_output_new_hook_callback()
1031 if (PA_INVALID_INDEX != role_index) { in source_output_new_hook_callback()
1034 device_index = u->preferred_sources[role_index]; in source_output_new_hook_callback()
1313 uint32_t role_index, n_devices; in extension_cb() local
1329 if (PA_INVALID_INDEX == (role_index = get_role_index(role))) in extension_cb()
1415 device->prio = (offset + e->priority[role_index]); in extension_cb()
1468 if (e->priority[role_index] == idx) in extension_cb()
1471 e->priority[role_index] = idx; in extension_cb()