Name: pulseaudio
Summary: Improved Linux sound server
Version: 11.1
-Release: 47
+Release: 48
Group: Multimedia/Audio
License: LGPL-2.1
URL: http://pulseaudio.org
dbus_message_iter_get_basic(&value, &dev_path);
} else if (pa_streq(key, "Configuration")) {
DBusMessageIter array;
+#ifndef BLUETOOTH_APTX_SUPPORT
a2dp_sbc_t *c;
+#endif
if (var != DBUS_TYPE_ARRAY) {
pa_log_error("Property %s of wrong type %c", key, (char)var);
#define PA_BLUETOOTH_UUID_HFP_AG "0000111f-0000-1000-8000-00805f9b34fb"
#ifdef __TIZEN_BT__
-#ifdef pa_log_debug(...)
-#undef pa_log_debug(...)
+#ifdef pa_log_debug
+#undef pa_log_debug
#define pa_log_debug(...) pa_log_level_meta(PA_LOG_INFO, __FILE__, __LINE__, __func__, __VA_ARGS__)
#endif
#endif
#include <arpa/inet.h>
#include <sbc/sbc.h>
-#ifdef BLUETOOTH_APTX_SUPPORT
-#include <dlfcn.h>
-#endif
-
#include <pulse/rtclock.h>
#include <pulse/timeval.h>
#include <pulse/utf8.h>
#include "module-bluez5-device-symdef.h"
+#ifdef BLUETOOTH_APTX_SUPPORT
+#include <dlfcn.h>
+#endif
+
PA_MODULE_AUTHOR("João Paulo Rechi Vita");
PA_MODULE_DESCRIPTION("BlueZ 5 Bluetooth audio sink and source");
PA_MODULE_VERSION(PACKAGE_VERSION);
u->write_block_size = u->write_link_mtu;
if (!pa_frame_aligned(u->read_block_size, &u->source->sample_spec)) {
+#ifdef __TIZEN__
+ pa_log_debug("Got invalid read MTU: %zu, rounding down", u->read_block_size);
+#else
pa_log_debug("Got invalid read MTU: %lu, rounding down", u->read_block_size);
+#endif
u->read_block_size = pa_frame_align(u->read_block_size, &u->source->sample_spec);
}
if (!pa_frame_aligned(u->write_block_size, &u->sink->sample_spec)) {
+#ifdef __TIZEN__
+ pa_log_debug("Got invalid write MTU: %zu, rounding down", u->write_block_size);
+#else
pa_log_debug("Got invalid write MTU: %lu, rounding down", u->write_block_size);
+#endif
u->write_block_size = pa_frame_align(u->write_block_size, &u->sink->sample_spec);
}
pa_bluetooth_profile_t *p;
const char *uuid;
void *state;
-#ifdef __TIZEN_BT__
- const char *default_profile;
-#endif
pa_assert(u);
pa_assert(u->device);
if (current_memblockq_length > requested_memblockq_length) {
/* Drop audio from queue */
buffer_correction = current_memblockq_length - requested_memblockq_length;
+#ifdef __TIZEN__
+ pa_log_info("Dropping %llu usec of audio from queue", pa_bytes_to_usec(buffer_correction, &u->sink_input->sample_spec));
+#else
pa_log_info("Dropping %lu usec of audio from queue", pa_bytes_to_usec(buffer_correction, &u->sink_input->sample_spec));
+#endif
pa_memblockq_drop(u->memblockq, buffer_correction);
} else if (current_memblockq_length < requested_memblockq_length && allow_push) {
/* Add silence to queue */
buffer_correction = requested_memblockq_length - current_memblockq_length;
+#ifdef __TIZEN__
+ pa_log_info("Adding %llu usec of silence to queue", pa_bytes_to_usec(buffer_correction, &u->sink_input->sample_spec));
+#else
pa_log_info("Adding %lu usec of silence to queue", pa_bytes_to_usec(buffer_correction, &u->sink_input->sample_spec));
+#endif
pa_memblockq_seek(u->memblockq, (int64_t)buffer_correction, PA_SEEK_RELATIVE, true);
}
}
payload = packet[1] ^ 0x80;
switch (payload) {
case PAYLOAD_TIMING_REQUEST:
+#ifdef __TIZEN__
+ pa_log_debug("Sending timing packet at %llu", rci);
+#else
pa_log_debug("Sending timing packet at %lu", rci);
+#endif
written = send_udp_timing_packet(c, data, rci);
break;
case PAYLOAD_TIMING_REPLY: