|
While changing liba2dp.so didn't seem to affect anything, also changing libaudio.so breaks the bluetooth device connection.
I/BluetoothA2dpService( 224): checkSinkSuspendState() : state = 2 prevState = 0
I/BluetoothA2dpService( 224): checkSinkSuspendState() : mTargetA2dpState = -1
I/BluetoothA2dpService( 224): checkSinkSuspendState() : initialStart = false initialSuspend = false
I/BluetoothA2dpService( 224): setSinkPriority = Auto Connect
D/BluetoothA2dpService( 224): A2DP state : device: 00:0F:F6:2C:06:15 State:0->2
E/BTLD ( 416): bta_av_link_role_ok hndl:x41 role:1, conn_audio:x1, bits:1, features:x1
W/BTLD ( 416): bta_dm_rm_cback:1, status:0
W/BTLD ( 416): new conn_srvc id:18, app_id:0
E/BTLD ( 416): Disabling LPM
E/BTLD ( 416): bta_av_start_ok suspending: 0, role:x0
I/BTL-IFS ( 416): send_ctrl_msg: [BTL_IFS CTRL] send BTLIF_DTUN_SIGNAL_EVT (CTRL) 44 pbytes (hdl 15)
E/BTL_AV_CODEC: ( 416): Not started yet!
E/BTL_AV_CODEC: ( 416): Not started yet!
E/BluetoothEventLoop.cpp( 224): event_filter: Received signal org.bluez.AudioSink:Playing from /org/bluez/433/hci0/dev_00_0F_F6_2C_06_15
E/BluetoothEventLoop.cpp( 224): event_filter: Received signal org.bluez.AudioSink:PropertyChanged from /org/bluez/433/hci0/dev_00_0F_F6_2C_06_15
E/BluetoothEventLoop.cpp( 224): event_filter: Received signal org.bluez.AudioSink:PropertyChanged from /org/bluez/433/hci0/dev_00_0F_F6_2C_06_15
I/BluetoothA2dpService( 224): checkSinkSuspendState() : state = 4 prevState = 2
I/BluetoothA2dpService( 224): checkSinkSuspendState() : mTargetA2dpState = -1
I/BluetoothA2dpService( 224): checkSinkSuspendState() : initialStart = false initialSuspend = false
D/A2DP ( 184): a2dp_init rate: 44100 channels: 2
D/A2DP ( 184): a2dp_thread started
D/A2dpAudioInterface( 184): A2dpAudioStreamOut::set 80, 0, 0, 0
D/A2dpAudioInterface( 184): setBluetoothEnabled 1
I/BluetoothA2dpService( 224): Send mute tone for remote AVDTP START
D/A2DP ( 184): bluetooth_init
E/A2DP ( 184): bt_audio_service_open failed
I/AudioFlinger( 184): AudioFlinger's thread 0x1ebf0 ready to run
I'm wondering if these files need to be built along with the ROM they're running on so that they maintain compatibility with other libraries in the system.
It looks to me like the source is broken down like this (based on the Android.mk Makefile in bluez/audio):
libaudio.so:
a2dp.c
avdtp.c
control.c
device.c
gateway.c
headset.c
ipc.c
main.c
manager.c
module-bluetooth-sink.c
sink.c
source.c
telephony-dummy.c
unix.c
liba2dp.so:
liba2dp.c
ipc.c
../sbc/sbc.c.arm
../sbc/sbc_primitives.c
../sbc/sbc_primitives_neon.c
Note that liba2dp.so refers to sbc.c.arm and not sbc.c. I don't know if sbc.c.arm is generated from sbc.c or what. I don't understand much of this yet as I'm still trying to learn the Android build.
Also, comments in the Makefile imply that libaudio.so is the A2DP plugin and liba2dp.so is used by Audioflinger. It is also possible to interpret the comments as meaning both the .so's comprise the plugin and liba2dp.so part is linked in to Audioflinger.
Anyway, not much progress yet...
|