Lines Matching defs:priority

57     "do_routing=<Automatically route streams based on a priority list (unique per-role)?> "
134 role_indexes_t priority;
214 pa_tagstruct_putu32(t, e->priority[i]);
237 role_indexes_t priority;
324 if (pa_tagstruct_getu32(t, &e->priority[i]) < 0)
402 e->priority[ROLE_NONE], e->priority[ROLE_VIDEO], e->priority[ROLE_MUSIC], e->priority[ROLE_GAME], e->priority[ROLE_EVENT]);
404 e->priority[ROLE_PHONE], e->priority[ROLE_ANIMATION], e->priority[ROLE_PRODUCTION], e->priority[ROLE_A11Y]);
415 pa_log_debug(" Highest priority devices per-role:");
474 if (a->priority[i] != b->priority[i])
503 /* This is a new device, so make sure we write its priority list correctly */
511 /* Find all existing devices with the same prefix so we calculate the current max priority for each role */
525 max_priority[i] = PA_MAX(max_priority[i], e->priority[i]);
539 entry->priority[i] = max_priority[i] + 1;
579 /* Find all existing devices with the same prefix so we find the highest priority device for each role */
594 if (!highest_priority_available[i] || e->priority[i] < highest_priority_available[i]) {
595 /* We've found a device with a higher priority than that we've currently got,
630 highest_priority_available[i] = e->priority[i];
1226 pa_tagstruct_putu32(reply, e->priority[i]);
1413 /* We add offset on to the existing priority so that when we order, the
1414 existing entries are always lower priority than the new ones. */
1415 device->prio = (offset + e->priority[role_index]);
1468 if (e->priority[role_index] == idx)
1471 e->priority[role_index] = idx;
1541 int32_t priority;
1614 /* Attempt to inject the devices into the list in priority order */
1625 p_i[i++].priority = sink->priority;
1631 if (p_i[j].priority > p_i[k].priority) {
1644 p_i[i++].priority = source->priority;
1650 if (p_i[j].priority > p_i[k].priority) {
1668 /* Perform the routing (if it's enabled) which will update our priority list cache too */