Lines Matching defs:devices
53 PA_MODULE_DESCRIPTION("Keep track of devices (and their descriptions) both past and present and prioritise by role");
415 pa_log_debug(" Highest priority devices per-role:");
511 /* Find all existing devices with the same prefix so we calculate the current max priority for each role */
579 /* Find all existing devices with the same prefix so we find the highest priority device for each role */
1318 struct device_t **devices;
1332 /* Cycle through the devices given and make sure they exist */
1372 pa_log_error("Attempted to reorder mixed devices (sinks and sources)");
1393 /* Now cycle through our list and add all the devices.
1439 devices = pa_xnew(struct device_t *, n_devices);
1442 devices[idx++] = device;
1449 if (devices[i]->prio > devices[j]->prio) {
1451 tmp = devices[i];
1452 devices[i] = devices[j];
1453 devices[j] = tmp;
1460 pa_log_debug(" - %s (%d)", devices[i]->device, devices[i]->prio);
1467 if ((e = entry_read(u, devices[i]->device))) {
1473 if (entry_write(u, (char *) devices[i]->device, e)) {
1481 pa_xfree(devices[i]->device);
1482 pa_xfree(devices[i]);
1485 pa_xfree(devices);
1614 /* Attempt to inject the devices into the list in priority order */
1660 /* This user has a *lot* of devices... */