Lines Matching refs:device

58     "on_hotplug=<When new device becomes available, recheck streams?> "
59 "on_rescue=<When device becomes unavailable, recheck streams?>");
503 /* This is a new device, so make sure we write its priority list correctly */
579 /* Find all existing devices with the same prefix so we find the highest priority device for each role */
595 /* We've found a device with a higher priority than that we've currently got,
667 auto_filtered_prop = pa_proplist_gets(si->proplist, "module-device-manager.auto_filtered");
742 auto_filtered_prop = pa_proplist_gets(so->proplist, "module-device-manager.auto_filtered");
912 pa_log_info("Storing device %s.", name);
917 pa_log_warn("Could not save device");;
984 pa_log_debug("Not restoring device for stream because already set.");
1000 pa_log_debug("Not restoring device for stream because no supported format was found");
1024 pa_log_debug("Not restoring device for stream because already set.");
1040 pa_log_debug("Not restoring device for stream because no supported format was found");
1243 const char *device, *description;
1245 if (pa_tagstruct_gets(t, &device) < 0 ||
1249 if (!device || !*device || !description || !*description)
1252 if ((e = entry_read(u, device))) {
1257 if (entry_write(u, (char *)device, e)) {
1258 apply_entry(u, device, e);
1263 pa_log_warn("Could not save device");
1268 pa_log_warn("Could not rename device %s, no entry in database", device);
1316 struct device_t { uint32_t prio; char *device; };
1317 struct device_t *device;
1339 while ((device = pa_hashmap_steal_first(h))) {
1340 pa_xfree(device->device);
1341 pa_xfree(device);
1351 while ((device = pa_hashmap_steal_first(h))) {
1352 pa_xfree(device->device);
1353 pa_xfree(device);
1357 pa_log_error("Client specified an unknown device in its reorder list.");
1366 while ((device = pa_hashmap_steal_first(h))) {
1367 pa_xfree(device->device);
1368 pa_xfree(device);
1376 /* Add the device to our hashmap. If it's already in it, free it now and carry on */
1377 device = pa_xnew(struct device_t, 1);
1378 device->device = pa_xstrdup(s);
1379 if (pa_hashmap_put(h, device->device, device) == 0) {
1380 device->prio = idx;
1383 pa_xfree(device->device);
1384 pa_xfree(device);
1389 PA_HASHMAP_FOREACH(device, h, state) {
1390 pa_log_debug(" - %s (%d)", device->device, device->prio);
1395 not specified in the device list (and thus will be
1405 device = pa_xnew(struct device_t, 1);
1406 device->device = pa_xstrndup(key.data, key.size);
1407 if ((sink_mode && 0 == strncmp("sink:", device->device, 5))
1408 || (!sink_mode && 0 == strncmp("source:", device->device, 7))) {
1410 /* Add the device to our hashmap. If it's already in it, free it now and carry on */
1411 if (pa_hashmap_put(h, device->device, device) == 0
1412 && (e = entry_read(u, device->device))) {
1415 device->prio = (offset + e->priority[role_index]);
1419 pa_xfree(device->device);
1420 pa_xfree(device);
1423 pa_xfree(device->device);
1424 pa_xfree(device);
1433 PA_HASHMAP_FOREACH(device, h, state) {
1434 pa_log_debug(" - %s (%d)", device->device, device->prio);
1441 while ((device = pa_hashmap_steal_first(h))) {
1442 devices[idx++] = device;
1458 /*pa_log_debug("Sorted device list");
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);
1583 /* Used to handle device description management */
1607 if (!(u->database = pa_database_open(state_path, "device-manager", true, true))) {