Lines Matching defs:priority
60 #define PA_UCM_DEVICE_PRIORITY_SET(device, priority) \
62 if (PA_UCM_PLAYBACK_PRIORITY_UNSET(device)) (device)->playback_priority = (priority); \
63 if (PA_UCM_CAPTURE_PRIORITY_UNSET(device)) (device)->capture_priority = (priority); \
81 unsigned priority;
443 /* get rate and priority of device */
456 /* get priority from ucm config */
460 pa_log_debug("UCM playback priority %s for device %s error", value, device_name);
485 /* get priority from ucm config */
489 pa_log_debug("UCM capture priority %s for device %s error", value, device_name);
503 /* get priority from static table */
506 PA_UCM_DEVICE_PRIORITY_SET(device, dev_info[i].priority);
513 /* fall through to default priority */
518 /* fall through to default priority */
869 verb->priority = ui > 10000 ? 10000 : ui;
1019 unsigned priority;
1046 priority = is_sink ? dev->playback_priority : dev->capture_priority;
1047 prio2 = (priority == 0 ? 0 : 1.0/priority);
1065 priority = is_sink ? dev->playback_priority : dev->capture_priority;
1066 if (priority != 0 && prio2 > 0)
1067 prio2 += 1.0/priority;
1084 /* Make combination ports always have lower priority, and use the formula
1090 priority = prio2 > 0 ? 1.0/prio2 : 0;
1143 port->priority = priority;
1149 pa_log_debug("Port %s direction %s, priority %d", port->name, direction, priority);
1533 m->priority = 0;
1594 unsigned priority, rate, channels;
1603 priority = is_sink ? device->playback_priority : device->capture_priority;
1622 /* mapping priority is the highest one of ucm devices */
1623 if (priority > m->priority)
1624 m->priority = priority;
1664 m->priority = 0;
1775 unsigned int priority;
1795 /* TODO: get profile priority from policy management */
1796 priority = verb->priority;
1798 if (priority == 0) {
1807 priority = verb_info[i].priority;
1814 p->priority = priority;