Lines Matching defs:device

65     "path=<device object path>"
120 pa_bluetooth_device *device;
213 pa_log_debug("Unknown Bluetooth major device class %u", major);
220 pa_log_debug("Unknown Bluetooth minor device class %u", minor);
891 /* Stop the device if the sink is suspended as well */
908 /* Resume the device if the sink was suspended as well */
961 if (pa_bluetooth_profile_is_a2dp(u->profile) && !u->transport->device->avrcp_absolute_volume)
1018 data.name = pa_sprintf_malloc("bluez_source.%s.%s", u->device->address, pa_bluetooth_profile_to_string(u->profile));
1134 /* Stop the device if the source is suspended as well */
1148 /* Resume the device if the source was suspended as well */
1198 if (pa_bluetooth_profile_is_a2dp(u->profile) && !u->transport->device->avrcp_absolute_volume)
1257 data.name = pa_sprintf_malloc("bluez_sink.%s.%s", u->device->address, pa_bluetooth_profile_to_string(u->profile));
1368 t = u->device->transports[u->profile];
1485 /* We should send two blocks to the device before we expect a response. */
1660 && pa_timeval_age(&tv_last_output_rate_change) >= u->device->output_rate_refresh_interval_ms * PA_USEC_PER_MSEC) {
1735 * unless there is no other sound device available. */
1749 /* If we are in the headset role or the device is an a2dp source,
1751 * sound device available. */
1884 pa_assert(u->device);
1892 if (!(transport = u->device->transports[i]))
1934 pa_assert(u->device);
1941 switch (form_factor_from_class(u->device->class_of_device)) {
2123 if (u->device->transports[*p])
2124 cp->available = transport_state_to_availability(u->device->transports[*p]->state);
2143 const pa_bluetooth_device *d = u->device;
2204 pa_assert(u->device);
2206 d = u->device;
2244 pa_log_debug("Trying to create profile %s (%s) for device %s (%s)",
2253 pa_log_debug("%s is not supported by the device or adapter", pa_bluetooth_profile_to_string(profile));
2304 if (!t->device->codec_switching_in_progress)
2375 if (d != u->device || pa_bluetooth_device_any_transport_connected(d) || d->codec_switching_in_progress)
2378 pa_log_debug("Unloading module for device %s", d->path);
2390 if (d != u->device)
2411 if (t->device == u->device)
2523 a2dp_endpoints = is_a2dp_sink ? u->device->a2dp_sink_endpoints : u->device->a2dp_source_endpoints;
2544 /* find out active codec selection from device profile */
2588 if (u->device->codec_switching_in_progress) {
2593 if (!u->device->adapter->application_registered) {
2646 if (pa_hashmap_isempty(is_a2dp_sink ? u->device->a2dp_sink_endpoints : u->device->a2dp_source_endpoints)) {
2647 pa_log_info("No device endpoints found. Codec switching not allowed.");
2651 capabilities_hashmap = pa_hashmap_get(is_a2dp_sink ? u->device->a2dp_sink_endpoints : u->device->a2dp_source_endpoints, &endpoint_conf->id);
2669 if (!pa_bluetooth_device_switch_codec(u->device, profile, capabilities_hashmap, endpoint_conf, switch_codec_cb_handler, userdata)
2670 && !u->device->codec_switching_in_progress)
2753 pa_log_error("Failed to get device path from module arguments");
2760 pa_log_error("module-bluez5-discover doesn't seem to be loaded, refusing to load module-bluez5-device");
2764 if (!(u->device = pa_bluetooth_discovery_get_device_by_path(u->discovery, path))) {
2775 u->device->autodetect_mtu = autodetect_mtu;
2783 u->device->output_rate_refresh_interval_ms = output_rate_refresh_interval_ms;
2791 u->device->avrcp_absolute_volume = avrcp_absolute_volume;
2832 pa_message_handler_register(m->core, message_handler_path, "Bluez5 device message handler",
2834 pa_log_info("Bluez5 device message handler registered at path: %s", message_handler_path);