Lenovo W510 Bluetooth Controller stopped working in 3.4-rc1
not sure how to debug further. hci0 simply vanished without any trace left in dmesg. lsusb says :
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. Bluetooth
Controller
git bisect says this one is the evil one:
d7b7e79688c07b445bc52adfedf9a176be156f4b Bluetooth: Set supported
settings based on enabled HS and/or LE
although i'm not sure if that is true, so here's the complete bisect log:
git bisect start '--' 'net/bluetooth'
git bisect bad dd775ae2549217d3ae09363e3edb305d0fa19928 git bisect good b01543dfe67bb1d191998e90d20534dc354de059 git bisect good 2f39cdb7a270da24532734dfdfd10c490be981c4 git bisect bad 7770c4aacaf34fb69cb2acfb7469e9b4e34f1674 git bisect bad 1b009c982482ee0e4cbabcd9bdae690a29119ede git bisect bad cacaf52f51697f832a26e8fdaa7b8e85785085da git bisect good 801f13bd8ecc58f2cf42ec602a2b5db10fc5a132 git bisect bad d930650b59be72342bc373ef52006ca99c1dd09e git bisect bad 4b95a24ce12c4545fd7d2e3075841dc3119d1d71
i guess what i should try is to add any of these parameters when loading the module, but that doesn't seem to work:
[ 179.793014] btusb: Unknown parameter `enable_hs'
grep enable_hs ./drivers/bluetooth/btusb.ko confirms there is no such string.
thanks
Hi aep,
Quoted 23 lines · aep
not sure how to debug further. hci0 simply vanished without any trace left in dmesg.
lsusb says :
Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. Bluetooth
Controller
git bisect says this one is the evil one:d7b7e79688c07b445bc52adfedf9a176be156f4b Bluetooth: Setsupported settings based on enabled HS and/or LE
although i'm not sure if that is true, so here's the complete bisect log:git bisect start '--' 'net/bluetooth'
git bisect baddd775ae2549217d3ae09363e3edb305d0fa19928git bisect goodb01543dfe67bb1d191998e90d20534dc354de059git bisect good2f39cdb7a270da24532734dfdfd10c490be981c4git bisect bad7770c4aacaf34fb69cb2acfb7469e9b4e34f1674git bisect bad1b009c982482ee0e4cbabcd9bdae690a29119edegit bisect badcacaf52f51697f832a26e8fdaa7b8e85785085dagit bisect good801f13bd8ecc58f2cf42ec602a2b5db10fc5a132git bisect badd930650b59be72342bc373ef52006ca99c1dd09egit bisect bad4b95a24ce12c4545fd7d2e3075841dc3119d1d71
Quoted 8 lines
i guess what i should try is to add any of these parameters when loading the module,
but that doesn't seem to work:[ 179.793014] btusb: Unknown parameter `enable_hs'grep
enable_hs./drivers/bluetooth/btusb.koconfirms there is no such string.
I don't think that commit or that module parameter has anything to do with this. What user space version are you using? What do you mean by "vanished without any trace"? Does hciconfig -a or hciconfig hci0 not show anything? If this is related to mgmt being now enabled by default could you try running user space with "bluetoothd -P mgmtops"?
Johan
Quoted 2 lines · Johan Hedberg
I don't think that commit or that module parameter has anything to do with this.
Actually, i didn't respond again due to the embarrassing fact that i added the parameter to the wrong module. After adding bluetooth.enable_hs=1 to the kernel commandline (bluetooth is compiled in here), it worked again.
Quoted 1 line
What user space version are you using?
bluez version 4.98
Quoted 3 lines
What do you mean by
"vanished without any trace"? Does hciconfig -a or hciconfig hci0 not show anything?
no, and no, and neither anything in dmesg other then that the module was loaded.
Quoted 2 lines
If this is related to mgmt being now enabled by default could you try running user space with "bluetoothd -P mgmtops"?
Not sure if that does any good, since adding the parameter did the job, and my /usr/lib/bluetooth/plugins/ is empty. Let me know if you still think this helps debugging, then i'll try later.
thanks
Hi aep,
Quoted 6 lines · aep
Quoted 2 lines
If this is related to mgmt being now enabled by default could you try running user space with "bluetoothd -P mgmtops"?
Not sure if that does any good, since adding the parameter did the job, and my
/usr/lib/bluetooth/plugins/is empty.
Let me know if you still think this helps debugging, then i'll try later.
BlueZ plugins by default are "built-in", i.e. they are linked inside the bluetoothd binary. But even built-in plugins can be disabled with -P.
What Johan is suggesting is to disable the mgmtops plugin so that hciops is used instead. If this works, it is due to a known regression which happens with incompatible userspace tools and kernel versions.
Fortunately, a proper fix is on the way for the next upstream release. So you can use this workaround for now.
Best Regards,
Signature · 3 lines
Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil
AVRCP Passthrough Commands issue with Kenwood Car stereo
Hi All,
My apologies if this isn't the correct list for this post - I couldn't find a bluetooth "users" list.
I have an Samsung Galaxy SII mobile phone running the latest Cyanogenmod Android build. The phone has an issue where the Bluetooth audio stream doesn't stream properly after the phone is paired to my Subaru (Kenwood) car stereo.
Once the phone is paired - the music will attempt to start playing - but appears to get stuck in a play/pause loop - when the stereo will play about a 1/10 of a second of sound, then pause for a second, and then play another spurt of music etc. The car stereo status icon flicks between play & pause whilst this is occurring (although the music player on the phone just shows the track as playing). I have a debug log of the events below. The Kenwood used to work properly with the older Android builds of CM7 - my understanding is that the latest release now uses AVRCP V1.3 which may have broken something?
Whilst I'm not a developer - the issue I'm having appears to be related to issues in this post?? : http://www.spinics.net/lists/linux-bluetooth/msg22010.html
In the interests of brevity, if anyone is able to assist I have posted a more substantial information of the issue here : http://forum.xda-developers.com/showpost.php?p=24790310&postcount=24310 - along with further logs.
Thanks in advance for your time & assistance
Cheers, Mike
#############################################################################################
--------- beginning of /dev/log/system
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4175e3a8
--------- beginning of /dev/log/main
Device property changed: 00:06:F7:EB:90:6F property: Connected value: true
Headset=false; Bluetooth=false
Accepting HF connection.
Successful accept() on AG socket 84: new socket 89, address 00:06:F7:EB:90:6F, RFCOMM channel 10
connect notification!
Incoming connection from handsfree 00:06:F7:EB:90:6F on channel 10
Incoming rfcomm (handsfree) connection from 00:06:F7:EB:90:6Fon channel 10
Entering IncomingHandsfree state with: 2
handleIncomingConnection:2:true
Device: 00:06:F7:EB:90:6F Headset state0 -> 1CONNECTION_STATE_CHANGE: 00:06:F7:EB:90:6F: 0 -> 1
onProfileStateChanged: profile HEADSET newProfileState 1
initializeNativeDataNative: ALREADY CONNECTED!
Rfcomm connected
Device: 00:06:F7:EB:90:6F Headset state1 -> 2
Saved priority 00:06:F7:EB:90:6F = 1000CONNECTION_STATE_CHANGE: 00:06:F7:EB:90:6F: 1 -> 2setDeviceConnectionState() device: 20, state 1, address 00:06:F7:EB:90:6FgetDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2getDeviceForStrategy() strategy 4, device 2AudioPolicyManager::getDeviceForInputSourceNotification input:0x100000 mPhoneState:0AudioHardware::setParameters(keyValuePairs="routing=1048576")
### setDeivceInCall devices 1048576, force = 1AudioHardware::setDevices(devices=00100000h, mask=C3FC0000h)
### setDeivceInCall = 00100000h mEnabledDualMic 1AudioHardware::setParameters(keyValuePairs="bt_headset_name=CAR PHONE;bt_headset_nrec=on")
setBluetoothNrEcOff(false)
Entering ACL Connected state with: 102
onProfileStateChanged: profile HEADSET newProfileState 2GC_CONCURRENT freed 1089K, 13% free 13747K/15687K, paused 3ms+12msAudioHardware::setParameters(keyValuePairs="bt_headset_nrec=off")
setBluetoothNrEcOff(true)
A2DP: onSinkPropertyChanged newState is: 1mPlayingA2dpDevice: null
A2DP state : device: 00:06:F7:EB:90:6F State:0->1agent_event_filter: Received method org.bluez.Agent:Authorize
First check pass for incoming A2DP / AVRCP connection from 00:06:F7:EB:90:6F
Entering IncomingA2dp state with: 4
handleIncomingConnection:4:true
allowIncomingConnect: A2DP: 00:06:F7:EB:90:6F:trueonAgentAuthorize(/org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F, 0000110d-0000-1000-8000-00805f9b34fb) = true
onProfileStateChanged: profile A2DP newProfileState 1
No input device configuration file found for device 'AVRCP'.
New device: id=10, fd=193, path='/dev/input/event9', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false Device added: id=10, name='AVRCP', sources=0x00000101
onGetPlayStatusRequest
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: nullsetDeviceConnectionState() device: 80, state 1, address 00:06:F7:EB:90:6Fa2dp_init rate: 44100 channels: 2
A2DP state : device: 00:06:F7:EB:90:6F State:1->2
sendMetaData /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6Fa2dp_thread startedandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsebluetooth_init
Meta data info is trackname: Unknown artist: Unknown
mMediaNumber: 0 mediaCount 0
mPostion 0 album: Unknownduration 0
AudioFlinger's thread 0x160be70 ready to run
AudioFlinger's thread 0x16019f0 ready to runandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsegetDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 80a2dp_stopgetDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 1, device 80getDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80getDeviceForStrategy() strategy 4, device 2AudioHardware::setParameters(keyValuePairs="A2dpSuspended=false")
Entering ACL Connected state with: 102
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 0
onProfileStateChanged: profile A2DP newProfileState 2GC_CONCURRENT freed 404K, 16% free 9488K/11207K, paused 2ms+3ms
Removing device '/dev/input/event9' due to inotify event
Removed device: path=/dev/input/event9 name=AVRCP id=10 fd=193 classes=0x80000001
Device removed: id=10, name='AVRCP', sources=0x00000101
A2DP: onSinkPropertyChanged newState is: 0mPlayingA2dpDevice: nullsetDeviceConnectionState() device: 80, state 0, address 00:06:F7:EB:90:6FsetStreamMute() stream 1, mute 1, output 1, mMuteCount 0setStreamMute() stream 3, mute 1, output 1, mMuteCount 0setStreamMute() stream 9, mute 1, output 1, mMuteCount 0setStreamMute() stream 10, mute 1, output 1, mMuteCount 0setStreamMute() stream 12, mute 1, output 1, mMuteCount 0setStreamMute() stream 13, mute 1, output 1, mMuteCount 0setStreamMute() stream 14, mute 1, output 1, mMuteCount 0setStreamMute() stream 1, mute 0, output 1, mMuteCount 1setStreamMute() stream 3, mute 0, output 1, mMuteCount 1setStreamMute() stream 9, mute 0, output 1, mMuteCount 1setStreamMute() stream 10, mute 0, output 1, mMuteCount 1setStreamMute() stream 12, mute 0, output 1, mMuteCount 1setStreamMute() stream 13, mute 0, output 1, mMuteCount 1setStreamMute() stream 14, mute 0, output 1, mMuteCount 1getDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2
A2DP state : device: 00:06:F7:EB:90:6F State:2->0a2dp_cleanupbluetooth_closea2dp_thread finishedgetDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2getDeviceForStrategy() strategy 4, device 2
Entering IncomingA2dp state with: 53
Entering ACL Connected state with: 102
onProfileStateChanged: profile A2DP newProfileState 0
Start proc com.android.music for broadcast com.android.music/.MediaButtonIntentReceiver: pid=3613 uid=10025 gids={3003, 1015}
Turning on JNI app bug workarounds for target SDK version 9...
Headset=false; Bluetooth=false
Remote Control registerMediaButtonIntent() for PendingIntent{417953c0: PendingIntentRecord{416998c8 com.android.music broadcastIntent}}
Attempting to allocate OMX node 'OMX.google.mp3.decoder'
Successfully allocated OMX node 'OMX.google.mp3.decoder'
New audio session: 7
restored queue, currently at position 18912/110420 (requested 18912)GC_CONCURRENT freed 331K, 5% free 9218K/9671K, paused 1ms+5ms
Meta data info is trackname: On The Road Again artist: FourPlay
mMediaNumber: 8079 mediaCount 0
mPostion 0 album: TheJoyOfduration 0
failed to extract an album art
failed to extract an album artGC_FOR_ALLOC freed 105K, 5% free 9196K/9671K, paused 21ms
Grow heap (frag case) to 9.447MB for 367252-byte allocationGC_FOR_ALLOC freed <1K, 5% free 9554K/10055K, paused 13msGC_FOR_ALLOC freed <1K, 5% free 9553K/10055K, paused 13ms
Grow heap (frag case) to 9.696MB for 262160-byte allocationGC_FOR_ALLOC freed <1K, 6% free 9809K/10375K, paused 11ms
Selected configuration: speaker
Invalid argument error in setParameter(1000, (short) 10000) == -4
A2DP: onSinkPropertyChanged newState is: 1mPlayingA2dpDevice: null
A2DP state : device: 00:06:F7:EB:90:6F State:0->1agent_event_filter: Received method org.bluez.Agent:Authorize
First check pass for incoming A2DP / AVRCP connection from 00:06:F7:EB:90:6F
Entering IncomingA2dp state with: 4
handleIncomingConnection:4:true
onProfileStateChanged: profile A2DP newProfileState 1
allowIncomingConnect: A2DP: 00:06:F7:EB:90:6F:trueonAgentAuthorize(/org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F, 0000110d-0000-1000-8000-00805f9b34fb) = true
No input device configuration file found for device 'AVRCP'.
New device: id=11, fd=193, path='/dev/input/event9', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false Device added: id=11, name='AVRCP', sources=0x00000101
onGetPlayStatusRequest
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: nullsetDeviceConnectionState() device: 80, state 1, address 00:06:F7:EB:90:6Fa2dp_init rate: 44100 channels: 2
A2DP state : device: 00:06:F7:EB:90:6F State:1->2
sendMetaData /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F
Meta data info is trackname: On The Road Again artist: FourPlaya2dp_thread startedandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsebluetooth_init
mMediaNumber: 8079 mediaCount 0
mPostion 0 album: TheJoyOfduration 0
AudioFlinger's thread 0x1615040 ready to run
AudioFlinger's thread 0x1614e98 ready to runandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsegetDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 80a2dp_stopgetDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80moveEffectChain_l() effect chain for session 7 not on source thread 0x15ff100moveEffectChain_l() effect chain for session 7 not on source thread 0x15ff100moveEffectChain_l() effect chain for session 7 not on source thread 0x15ff100getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 0getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 1, device 80getDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80getDeviceForStrategy() strategy 4, device 2AudioHardware::setParameters(keyValuePairs="A2dpSuspended=false")
Entering ACL Connected state with: 102
onProfileStateChanged: profile A2DP newProfileState 2GC_CONCURRENT freed 389K, 16% free 9521K/11207K, paused 2ms+2ms
AudioFocus requestAudioFocus() from android.media.AudioManager@4132b3d0com.android.music.MediaPlaybackService$3@4132a2b8
Remote Control registerMediaButtonIntent() for PendingIntent{41687a90: PendingIntentRecord{416998c8 com.android.music broadcastIntent}}startOutput() output 12, stream 3, session 7android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falsegetDeviceForStrategy() strategy 0, device 80
failed to extract an album art
failed to extract an album artbluetooth_configure
Received BT_RESPONSE - BT_GET_CAPABILITIES
Received BT_RESPONSE - BT_OPENbluetooth_a2dp_hw_params sending configuration:channel_mode: JOINT STEREO
frequency: 44100allocation_method: LOUDNESS
subbands: 8block_length: 16min_bitpool: 2max_bitpool: 53
Received BT_RESPONSE - BT_SET_CONFIGURATION
MTU: 895frame_duration: 2902 us
allocation=0
subbands=1
blocks=3
bitpool=53bluetooth_startGC_FOR_ALLOC freed 389K, 10% free 9440K/10375K, paused 32ms
PlayState changed 1
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 1GC_CONCURRENT freed 4K, 6% free 9828K/10375K, paused 1ms+6ms
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00006e00, server=00004600
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
write blocked for 1079 msecs, 1 delayed writes, thread 0x1614e98
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11bluetooth_start_out_buf_thread_func: a2dp_write failed (-110)
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0000dc00, server=0000b400
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00014a00, server=00012200
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)
write blocked for 943 msecs, 6 delayed writes, thread 0x1614e98bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0001b800, server=00019000
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00022600, server=0001fe00
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11GC_CONCURRENT freed 372K, 15% free 9537K/11207K, paused 2ms+3ms_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00029400, server=00026c00
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
write blocked for 1136 msecs, 11 delayed writes, thread 0x1614e98
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00030200, server=0002da00
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00037000, server=00034800
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)
write blocked for 941 msecs, 16 delayed writes, thread 0x1614e98bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0003de00, server=0003b600
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00044c00, server=00042400
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0004ba00, server=00049200
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
write blocked for 1121 msecs, 21 delayed writes, thread 0x1614e98
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_startGC_CONCURRENT freed 754K, 11% free 14056K/15687K, paused 10ms+5ms
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00052800, server=00050000
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00059600, server=00056e00
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAMa2dp_stopbluetooth_stop
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11GC_CONCURRENT freed 347K, 15% free 9577K/11207K, paused 2ms+4ms
write blocked for 941 msecs, 26 delayed writes, thread 0x1614e98_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00060400, server=0005dc00
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: nulla2dp_stopbluetooth_stop
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
AVRCP Passthrough Commands issue with Kenwood Car stereo
Hi All,
My apologies if this isn't the correct list for this post - I couldn't find a bluetooth "users" list.
I have an Samsung Galaxy SII mobile phone running the latest Cyanogenmod Android build. The phone has an issue where the Bluetooth audio stream doesn't stream properly after the phone is paired to my Subaru (Kenwood) car stereo.
Once the phone is paired - the music will attempt to start playing - but appears to get stuck in a play/pause loop - when the stereo will play about a 1/10 of a second of sound, then pause for a second, and then play another spurt of music etc. The car stereo status icon flicks between play & pause whilst this is occurring (although the music player on the phone just shows the track as playing). I have a debug log of the events below. The Kenwood used to work properly with the older Android builds of CM7 - my understanding is that the latest release now uses AVRCP V1.3 which may have broken something?
Whilst I'm not a developer - the issue I'm having appears to be related to issues in this post?? : http://www.spinics.net/lists/linux-bluetooth/msg22010.html
In the interests of brevity, if anyone is able to assist I have posted a more substantial information of the issue here : http://forum.xda-developers.com/showpost.php?p=24790310&postcount=24310 - along with further logs.
Thanks in advance for your time & assistance
Cheers, Mike
#############################################################################################
--------- beginning of /dev/log/system
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4175e3a8
--------- beginning of /dev/log/main
Device property changed: 00:06:F7:EB:90:6F property: Connected value: true
Headset=false; Bluetooth=false
Accepting HF connection.
Successful accept() on AG socket 84: new socket 89, address 00:06:F7:EB:90:6F, RFCOMM channel 10
connect notification!
Incoming connection from handsfree 00:06:F7:EB:90:6F on channel 10
Incoming rfcomm (handsfree) connection from 00:06:F7:EB:90:6Fon channel 10
Entering IncomingHandsfree state with: 2
handleIncomingConnection:2:true
Device: 00:06:F7:EB:90:6F Headset state0 -> 1CONNECTION_STATE_CHANGE: 00:06:F7:EB:90:6F: 0 -> 1
onProfileStateChanged: profile HEADSET newProfileState 1
initializeNativeDataNative: ALREADY CONNECTED!
Rfcomm connected
Device: 00:06:F7:EB:90:6F Headset state1 -> 2
Saved priority 00:06:F7:EB:90:6F = 1000CONNECTION_STATE_CHANGE: 00:06:F7:EB:90:6F: 1 -> 2setDeviceConnectionState() device: 20, state 1, address 00:06:F7:EB:90:6FgetDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2getDeviceForStrategy() strategy 4, device 2AudioPolicyManager::getDeviceForInputSourceNotification input:0x100000 mPhoneState:0AudioHardware::setParameters(keyValuePairs="routing=1048576")
### setDeivceInCall devices 1048576, force = 1AudioHardware::setDevices(devices=00100000h, mask=C3FC0000h)
### setDeivceInCall = 00100000h mEnabledDualMic 1AudioHardware::setParameters(keyValuePairs="bt_headset_name=CAR PHONE;bt_headset_nrec=on")
setBluetoothNrEcOff(false)
Entering ACL Connected state with: 102
onProfileStateChanged: profile HEADSET newProfileState 2GC_CONCURRENT freed 1089K, 13% free 13747K/15687K, paused 3ms+12msAudioHardware::setParameters(keyValuePairs="bt_headset_nrec=off")
setBluetoothNrEcOff(true)
A2DP: onSinkPropertyChanged newState is: 1mPlayingA2dpDevice: null
A2DP state : device: 00:06:F7:EB:90:6F State:0->1agent_event_filter: Received method org.bluez.Agent:Authorize
First check pass for incoming A2DP / AVRCP connection from 00:06:F7:EB:90:6F
Entering IncomingA2dp state with: 4
handleIncomingConnection:4:true
allowIncomingConnect: A2DP: 00:06:F7:EB:90:6F:trueonAgentAuthorize(/org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F, 0000110d-0000-1000-8000-00805f9b34fb) = true
onProfileStateChanged: profile A2DP newProfileState 1
No input device configuration file found for device 'AVRCP'.
New device: id=10, fd=193, path='/dev/input/event9', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false Device added: id=10, name='AVRCP', sources=0x00000101
onGetPlayStatusRequest
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: nullsetDeviceConnectionState() device: 80, state 1, address 00:06:F7:EB:90:6Fa2dp_init rate: 44100 channels: 2
A2DP state : device: 00:06:F7:EB:90:6F State:1->2
sendMetaData /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6Fa2dp_thread startedandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsebluetooth_init
Meta data info is trackname: Unknown artist: Unknown
mMediaNumber: 0 mediaCount 0
mPostion 0 album: Unknownduration 0
AudioFlinger's thread 0x160be70 ready to run
AudioFlinger's thread 0x16019f0 ready to runandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsegetDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 80a2dp_stopgetDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 1, device 80getDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80getDeviceForStrategy() strategy 4, device 2AudioHardware::setParameters(keyValuePairs="A2dpSuspended=false")
Entering ACL Connected state with: 102
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 0
onProfileStateChanged: profile A2DP newProfileState 2GC_CONCURRENT freed 404K, 16% free 9488K/11207K, paused 2ms+3ms
Removing device '/dev/input/event9' due to inotify event
Removed device: path=/dev/input/event9 name=AVRCP id=10 fd=193 classes=0x80000001
Device removed: id=10, name='AVRCP', sources=0x00000101
A2DP: onSinkPropertyChanged newState is: 0mPlayingA2dpDevice: nullsetDeviceConnectionState() device: 80, state 0, address 00:06:F7:EB:90:6FsetStreamMute() stream 1, mute 1, output 1, mMuteCount 0setStreamMute() stream 3, mute 1, output 1, mMuteCount 0setStreamMute() stream 9, mute 1, output 1, mMuteCount 0setStreamMute() stream 10, mute 1, output 1, mMuteCount 0setStreamMute() stream 12, mute 1, output 1, mMuteCount 0setStreamMute() stream 13, mute 1, output 1, mMuteCount 0setStreamMute() stream 14, mute 1, output 1, mMuteCount 0setStreamMute() stream 1, mute 0, output 1, mMuteCount 1setStreamMute() stream 3, mute 0, output 1, mMuteCount 1setStreamMute() stream 9, mute 0, output 1, mMuteCount 1setStreamMute() stream 10, mute 0, output 1, mMuteCount 1setStreamMute() stream 12, mute 0, output 1, mMuteCount 1setStreamMute() stream 13, mute 0, output 1, mMuteCount 1setStreamMute() stream 14, mute 0, output 1, mMuteCount 1getDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2
A2DP state : device: 00:06:F7:EB:90:6F State:2->0a2dp_cleanupbluetooth_closea2dp_thread finishedgetDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 1, device 1getDeviceForStrategy() strategy 2, device 2getDeviceForStrategy() strategy 0, device 2getDeviceForStrategy() strategy 3, device 2getDeviceForStrategy() strategy 4, device 2
Entering IncomingA2dp state with: 53
Entering ACL Connected state with: 102
onProfileStateChanged: profile A2DP newProfileState 0
Start proc com.android.music for broadcast com.android.music/.MediaButtonIntentReceiver: pid=3613 uid=10025 gids={3003, 1015}
Turning on JNI app bug workarounds for target SDK version 9...
Headset=false; Bluetooth=false
Remote Control registerMediaButtonIntent() for PendingIntent{417953c0: PendingIntentRecord{416998c8 com.android.music broadcastIntent}}
Attempting to allocate OMX node 'OMX.google.mp3.decoder'
Successfully allocated OMX node 'OMX.google.mp3.decoder'
New audio session: 7
restored queue, currently at position 18912/110420 (requested 18912)GC_CONCURRENT freed 331K, 5% free 9218K/9671K, paused 1ms+5ms
Meta data info is trackname: On The Road Again artist: FourPlay
mMediaNumber: 8079 mediaCount 0
mPostion 0 album: TheJoyOfduration 0
failed to extract an album art
failed to extract an album artGC_FOR_ALLOC freed 105K, 5% free 9196K/9671K, paused 21ms
Grow heap (frag case) to 9.447MB for 367252-byte allocationGC_FOR_ALLOC freed <1K, 5% free 9554K/10055K, paused 13msGC_FOR_ALLOC freed <1K, 5% free 9553K/10055K, paused 13ms
Grow heap (frag case) to 9.696MB for 262160-byte allocationGC_FOR_ALLOC freed <1K, 6% free 9809K/10375K, paused 11ms
Selected configuration: speaker
Invalid argument error in setParameter(1000, (short) 10000) == -4
A2DP: onSinkPropertyChanged newState is: 1mPlayingA2dpDevice: null
A2DP state : device: 00:06:F7:EB:90:6F State:0->1agent_event_filter: Received method org.bluez.Agent:Authorize
First check pass for incoming A2DP / AVRCP connection from 00:06:F7:EB:90:6F
Entering IncomingA2dp state with: 4
handleIncomingConnection:4:true
onProfileStateChanged: profile A2DP newProfileState 1
allowIncomingConnect: A2DP: 00:06:F7:EB:90:6F:trueonAgentAuthorize(/org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F, 0000110d-0000-1000-8000-00805f9b34fb) = true
No input device configuration file found for device 'AVRCP'.
New device: id=11, fd=193, path='/dev/input/event9', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false Device added: id=11, name='AVRCP', sources=0x00000101
onGetPlayStatusRequest
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: nullsetDeviceConnectionState() device: 80, state 1, address 00:06:F7:EB:90:6Fa2dp_init rate: 44100 channels: 2
A2DP state : device: 00:06:F7:EB:90:6F State:1->2
sendMetaData /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F
Meta data info is trackname: On The Road Again artist: FourPlaya2dp_thread startedandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsebluetooth_init
mMediaNumber: 8079 mediaCount 0
mPostion 0 album: TheJoyOfduration 0
AudioFlinger's thread 0x1615040 ready to run
AudioFlinger's thread 0x1614e98 ready to runandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 14
isSeparatedStream: falsegetDeviceForStrategy() strategy 4, device 2getDeviceForStrategy() strategy 1, device 80a2dp_stopgetDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80moveEffectChain_l() effect chain for session 7 not on source thread 0x15ff100moveEffectChain_l() effect chain for session 7 not on source thread 0x15ff100moveEffectChain_l() effect chain for session 7 not on source thread 0x15ff100getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 0getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 1, device 80getDeviceForStrategy() strategy 2, device 82getDeviceForStrategy() strategy 0, device 80getDeviceForStrategy() strategy 3, device 80getDeviceForStrategy() strategy 4, device 2AudioHardware::setParameters(keyValuePairs="A2dpSuspended=false")
Entering ACL Connected state with: 102
onProfileStateChanged: profile A2DP newProfileState 2GC_CONCURRENT freed 389K, 16% free 9521K/11207K, paused 2ms+2ms
AudioFocus requestAudioFocus() from android.media.AudioManager@4132b3d0com.android.music.MediaPlaybackService$3@4132a2b8
Remote Control registerMediaButtonIntent() for PendingIntent{41687a90: PendingIntentRecord{416998c8 com.android.music broadcastIntent}}startOutput() output 12, stream 3, session 7android::AudioSystem::isSeparatedStream(audio_stream_type_t) called!audio_stream_type_t: 3
isSeparatedStream: falsegetDeviceForStrategy() strategy 0, device 80
failed to extract an album art
failed to extract an album artbluetooth_configure
Received BT_RESPONSE - BT_GET_CAPABILITIES
Received BT_RESPONSE - BT_OPENbluetooth_a2dp_hw_params sending configuration:channel_mode: JOINT STEREO
frequency: 44100allocation_method: LOUDNESS
subbands: 8block_length: 16min_bitpool: 2max_bitpool: 53
Received BT_RESPONSE - BT_SET_CONFIGURATION
MTU: 895frame_duration: 2902 us
allocation=0
subbands=1
blocks=3
bitpool=53bluetooth_startGC_FOR_ALLOC freed 389K, 10% free 9440K/10375K, paused 32ms
PlayState changed 1
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 1GC_CONCURRENT freed 4K, 6% free 9828K/10375K, paused 1ms+6ms
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00006e00, server=00004600
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
write blocked for 1079 msecs, 1 delayed writes, thread 0x1614e98
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11bluetooth_start_out_buf_thread_func: a2dp_write failed (-110)
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0000dc00, server=0000b400
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00014a00, server=00012200
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)
write blocked for 943 msecs, 6 delayed writes, thread 0x1614e98bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0001b800, server=00019000
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00022600, server=0001fe00
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11GC_CONCURRENT freed 372K, 15% free 9537K/11207K, paused 2ms+3ms_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00029400, server=00026c00
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
write blocked for 1136 msecs, 11 delayed writes, thread 0x1614e98
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00030200, server=0002da00
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00037000, server=00034800
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)
write blocked for 941 msecs, 16 delayed writes, thread 0x1614e98bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0003de00, server=0003b600
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00044c00, server=00042400
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=0004ba00, server=00049200
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
write blocked for 1121 msecs, 21 delayed writes, thread 0x1614e98
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_startGC_CONCURRENT freed 754K, 11% free 14056K/15687K, paused 10ms+5ms
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00052800, server=00050000
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10a2dp_stopbluetooth_stop
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00059600, server=00056e00
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAMa2dp_stopbluetooth_stop
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: null
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11GC_CONCURRENT freed 347K, 15% free 9577K/11207K, paused 2ms+4ms
write blocked for 941 msecs, 26 delayed writes, thread 0x1614e98_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
obtainBuffer timed out (is the CPU pegged?) 0x1626980 user=00060400, server=0005dc00
Received BT_RESPONSE - BT_START_STREAM
Received BT_RESPONSE - BT_NEW_STREAM
A2DP: onSinkPropertyChanged newState is: 10mPlayingA2dpDevice: nulla2dp_stopbluetooth_stop
A2DP Playing state : device: 00:06:F7:EB:90:6F State:11->10
Received BT_RESPONSE - BT_STOP_STREAM
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: 00:06:F7:EB:90:6F
A2DP Playing state : device: 00:06:F7:EB:90:6F State:10->11_out_buf_thread_func: a2dp_write failed (-110)bluetooth_start
Re: AVRCP Passthrough Commands issue with Kenwood Car stereo
In reply to Michael McCallumQuoted 7 lines · Michael McCallum
Hi All,
My apologies if this isn't the correct list for this post - I couldn't find a bluetooth "users" list.
I have an Samsung Galaxy SII mobile phone running the latest Cyanogenmod Android build. The phone has an issue where the Bluetooth audio stream doesn't stream properly after the phone is paired to my Subaru (Kenwood) car stereo.
Once the phone is paired - the music will attempt to start playing - but appears to get stuck in a play/pause loop - when the stereo will play about a 1/10 of a second of sound, then pause for a second, and then play another spurt of music etc. The car stereo status icon flicks between play & pause whilst this is occurring (although the music player on the phone just shows the track as playing). I have a debug log of the events below. The Kenwood used to work properly with the older Android builds of CM7 - my understanding is that the latest release now uses AVRCP V1.3 which may have broken something?
As far as I know Cyanogen uses another implementation of AVRCP, not the one upstream.
Quoted 4 lines
Whilst I'm not a developer - the issue I'm having appears to be related to issues in this post?? : http://www.spinics.net/lists/linux-bluetooth/msg22010.html
In the interests of brevity, if anyone is able to assist I have posted a more substantial information of the issue here : http://forum.xda-developers.com/showpost.php?p=24790310&postcount=24310 - along with further logs.
Could you point out where is the source code for their version of BlueZ?
Lucas De Marchi
Quoted 375 lines
Thanks in advance for your time & assistance
Cheers, Mike#############################################################################################
--------- beginning of
/dev/log/system
Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4175e3a8
--------- beginning of/dev/log/main
Device property changed: 00:06:F7:EB:90:6F property: Connected value: true
Headset=false; Bluetooth=false
Accepting HF connection.
Successfulaccept()on AG socket 84: new socket 89, address 00:06:F7:EB:90:6F, RFCOMM channel 10
connect notification!
Incoming connection from handsfree 00:06:F7:EB:90:6F on channel 10
Incoming rfcomm (handsfree) connection from 00:06:F7:EB:90:6Fon channel 10
Entering IncomingHandsfree state with: 2
handleIncomingConnection:2:true
Device: 00:06:F7:EB:90:6F Headset state0 -> 1CONNECTION_STATE_CHANGE: 00:06:F7:EB:90:6F: 0 -> 1
onProfileStateChanged: profile HEADSET newProfileState 1
initializeNativeDataNative: ALREADY CONNECTED!
Rfcomm connected
Device: 00:06:F7:EB:90:6F Headset state1 -> 2
Saved priority 00:06:F7:EB:90:6F = 1000CONNECTION_STATE_CHANGE: 00:06:F7:EB:90:6F: 1 -> 2setDeviceConnectionState()device: 20, state 1, address 00:06:F7:EB:90:6FgetDeviceForStrategy()strategy 4, device 2getDeviceForStrategy()strategy 1, device 1getDeviceForStrategy()strategy 2, device 2getDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 3, device 2getDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 1, device 1getDeviceForStrategy()strategy 2, device 2getDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 3, device 2getDeviceForStrategy()strategy 4, device 2AudioPolicyManager::getDeviceForInputSourceNotificationinput:0x100000 mPhoneState:0AudioHardware::setParameters(keyValuePairs="routing=1048576")
### setDeivceInCall devices 1048576, force = 1AudioHardware::setDevices(devices=00100000h, mask=C3FC0000h)
### setDeivceInCall = 00100000h mEnabledDualMic 1AudioHardware::setParameters(keyValuePairs="bt_headset_name=CAR PHONE;bt_headset_nrec=on")
setBluetoothNrEcOff(false)
Entering ACL Connected state with: 102
onProfileStateChanged: profile HEADSET newProfileState 2GC_CONCURRENTfreed 1089K, 13% free 13747K/15687K, paused 3ms+12msAudioHardware::setParameters(keyValuePairs="bt_headset_nrec=off")
setBluetoothNrEcOff(true)
A2DP: onSinkPropertyChanged newState is: 1mPlayingA2dpDevice: null
A2DP state : device: 00:06:F7:EB:90:6F State:0->1agent_event_filter: Received method org.bluez.Agent:Authorize
First check pass for incoming A2DP / AVRCP connection from 00:06:F7:EB:90:6F
Entering IncomingA2dp state with: 4
handleIncomingConnection:4:true
allowIncomingConnect: A2DP: 00:06:F7:EB:90:6F:trueonAgentAuthorize(/org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F, 0000110d-0000-1000-8000-00805f9b34fb)= true
onProfileStateChanged: profile A2DP newProfileState 1
No input device configuration file found for device 'AVRCP'.
New device: id=10, fd=193, path='/dev/input/event9', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false Device added: id=10, name='AVRCP', sources=0x00000101
onGetPlayStatusRequest
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: nullsetDeviceConnectionState()device: 80, state 1, address 00:06:F7:EB:90:6Fa2dp_initrate: 44100 channels: 2
A2DP state : device: 00:06:F7:EB:90:6F State:1->2
sendMetaData /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6Fa2dp_threadstartedandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 14
isSeparatedStream: falsebluetooth_init
Meta data info is trackname: Unknown artist: Unknown
mMediaNumber: 0 mediaCount 0
mPostion 0 album: Unknownduration 0
AudioFlinger's thread0x160be70ready to run
AudioFlinger's thread0x16019f0ready to runandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 14
isSeparatedStream: falsegetDeviceForStrategy()strategy 4, device 2getDeviceForStrategy()strategy 1, device 80a2dp_stopgetDeviceForStrategy()strategy 2, device 82getDeviceForStrategy()strategy 0, device 80getDeviceForStrategy()strategy 0, device 80getDeviceForStrategy()strategy 3, device 80getDeviceForStrategy()strategy 0, device 80getDeviceForStrategy()strategy 1, device 80getDeviceForStrategy()strategy 2, device 82getDeviceForStrategy()strategy 0, device 80getDeviceForStrategy()strategy 3, device 80getDeviceForStrategy()strategy 4, device 2AudioHardware::setParameters(keyValuePairs="A2dpSuspended=false")
Entering ACL Connected state with: 102
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 0
onProfileStateChanged: profile A2DP newProfileState 2GC_CONCURRENTfreed 404K, 16% free 9488K/11207K, paused 2ms+3ms
Removing device '/dev/input/event9' due to inotify event
Removed device: path=/dev/input/event9 name=AVRCP id=10 fd=193 classes=0x80000001
Device removed: id=10, name='AVRCP', sources=0x00000101
A2DP: onSinkPropertyChanged newState is: 0mPlayingA2dpDevice: nullsetDeviceConnectionState()device: 80, state 0, address 00:06:F7:EB:90:6FsetStreamMute()stream 1, mute 1, output 1, mMuteCount 0setStreamMute()stream 3, mute 1, output 1, mMuteCount 0setStreamMute()stream 9, mute 1, output 1, mMuteCount 0setStreamMute()stream 10, mute 1, output 1, mMuteCount 0setStreamMute()stream 12, mute 1, output 1, mMuteCount 0setStreamMute()stream 13, mute 1, output 1, mMuteCount 0setStreamMute()stream 14, mute 1, output 1, mMuteCount 0setStreamMute()stream 1, mute 0, output 1, mMuteCount 1setStreamMute()stream 3, mute 0, output 1, mMuteCount 1setStreamMute()stream 9, mute 0, output 1, mMuteCount 1setStreamMute()stream 10, mute 0, output 1, mMuteCount 1setStreamMute()stream 12, mute 0, output 1, mMuteCount 1setStreamMute()stream 13, mute 0, output 1, mMuteCount 1setStreamMute()stream 14, mute 0, output 1, mMuteCount 1getDeviceForStrategy()strategy 4, device 2getDeviceForStrategy()strategy 1, device 1getDeviceForStrategy()strategy 2, device 2getDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 3, device 2
A2DP state : device: 00:06:F7:EB:90:6F State:2->0a2dp_cleanupbluetooth_closea2dp_threadfinishedgetDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 1, device 1getDeviceForStrategy()strategy 2, device 2getDeviceForStrategy()strategy 0, device 2getDeviceForStrategy()strategy 3, device 2getDeviceForStrategy()strategy 4, device 2
Entering IncomingA2dp state with: 53
Entering ACL Connected state with: 102
onProfileStateChanged: profile A2DP newProfileState 0
Start proc com.android.music for broadcast com.android.music/.MediaButtonIntentReceiver: pid=3613 uid=10025 gids={3003, 1015}
Turning on JNI app bug workarounds for target SDK version 9...
Headset=false; Bluetooth=false
Remote ControlregisterMediaButtonIntent()for PendingIntent{417953c0: PendingIntentRecord{416998c8 com.android.music broadcastIntent}}
Attempting to allocate OMX node 'OMX.google.mp3.decoder'
Successfully allocated OMX node 'OMX.google.mp3.decoder'
New audio session: 7
restored queue, currently at position 18912/110420 (requested 18912)GC_CONCURRENTfreed 331K, 5% free 9218K/9671K, paused 1ms+5ms
Meta data info is trackname: On The Road Again artist: FourPlay
mMediaNumber: 8079 mediaCount 0
mPostion 0 album: TheJoyOfduration 0
failed to extract an album art
failed to extract an album artGC_FOR_ALLOCfreed 105K, 5% free 9196K/9671K, paused 21ms
Grow heap (frag case) to 9.447MB for 367252-byte allocationGC_FOR_ALLOCfreed <1K, 5% free 9554K/10055K, paused 13msGC_FOR_ALLOCfreed <1K, 5% free 9553K/10055K, paused 13ms
Grow heap (frag case) to 9.696MB for 262160-byte allocationGC_FOR_ALLOCfreed <1K, 6% free 9809K/10375K, paused 11ms
Selected configuration: speaker
Invalid argument error insetParameter(1000, (short) 10000)== -4
A2DP: onSinkPropertyChanged newState is: 1mPlayingA2dpDevice: null
A2DP state : device: 00:06:F7:EB:90:6F State:0->1agent_event_filter: Received method org.bluez.Agent:Authorize
First check pass for incoming A2DP / AVRCP connection from 00:06:F7:EB:90:6F
Entering IncomingA2dp state with: 4
handleIncomingConnection:4:true
onProfileStateChanged: profile A2DP newProfileState 1
allowIncomingConnect: A2DP: 00:06:F7:EB:90:6F:trueonAgentAuthorize(/org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F, 0000110d-0000-1000-8000-00805f9b34fb)= true
No input device configuration file found for device 'AVRCP'.
New device: id=11, fd=193, path='/dev/input/event9', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false Device added: id=11, name='AVRCP', sources=0x00000101
onGetPlayStatusRequest
A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: nullsetDeviceConnectionState()device: 80, state 1, address 00:06:F7:EB:90:6Fa2dp_initrate: 44100 channels: 2
A2DP state : device: 00:06:F7:EB:90:6F State:1->2
sendMetaData /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F
Meta data info is trackname: On The Road Again artist: FourPlaya2dp_threadstartedandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 14
isSeparatedStream: falsebluetooth_init
mMediaNumber: 8079 mediaCount 0
mPostion 0 album: TheJoyOfduration 0
AudioFlinger's thread0x1615040ready to run
AudioFlinger's thread0x1614e98ready to runandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 0
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 1
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 2
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 3
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 4
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 5
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 6
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 7
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 8
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 9
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 10
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 11
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 12
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 13
isSeparatedStream: falseandroid::AudioSystem::isSeparatedStream(audio_stream_type_t)called!audio_stream_type_t: 14
isSeparatedStream: falsegetDeviceForStrategy()strategy 4, device 2getDeviceForStrategy()strategy 1, device 80a2dp_stopgetDeviceForStrategy()strategy 2, device 82getDeviceForStrategy()strategy 0, device 80moveEffectChain_l()effect chain for session 7 not on source thread0x15ff100moveEffectChain_l()effect chain for session 7 not on source thread0x15ff100moveEffectChain_l()effect chain for session 7 not on source thread0x15ff100getDeviceForStrategy()strategy 0, device 80getDeviceForStrategy()strategy 3, device 80
sendEvent /org/bluez/2100/hci0/dev_00_06_F7_EB_90_6F data 0getDeviceForStrategy()strategy 0, device 80getDeviceForStrategy()strategy 1, device 80getDeviceForStrategy()strategy 2, device 82getDeviceForStrategy()strategy 0, device 80
Quoted 8 lines
getDeviceForStrategy()strategy 3, device 80getDeviceForStrategy()strategy 4, device 2AudioHardware::setParameters(keyValuePairs="A2dpSuspended=false")
Entering ACL Connected state with: 102
onProfileStateChanged: profile A2DP newProfileState 2GC_CONCURRENTfreed 389K, 16% free 9521K/11207K, paused 2ms+2ms
AudioFocusrequestAudioFocus()from android.media.AudioManager@4132b3d0com.android.music.MediaPlaybackService$3@4132a2b8 Remote ControlregisterMediaButtonIntent()for PendingIntent{41687a90: PendingIntentRecord{416998c8 com.android.music broadcastIntent}}
The issued you are facing can also be an issue with these pending intents. I don't know for sure since I don't have access to this source code.
Lucas De Marchi
heya,
Quoted 2 lines · Anderson Lizardo
What Johan is suggesting is to disable the mgmtops plugin so that hciops is used instead. If this works, it is due to a known regression
Ah, sorry, i didn't realize the difference between -p and -P.
I confirm it works again without the bluetooth.enable_hs=1 but with -P mgmtops.
thanks!