[Desire Android Development] jukyO:
MIUI Music / BT headset issue

Hello,

just to point out that this is not happening for example with PowerAmp and with MIUI Music and headphones. It happens only with MIUI Music player and BT headset.

When listening to the music via MIUI Music / BT headset, following happens:

Music plays normally then it stops for split second and continues by itself (like it skips). Sometimes this happens every 3-4 mins, sometimes every 30 secs etc....There is no pattern.

I was browsing the net for the issue, there are some reported in CM, looks like it is the issue with audio driver.

XJ, or Strand or someone who can understand logcat better then me, can you check this relevant part of logcat:

10-26 10:47:39.430 I/AudioService( 905): AudioFocus requestAudioFocus() from android.media.AudioManager@406f20d0com.m
iui.player.MediaPlaybackService$10@406cd348
10-26 10:47:39.480 D/A2DP ( 872): bluetooth_configure
10-26 10:47:39.510 D/A2DP ( 872): Received BT_RESPONSE - BT_GET_CAPABILITIES
10-26 10:47:39.510 D/A2DP ( 872): Received BT_RESPONSE - BT_OPEN
10-26 10:47:39.510 D/A2DP ( 872): bluetooth_a2dp_hw_params sending configuration:
10-26 10:47:39.510 D/A2DP ( 872): channel_mode: JOINT STEREO
10-26 10:47:39.510 D/A2DP ( 872): frequency: 44100
10-26 10:47:39.510 D/A2DP ( 872): allocation_method: LOUDNESS
10-26 10:47:39.510 D/A2DP ( 872): subbands: 8
10-26 10:47:39.510 D/A2DP ( 872): block_length: 16
10-26 10:47:39.510 D/A2DP ( 872): min_bitpool: 2
10-26 10:47:39.510 D/A2DP ( 872): max_bitpool: 53
10-26 10:47:40.090 D/A2DP ( 872): Received BT_RESPONSE - BT_SET_CONFIGURATION
10-26 10:47:40.090 D/A2DP ( 872): MTU: 672
10-26 10:47:40.090 D/A2DP ( 872): frame_duration: 2902 us
10-26 10:47:40.090 D/A2DP ( 872): allocation=0
10-26 10:47:40.090 D/A2DP ( 872): subbands=1
10-26 10:47:40.090 D/A2DP ( 872): blocks=3
10-26 10:47:40.090 D/A2DP ( 872): bitpool=53
10-26 10:47:40.090 D/A2DP ( 872): bluetooth_start
10-26 10:47:40.110 E/BluetoothEventLoop.cpp( 905): event_filter: Received signal org.bluez.AudioSink:PropertyChanged fr
om /org/bluez/3321/hci0/dev_58_17_0C_EB_8E_63
10-26 10:47:40.490 D/A2DP ( 872): Received BT_RESPONSE - BT_START_STREAM
10-26 10:47:40.490 D/A2DP ( 872): Received BT_RESPONSE - BT_NEW_STREAM
10-26 10:47:40.490 E/BluetoothEventLoop.cpp( 905): event_filter: Received signal org.bluez.AudioSink:Playing from /org/
bluez/3321/hci0/dev_58_17_0C_EB_8E_63
10-26 10:47:40.490 E/BluetoothEventLoop.cpp( 905): event_filter: Received signal org.bluez.AudioSink:PropertyChanged fr
om /org/bluez/3321/hci0/dev_58_17_0C_EB_8E_63
10-26 10:47:40.500 E/BluetoothEventLoop.cpp( 905): event_filter: Received signal org.bluez.AudioSink:PropertyChanged fr
om /org/bluez/3321/hci0/dev_58_17_0C_EB_8E_63
10-26 10:47:40.510 [B]W/AudioTrack( 872): obtainBuffer timed out (is the CPU pegged?)[/B] 0x57e68 user=00003200, server=00000a
00
10-26 10:47:40.520 V/BluetoothEventRedirector( 1821): Received android.bluetooth.a2dp.action.SINK_STATE_CHANGED
10-26 10:47:40.520 D/CachedBluetoothDevice( 1821): onProfileStateChanged: profile A2DP newProfileState 4
10-26 10:47:40.530 D/BluetoothA2dpService( 905): A2DP state : device: 58:17:0C:EB:8E:63 State:2->4
10-26 10:47:40.530 W/AudioFlinger( 872): write blocked for 1055 msecs, 1 delayed writes, thread 0x24fd0
10-26 10:47:44.390 [B]I/AudioService( 905): AudioFocus abandonAudioFocus() from android.media.AudioManager[/B]@40744ec8com.m
axmpz.audioplayer.player.c@4074cc80

I set to bold what is suspicious to me.

If you need additional stuff to troubleshoot, please let me know.

Cheers,

jukyO