if ((source = pa_hashmap_get(profile_item->capture_devices, role)))
pa_log_debug("Got source[%s] for [%s] role", source->name, role);
- else {
- source = pa_hashmap_get(profile_item->capture_devices, DEVICE_ROLE_NORMAL);
- pa_log_debug("Could not get source for [%s] role. so get source[%s] for normal role", role, source->name);
- }
+ else
+ pa_log_warn("Could not get source for [%s] role", role);
return source;
}
pa_log_info("[ROUTE][AUTO_ALL] found the combine_sink already existed");
} else if (data->stream_type == STREAM_SINK_INPUT && !combine_sink_arg1) {
sink = combine_sink_arg1 = pa_device_manager_get_sink(device, data->device_role);
- pa_log_debug("[ROUTE][AUTO_ALL] combine_sink_arg1[%s], combine_sink_arg2[%p]", sink->name, combine_sink_arg2);
+ if (sink)
+ pa_log_debug("[ROUTE][AUTO_ALL] combine_sink_arg1[%s], combine_sink_arg2[%p]", sink->name, combine_sink_arg2);
+ else
+ pa_log_error("[ROUTE][AUTO_ALL] could not get sink from pa_device_manager_get_sink");
} else if (data->stream_type == STREAM_SINK_INPUT && !combine_sink_arg2) {
sink = combine_sink_arg2 = pa_device_manager_get_sink(device, data->device_role);
if (sink && !pa_streq(sink->name, combine_sink_arg1->name)) {
if (event_type < 0 || event_type >= PA_TIZEN_EVENT_MAX)
return -1;
- if (event_type == PA_TIZEN_EVENT_DEVICE_CONNECTION_CHANGED) {
+ if (event_type == PA_TIZEN_EVENT_DEVICE_CONNECTION_CHANGED)
*event_name = EVENT_NAME_DEVICE_DISCONNECTED;
- return 0;
- }
- return -1;
+ return 0;
}
uint32_t subscriber_hash_func(const void *p) {