const char *name = pa_proplist_gets(prop, PA_PROP_DEVICE_DESCRIPTION);
pa_tz_device_new_data_init(&data, dm->device_list, dm->comm, dm->dbus_conn);
- _fill_new_data_basic(&data, DEVICE_TYPE_RAOP, DM_DEVICE_DIRECTION_OUT, false, dm);
+ _fill_new_data_basic(&data, DEVICE_TYPE_NETWORK, DM_DEVICE_DIRECTION_OUT, false, dm);
pa_tz_device_new_data_set_name(&data, name);
pa_tz_device_new_data_set_system_id(&data, system_id);
- pa_tz_device_new_data_add_sink(&data, DEVICE_ROLE_NORMAL, PA_SINK(pdevice));
+ pa_tz_device_new_data_add_sink(&data, DEVICE_ROLE_RAOP, PA_SINK(pdevice));
pa_tz_device_new(&data);
pa_tz_device_new_data_done(&data);
} else {
- if (!(device = device_list_get_device(dm, DEVICE_TYPE_RAOP, NULL, system_id)))
+ if (!(device = device_list_get_device(dm, DEVICE_TYPE_NETWORK, NULL, system_id)))
pa_log_warn("Can't get RAOP device for %s", system_id);
else
pa_tz_device_free(device);
}
if (!(type_info = _device_manager_get_type_info(dm->type_infos, type, role))) {
- pa_log_error("No type map for %s", type);
+ pa_log_error("No type map for %s.%s", type, role);
return NULL;
}
pa_log_info("Unload Sink for '%s.%s'", type, role);
if (!(type_info = _device_manager_get_type_info(dm->type_infos, type, role))) {
- pa_log_error("No type map for %s", type);
+ pa_log_error("No type map for %s.%s", type, role);
return;
}
}
if (!(type_info = _device_manager_get_type_info(dm->type_infos, type, role))) {
- pa_log_error("No type map for %s", type);
+ pa_log_error("No type map for %s.%s", type, role);
return NULL;
}
pa_log_info("Unload Source for '%s.%s'", type, role);
if (!(type_info = _device_manager_get_type_info(dm->type_infos, type, role))) {
- pa_log_error("No type map for %s", type);
+ pa_log_error("No type map for %s.%s", type, role);
return;
}
pa_assert(type);
pa_assert(role);
- type_info = _device_manager_get_type_info(dm->type_infos, type, role);
- if (type_info == NULL) {
- pa_log_error("No type info for %s", type);
+ if (!(type_info = _device_manager_get_type_info(dm->type_infos, type, role))) {
+ pa_log_error("No type info for %s.%s", type, role);
return NULL;
}
return true;
else if (pa_safe_streq(device_type, DEVICE_TYPE_USB_AUDIO))
return true;
- else if (pa_safe_streq(device_type, DEVICE_TYPE_RAOP))
+ else if (pa_safe_streq(device_type, DEVICE_TYPE_NETWORK))
return true;
else
return false;
return true;
else if (pa_safe_streq(device_type, DEVICE_TYPE_BT_A2DP))
return true;
- else if (pa_safe_streq(device_type, DEVICE_TYPE_RAOP))
+ else if (pa_safe_streq(device_type, DEVICE_TYPE_NETWORK))
return true;
else
return false;
return direction == DM_DEVICE_DIRECTION_BOTH;
else if (pa_safe_streq(device_type, DEVICE_TYPE_USB_AUDIO))
return direction == DM_DEVICE_DIRECTION_BOTH || direction == DM_DEVICE_DIRECTION_OUT || direction == DM_DEVICE_DIRECTION_IN;
- else if (pa_safe_streq(device_type, DEVICE_TYPE_RAOP))
+ else if (pa_safe_streq(device_type, DEVICE_TYPE_NETWORK))
return direction == DM_DEVICE_DIRECTION_OUT;
else
return false;
return true;
else if (pa_safe_streq(device_role, DEVICE_ROLE_UHQA))
return true;
+ else if (pa_safe_streq(device_role, DEVICE_ROLE_RAOP))
+ return true;
else
return false;
}
#define DEVICE_TYPE_HDMI "hdmi"
#define DEVICE_TYPE_FORWARDING "forwarding"
#define DEVICE_TYPE_USB_AUDIO "usb-audio"
-#define DEVICE_TYPE_RAOP "raop"
+#define DEVICE_TYPE_NETWORK "network"
#define DEVICE_TYPE_NONE "none"
#define DEVICE_ROLE_NORMAL "normal"
#define DEVICE_ROLE_LOW_LATENCY "low-latency"
#define DEVICE_ROLE_HIGH_LATENCY "high-latency"
#define DEVICE_ROLE_UHQA "uhqa"
+#define DEVICE_ROLE_RAOP "raop"
typedef enum dm_device_direction_type {
DM_DEVICE_DIRECTION_NONE,