Better attach logs after "D/A2dpAudioInterface( 890):
A2dpAudioStreamOut::set 80, 0, 0, 0", indicating seconds of activities
after you start the A2DP streaming but without audio. There usually
should be something printed out.

Losing audio would be either caused by a2dp_write failure or lengthy
pending (shown as CPU pegged, etc). BTW, can not see your Bluetooth
headset's name and media service related loggings. Did you filter them
out?

Sincerely,
Jackson


On Dec 4, 12:20 am, BHEEMSEN KULKARNI <bheems...@gmail.com> wrote:
>  Hi All,
>
> I facing issue with A2DP, I am doing audio streaming to BT headset
> (connected to phone and media audio), if I restart the board (power cycle).
>
> After power cycle, I see the BT headset connected to "phone and media
> audio", when I play the mp3 file from music player, I don’t hearing anything
> on BT headset or local speaker.
>
> If I disconnect and connect the BT headset, the audio streaming to BT
> headset works.
> Any suggestion what could be problem?
> Thanks in Advance.
>
> Please find attached logs.
> I/ARMAssembler( 907): generated
> scanline__00000077:03515104_00000000_00000000 [
>
> 33 ipp] (47 ins) at [0x3280a8:0x328164] in 122070 ns I/Process ( 1045):
> Sending signal. PID: 1045 SIG: 9 I/ActivityManager( 907): Process
> com.android.calendar (pid 1045) has died.
>
> I/ARMAssembler( 907): generated
> scanline__00000177:03515104_00001001_00000000 [
>
> 91 ipp] (114 ins) at [0x328168:0x328330] in 213623 ns D/BT HSHFP( 965):
> pulled 00:13:17:72:02:B5 off auto-connect queue D/BT HSHFP( 965): Headset
> state 0 -> 1, result = 1 D/BT HSHFP( 965): SDP UUID: TYPE_HANDSFREE I/BT
> HSHFP( 965): Created RFCOMM socket fd 44.
>
> I/BT HSHFP( 965): async connect is in progress (Operation now in progress)
> V/BluetoothEventRedirector( 1021): Received
> android.bluetooth.headset.action.STA
>
> TE_CHANGED
>
> D/CachedBluetoothDevice( 1021): onProfileStateChanged:[] D/dalvikvm( 965):
> GC freed 3954 objects / 243816 bytes in 44ms E/BluetoothEventLoop.cpp( 907):
> event_filter: Received signal org.bluez.Device:
>
> PropertyChanged from /org/bluez/958/hci0/dev_00_13_17_72_02_B5
>
> I/BT HSHFP( 965): Successful RFCOMM socket connect.
>
> D/BT HSHFP( 965): RFCOMM connection attempt took 955 ms D/BT HSHFP( 965):
> Rfcomm connected D/BT HSHFP( 965): Headset state 1 -> 2, result = 1
> V/BluetoothEventRedirector( 1021): Received
> android.bluetooth.headset.action.STA
>
> TE_CHANGED
>
> D/CachedBluetoothDevice( 1021): onProfileStateChanged:[] I/Bluetooth AT
> recv( 965): AT+BRSF=27 I/Bluetooth AT sent( 965): +BRSF: 99 I/Bluetooth AT
> sent( 965): OK I/Bluetooth AT recv( 965): AT+CIND=?
>
> I/Bluetooth AT sent( 965): +CIND:
> ("service",(0-1)),("call",(0-1)),("callsetup"
>
> ,(0-3)),("callheld",(0-2)),("signal",(0-5)),("roam",(0-1)),("battchg",(0-5) )
>
> I/Bluetooth AT sent( 965): OK
>
> I/Bluetooth AT recv( 965): AT+CIND?
>
> I/Bluetooth AT sent( 965): +CIND: 0,0,0,0,5,0,4 I/Bluetooth AT sent( 965):
> OK
>
> # I/Bluetooth AT recv( 965): AT+CMER=3, 0, 0, 1 I/Bluetooth AT sent( 965):
> OK I/Bluetooth AT recv( 965): AT+CHLD=?
>
> I/Bluetooth AT sent( 965): +CHLD: (0,1,2,3) I/Bluetooth AT sent( 965): OK
>
> #
>
> # I/Bluetooth AT recv( 965): AT+CCWA=1
>
> I/Bluetooth AT sent( 965): OK
>
> I/Bluetooth AT recv( 965): AT+NREC=0
>
> I/Bluetooth AT sent( 965): OK
>
> I/Bluetooth AT recv( 965): AT+VGS=07
>
> I/Bluetooth AT sent( 965): OK
>
> W/Process ( 907): Unable to open /proc/1045/status D/PowerManagerService(
> 907): setPowerState: mPowerState=7 newState=3 noChangeLi ghts=false
>
> D/PowerManagerService( 907): oldKeyboardBright=false newKeyboardBright=false
>
> D/PowerManagerService( 907): oldScreenBright=true newScreenBright=true
>
> D/PowerManagerService( 907): oldButtonBright=true newButtonBright=false
>
> D/PowerManagerService( 907): oldScreenOn=true newScreenOn=true
>
> D/PowerManagerService( 907): oldBatteryLow=false newBatteryLow=false
>
> D/BluetoothA2dpService( 907): Auto-connecting A2DP to sink 00:13:17:72:02:B5
> D/BluetoothA2dpService( 907): connectSink(00:13:17:72:02:B5)
> E/BluetoothEventLoop.cpp( 907): event_filter: Received signal
> org.bluez.AudioSi nk:PropertyChanged from
> /org/bluez/958/hci0/dev_00_13_17_72_02_B5
>
> D/BluetoothA2dpService( 907): A2DP state : device: 00:13:17:72:02:B5
> State:0->1
>
> V/BluetoothEventRedirector( 1021): Received
> android.bluetooth.a2dp.action.SINK_S
>
> TATE_CHANGED
>
> D/CachedBluetoothDevice( 1021): onProfileStateChanged:[]
> E/BluetoothEventLoop.cpp( 907): event_filter: Received signal
> org.bluez.AudioSi nk:Connected from
> /org/bluez/958/hci0/dev_00_13_17_72_02_B5
>
> E/BluetoothEventLoop.cpp( 907): event_filter: Received signal
> org.bluez.AudioSi nk:PropertyChanged from
> /org/bluez/958/hci0/dev_00_13_17_72_02_B5
>
> E/BluetoothEventLoop.cpp( 907): event_filter: Received signal
> org.bluez.AudioSi nk:PropertyChanged from
> /org/bluez/958/hci0/dev_00_13_17_72_02_B5
>
> D/BluetoothA2dpService( 907): A2DP state : device: 00:13:17:72:02:B5
> State:1->2
>
> V/BluetoothEventRedirector( 1021): Received
> android.bluetooth.a2dp.action.SINK_S
>
> TATE_CHANGED
>
> D/CachedBluetoothDevice( 1021): onProfileStateChanged:[]
>
> D/A2DP ( 890): a2dp_init rate: 44100 channels: 2
>
> D/A2DP ( 890): a2dp_thread started
>
> D/A2DP ( 890): bluetooth_init
>
> D/A2dpAudioInterface( 890): A2dpAudioStreamOut::set 80, 0, 0, 0
> D/A2dpAudioInterface( 890): setBluetoothEnabled 1 I/AudioFlinger( 890):
> AudioFlinger's thread 0x42d48 ready to run I/AudioFlinger( 890):
> AudioFlinger's thread 0x3c620 ready to run

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to