[AT&T Samsung Galaxy S II Skyrocket SGH-I727] l0wgray:
EDIT: This issue is definitely related to this ROM, I flashed Candy5 and A2DP works great.

--------------------------------------------------------

Problem is A2DP audio skips like crazy or doesn't play at all. Phone audio over bluetooth works fine. Just not music. About one in 20 reboots A2DP kinda works for a few minutes without skipping/choppy, but eventually starts skipping again. No correlation to the fixes I am trying. Just random. Like it's the wrong sample rate or bad radio flash or something.

I'm reviving a stock ICS skyrocket and going to rooted pa_skyrocket-5.1-20150822.zip.

Flashed TWRP 2.8.6.0, radio to UCMC1

Formatted internal SD, sys, data, dalvik, cache, etc. Several times

Flashed, Re-flashed pa_skyrocket-5.1-20150822.zip several times

Updated SuperSU, blah, blah several times

Installed TK Gapps Micro, blah, blah

I tried messing with the audio_policy.conf sampling rates. Also build.prop settings, to no avail.

lpa.decode=true to/from lpa.decode=false
tunnel.decode=true to/from tunnel.decode=false
lpa.use-stagefright=true to/from lpa.use-stagefright=false

I also tried a ton of different players, still stame issue.

Logcat shows loads of these per second as it's playing music (more log below):

09-02 18:26:53.819 W/bt-btif (2179): btif_media_aa_prep_2_send() - TX queue buffer count 128 max_frames 135 nb_frame 8

Any ideas?

09-02 18:26:44.290 I/MediaFocusControl(513): AudioFocus requestAudioFocus() from [email]android.media.AudioManager@1bc1d35com.maxmpz.audioplayer.player.Player[/email]Service$20@19fcc5ca req=1flags=0x0
09-02 18:26:44.300 I/str_params(3950): key: 'routing' value: '128'
09-02 18:26:44.300 I/str_params(3950): key: 'a2dp_sink_address' value: '00:EE:AE:55:49:AA'
09-02 18:26:44.950 D/TaskPersister(513): removeObsoleteFile: deleting file=497_task.xml
09-02 18:26:44.950 D/TaskPersister(513): removeObsoleteFile: deleting file=497_task_thumbnail.png
09-02 18:26:45.321 E/cutils-trace(3950): Error opening trace file: No such file or directory (2)
09-02 18:26:45.321 I/audio_a2dp_hw(3950): start_audio_datapath: state AUDIO_A2DP_STATE_STANDBY
09-02 18:26:45.321 I/audio_a2dp_hw(3950): a2dp_command: A2DP COMMAND A2DP_CTRL_CMD_START
09-02 18:26:45.321 D/bt-btif (2179): btif_av_state_opened_handler event:BTIF_AV_START_STREAM_REQ_EVT flags 0
09-02 18:26:45.321 D/bt-btif (2179): AV Sevent(0x41)=0x120b(AP_START) state=3(OPEN)
09-02 18:26:45.321 W/bt-btm (2179): BTM: Local device role : 0x00
09-02 18:26:45.321 W/bt-btm (2179): BTM: RemBdAddr: 001eae5549a9
09-02 18:26:45.321 W/bt-btif (2179): bta_dm_rm_cback:1, status:7
09-02 18:26:45.321 W/bt-l2cap(2179): L2CA_SetDesireRole() new:x0, disallow_switch:0
09-02 18:26:45.401 V/RemoteController(2179): Updating current controller package as com.maxmpz.audioplayer from null
09-02 18:26:45.401 D/AudioManager(2179): updateMediaPlayerList: Add RCC com.maxmpz.audioplayer to List
09-02 18:26:45.401 V/AudioService(513): addMediaPlayerAndUpdateRemoteController: size of existing list: 0
09-02 18:26:45.401 E/AudioService(513): Adding Player: com.maxmpz.audioplayer to available player list
09-02 18:26:45.401 V/AudioService(513): updating focussed RCC change to RCD: CallingPackageName:com.maxmpz.audioplayer
09-02 18:26:45.411 D/Avrcp (2179): Update mPlayStartTimeMs to 183543
09-02 18:26:45.411 D/Avrcp (2179): Update mPlayStartTimeMs: 183544 mCurrentPosMs: 20107
09-02 18:26:45.421 V/Avrcp (2179): received RCC_CHANGED_ACTION
09-02 18:26:45.421 V/Avrcp (2179): focus: true , availability: true
09-02 18:26:45.421 V/Avrcp (2179): old Metadata = Metadata[artist=null trackTitle=null albumTitle=null genre=null tracknum=-1]
09-02 18:26:45.421 V/Avrcp (2179): new MetaData Metadata[artist=A Song trackTitle=By Someone albumTitle=Greatest Hits genre=null tracknum=1002]
09-02 18:26:45.421 V/Avrcp (2179): new mMetadata, mTrackNumber update to -1
09-02 18:26:45.421 V/Avrcp (2179): MSG_UPDATE_RCC_CHANGE
09-02 18:26:45.441 D/bt-btif (2179): AV Sevent(0x41)=0x121c(STR_START_OK) state=3(OPEN)
09-02 18:26:45.441 W/bt-btm (2179): BTM: Local device role : 0x00
09-02 18:26:45.441 W/bt-btm (2179): BTM: RemBdAddr: 001eeb5649aa
09-02 18:26:45.441 E/bt-btif (2179): bta_av_link_role_ok hndl:x41 role:0, conn_audio:x1, bits:1, features:x824b
09-02 18:26:45.441 W/bt-btif (2179): bta_dm_rm_cback:1, status:0
09-02 18:26:45.441 W/bt-l2cap(2179): L2CA_SetDesireRole() new:x0, disallow_switch:0
09-02 18:26:45.441 W/bt-btif (2179): bta_dm_rm_cback:1, status:7
09-02 18:26:45.441 W/bt-l2cap(2179): L2CA_SetDesireRole() new:x0, disallow_switch:0
09-02 18:26:45.441 D/bt-btif (2179): btif_av_state_opened_handler event:BTA_AV_START_EVT flags 4
09-02 18:26:45.441 D/bt-btif (2179): btif_av_state_opened_handler event:BTIF_SM_EXIT_EVT flags 0
09-02 18:26:45.441 D/bt-btif (2179): btif_av_state_started_handler event:BTIF_SM_ENTER_EVT flags 0
09-02 18:26:45.441 I/BluetoothA2dpServiceJni(2179): bta2dp_audio_state_callback
09-02 18:26:45.441 I/audio_a2dp_hw(3950): a2dp_command: A2DP COMMAND A2DP_CTRL_CMD_START DONE STATUS 0
09-02 18:26:45.441 I/audio_a2dp_hw(3950): skt_connect: connect to /data/misc/bluedroid/.a2dp_data (sz 10240)
09-02 18:26:45.441 I/audio_a2dp_hw(3950): skt_connect: connected to stack fd = 19
09-02 18:26:45.441 D/A2dpStateMachine(2179): Connected process message: 101
09-02 18:26:45.441 D/bt-btif (2179): btif_av_state_started_handler event:BTIF_AV_UPDATE_ENCODER_REQ_EVT flags 0
09-02 18:26:45.441 W/bt-btif (2179): pcm bytes per tick 3840
09-02 18:26:45.441 V/HeadsetService(2179): Received BluetoothA2dp Play State changed
09-02 18:26:45.441 D/HeadsetStateMachine(2179): Connected process message: 18, size: 1
09-02 18:26:45.441 D/HeadsetStateMachine(2179): A2dp Play State Changed: Current State: 10Prev State: 11A2pSuspend: false
09-02 18:26:45.441 D/HeadsetStateMachine(2179): A2dp Started 10
09-02 18:26:45.451 D/A2dpStateMachine(2179): A2DP Playing state : device: 00:EE:AE:55:49:AA State:11->10
09-02 18:26:45.461 E/bt-btif (2179): [media task tx timer] ts 183592197, diff : 183592197, queue sz 0
09-02 18:26:46.842 E/bt-btif (2179): [media task tx timer] ts 184972019, diff : 00037140, queue sz 89
09-02 18:26:46.872 D/ConnectivityService(513): updateNetworkScore for NetworkAgentInfo [WIFI () - 100] to 56
09-02 18:26:46.872 D/ConnectivityService(513): rematching NetworkAgentInfo [WIFI () - 100]
09-02 18:26:46.872 D/ConnectivityService(513): Network NetworkAgentInfo [WIFI () - 100] was already satisfying request 1. No change.
09-02 18:26:46.872 D/ConnectivityService(513): notifyType AVAILABLE for NetworkAgentInfo [WIFI () - 100]
09-02 18:26:46.882 D/ConnectivityManager.CallbackHandler(703): CM callback handler got msg 524290
09-02 18:26:47.323 W/linker (4082): libfactoryutil.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
09-02 18:26:47.373 W/bt-btif (2179): btif_media_aa_prep_2_send() - TX queue buffer count 128 max_frames 135 nb_frame 8
09-02 18:26:47.413 W/bt-btif (2179): btif_media_aa_prep_2_send() - TX queue buffer count 129 max_frames 135 nb_frame 8
09-02 18:26:47.413 W/bt-btif (2179): btif_media_aa_prep_2_send() - TX queue buffer count 128 max_frames 135 nb_frame 8
09-02 18:26:47.433 W/bt-btif (2179): btif_media_aa_prep_2_send() - TX queue buffer count 129 max_frames 135 nb_frame 7