[Galaxy Ace S5830 General] rusart:
There is problem with routing sound to a2dp headset in CM 10.1RC4 'Stable 20130601' [androidarmv6] by [MENTION=4686683]bieltv.3[/MENTION]. Sound goes from back speacker. In RC2 it was good (only was problems with routing sound after disconnect headset, but this cured with reboot). I will post logcat later if it will be need.

---------- Post added at 05:37 PM ---------- Previous post was at 05:10 PM ----------

There is logcat for A2DP routing problem:

I/BluetoothDeviceProfileState( 587): Entering OutgoingHandsfree state with: 1

D/BluetoothService( 587): CONNECTION_STATE_CHANGE: 00:0C:78:43:07:38: 0 -> 1

W/ContextImpl( 587): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1098 android.server.BluetoothService.sendConnectionStateChange:4049 android.bluetooth.IBluetooth$Stub.onTransact:1072 android.os.Binder.execTransact:351 dalvik.system.NativeStart.run:-2

D/CachedBluetoothDevice( 3472): Command sent successfully:CONNECT Address:00:0C:78:43:07:38 Profile:HEADSET

D/BluetoothA2dpService( 587): connectSink(00:0C:78:43:07:38)

I/BluetoothProfileState( 587): Message:Entering PendingCommandState State

D/CachedBluetoothDevice( 3472): Command sent successfully:CONNECT Address:00:0C:78:43:07:38 Profile:A2DP

D/CachedBluetoothDevice( 3472): onProfileStateChanged: profile HEADSET newProfileState 1

I/BT HSHFP( 820): Created RFCOMM socket fd 36.

I/BT HSHFP( 820): async connect is in progress (Operation now in progress)

W/BackupManagerService( 587): dataChanged but no participant pkg='com.android.providers.settings' uid=1002

W/Settings( 941): Setting auto_time_zone has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.

D/HeadsetPhoneState( 820): onServiceStateChanged..for service

D/HeadsetPhoneState( 820): sendDeviceStateChanged. mService=1 mSignal=5 mRoam=0 mBatteryCharge=4

D/dalvikvm( 1001): GC_CONCURRENT freed 535K, 61% free 3062K/7716K, paused 7ms+5ms, total 47ms

W/FixedEqualizer( 1001): Starting fixed point equalizer

I/libffmpeg( 1001): Incorrect BOM value in tag COMM.

D/lastfm.db.t_scrobblerqueue( 3360): SELECT count(*) FROM t_scrobblerqueue WHERE CurrentTrack=0

D/lastfm.db.t_scrobblerqueue( 3360): Found 0 entries

D/dalvikvm( 1001): GC_CONCURRENT freed 164K, 57% free 3325K/7716K, paused 12ms+10ms, total 509ms

D/dalvikvm( 1001): WAIT_FOR_CONCURRENT_GC blocked 96ms

D/dalvikvm( 1001): GC_EXPLICIT freed 3K, 57% free 3321K/7716K, paused 5ms+5ms, total 56ms

D/dalvikvm( 1001): WAIT_FOR_CONCURRENT_GC blocked 80ms

D/dalvikvm( 1001): GC_FOR_ALLOC freed 220K, 56% free 3428K/7716K, paused 37ms, total 37ms

D/dalvikvm( 1001): GC_CONCURRENT freed 700K, 59% free 3233K/7716K, paused 4ms+12ms, total 54ms

D/dalvikvm( 1001): GC_CONCURRENT freed 524K, 60% free 3115K/7716K, paused 4ms+9ms, total 60ms

I/AudioService( 587): AudioFocus abandonAudioFocus() from android.media.AudioManager@40eeffc0com.maxmpz.audioplayer.player.PlayerService$20@4106c8e8

W/PlayerService( 1001): Poweramp Player Service leaves the scene

I/AudioHardwareMSM72XX( 106): disabling post proc features with mask 0x0000

D/BluetoothEventLoop( 587): Connected property at index : 0is :1

D/BluetoothEventLoop( 587): Connected property at index : 1is :0

D/BluetoothEventLoop( 587): Device property changed: 00:0C:78:43:07:38 property: Connected value: 0100

D/BluetoothEventLoop( 587): Device property Connected: 0100

D/BluetoothService( 587): gattAclConnected

D/BluetoothService( 587): gattAclConnected isScanInProgress ::false

D/BluetoothService( 587): ACL connected bluetooth device address::00:0C:78:43:07:38

W/ContextImpl( 587): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1098 android.server.BluetoothEventLoop.onDevicePropertyChanged:588 dalvik.system.NativeStart.run:-2 dalvik.system.NativeStart.run:-2 <bottom of call stack>

D/dalvikvm( 3360): GC_CONCURRENT freed 411K, 67% free 2591K/7716K, paused 5ms+6ms, total 47ms

I/BT HSHFP( 820): Successful RFCOMM socket connect.

I/AudioHardwareMSM72XX( 106): Using default acoustic parameters (BT 56 not in acoustic database)

I/AudioHardwareMSM72XX( 106): Routing audio to Speakerphone

I/AudioHardwareMSM72XX( 106): Routing audio to Speakerphone

D/Bluetooth HS/HF( 820): Not InDebug

D/Bluetooth HS/HF( 820): Individual Indicators are set to true by default

D/Bluetooth HS/HF( 820): Individual Indicators are set to true by default

D/Bluetooth HS/HF( 820): Individual Indicators are set to true by default

D/Bluetooth HS/HF( 820): Individual Indicators are set to true by default

D/Bluetooth HS/HF( 820): Individual Indicators are set to true by default

D/Bluetooth HS/HF( 820): Individual Indicators are set to true by default

D/Bluetooth HS/HF( 820): Individual Indicators are set to true by default

I/AudioHardwareMSM72XX( 106): Routing audio to Speakerphone

W/BluetoothHeadset( 941): headset Proxy attached to service.Phonestatechanged

D/Bluetooth HS/HF( 820): HandleMessage14

D/Bluetooth HS/HF( 820): mNumActive: 0 mNumHeld: 0 mCallState: 6

D/Bluetooth HS/HF( 820): mNumber: mType: 128

I/BluetoothProfileState( 587): Message:Entering Stable State

D/CachedBluetoothDevice( 3472): onProfileStateChanged: profile HEADSET newProfileState 2

W/AudioPolicyManager( 106): setDeviceConnectionState() invalid device: 800000

W/ContextImpl( 587): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1098 android.server.BluetoothService.sendConnectionStateChange:4049 android.bluetooth.IBluetooth$Stub.onTransact:1072 android.os.Binder.execTransact:351 dalvik.system.NativeStart.run:-2

D/BluetoothService( 587): CONNECTION_STATE_CHANGE: 00:0C:78:43:07:38: 1 -> 2

D/dalvikvm( 587): GC_CONCURRENT freed 1641K, 22% free 9206K/11696K, paused 5ms+33ms, total 394ms

D/dalvikvm( 587): WAIT_FOR_CONCURRENT_GC blocked 341ms

D/dalvikvm( 587): WAIT_FOR_CONCURRENT_GC blocked 209ms

D/dalvikvm( 587): WAIT_FOR_CONCURRENT_GC blocked 75ms

I/BluetoothDeviceProfileState( 587): Entering ACL Connected state with: 102

I/BluetoothDeviceProfileState( 587): Entering OutgoingA2dp state with: 3

D/BluetoothA2dpService( 587): A2DP state : device: 00:0C:78:43:07:38 State:0->1

I/BluetoothService( 587): Received ACTION_CONNECTION_STATE_CHANGED

W/ContextImpl( 587): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1098 android.server.BluetoothA2dpService$IntentBroadcastHandler.onConnectionStateChanged:1369 android.server.BluetoothA2dpService$IntentBroadcastHandler.handleMessage:1381 android.os.Handler.dispatchMessage:99 android.os.Looper.loop:137

D/BluetoothService( 587): setA2dpAudioActive(): false

D/BluetoothA2dpService( 587): Property change recieved for device: 00:0C:78:43:07:38

D/BluetoothA2dpService( 587): A2DP: onSinkPropertyChanged newState is: 1mPlayingA2dpDevice: null

I/BluetoothDeviceProfileState( 587): Entering ACL Connected state with: 102

V/BtOpp Service( 820): Received BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED

V/BtOpp Service( 820): device: 00:0C:78:43:07:38 newState: 1

V/BtOpp Service( 820): Mark A2DP state as not playing

D/CachedBluetoothDevice( 3472): onProfileStateChanged: profile A2DP newProfileState 1

D/dalvikvm( 1140): GC_CONCURRENT freed 384K, 53% free 3658K/7716K, paused 16ms+44ms, total 713ms

D/dalvikvm( 1140): WAIT_FOR_CONCURRENT_GC blocked 688ms

D/EventHub( 587): No input device configuration file found for device 'AVRCP'.

I/EventHub( 587): New device: id=10, fd=208, path='/dev/input/event5', name='AVRCP', classes=0x80000001, configuration='', keyLayout='/system/usr/keylayout/AVRCP.kl', keyCharacterMap='/system/usr/keychars/Generic.kcm', builtinKeyboard=false, usingSuspendBlockIoctl=false, usingClockIoctl=false

I/InputReader( 587): Device added: id=10, name='AVRCP', sources=0x00000101

D/BluetoothA2dpService( 587): Property change recieved for device: 00:0C:78:43:07:38

D/BluetoothA2dpService( 587): Property change recieved for device: 00:0C:78:43:07:38

D/BluetoothA2dpService( 587): Property change recieved for device: 00:0C:78:43:07:38

D/BluetoothA2dpService( 587): A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: null

W/AudioPolicyManagerBase( 106): checkOutputsForDevice(): No output available for device 0080

I/AudioHardwareMSM72XX( 106): Routing audio to Speakerphone

D/BluetoothA2dpService( 587): A2DP state : device: 00:0C:78:43:07:38 State:1->2

I/BluetoothProfileState( 587): Message:Entering Stable State

I/BluetoothService( 587): Received ACTION_CONNECTION_STATE_CHANGED

D/BluetoothA2dpService( 587): sendMetaData /org/bluez/3945/hci0/dev_00_0C_78_43_07_38

D/BluetoothA2dpService( 587): Meta data info is trackname: Unknown artist: Unknown

D/BluetoothA2dpService( 587): mMediaNumber: 0 mediaCount 0

D/BluetoothA2dpService( 587): mPostion 0 album: Unknownduration 0

D/BluetoothA2dpService( 587): mGenre Unknown

W/ContextImpl( 587): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1098 android.server.BluetoothA2dpService$IntentBroadcastHandler.onConnectionStateChanged:1369 android.server.BluetoothA2dpService$IntentBroadcastHandler.handleMessage:1381 android.os.Handler.dispatchMessage:99 android.os.Looper.loop:137

D/CachedBluetoothDevice( 3472): onProfileStateChanged: profile A2DP newProfileState 2

V/BtOpp Service( 820): Received BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED

V/BtOpp Service( 820): device: 00:0C:78:43:07:38 newState: 2

V/BtOpp Service( 820): Mark A2DP state as not playing

D/BluetoothA2dpService( 587): sendEvent /org/bluez/3945/hci0/dev_00_0C_78_43_07_38 data 0

D/BluetoothA2dpService( 587): isA2dpPlaying(00:0C:78:43:07:38)

D/BluetoothService( 587): setA2dpAudioActive(): false

Maybe problem in this:

I/AudioHardwareMSM72XX( 106): Using default acoustic parameters (BT 56 not in acoustic database)
I/AudioHardwareMSM72XX( 106): Routing audio to Speakerphone

or there:

D/BluetoothA2dpService( 587): Property change recieved for device: 00:0C:78:43:07:38
D/BluetoothA2dpService( 587): A2DP: onSinkPropertyChanged newState is: 2mPlayingA2dpDevice: null
W/AudioPolicyManagerBase( 106): checkOutputsForDevice(): No output available for device 0080
I/AudioHardwareMSM72XX( 106): Routing audio to Speakerphone