Skip to content

Fix/bt audio 48khz and suspend#747

Merged
frysee merged 5 commits into
LoveRetro:lean-suspendfrom
carroarmato0:fix/bt-audio-48khz
May 27, 2026
Merged

Fix/bt audio 48khz and suspend#747
frysee merged 5 commits into
LoveRetro:lean-suspendfrom
carroarmato0:fix/bt-audio-48khz

Conversation

@carroarmato0

@carroarmato0 carroarmato0 commented May 27, 2026

Copy link
Copy Markdown
Collaborator

This PR stabilizes Bluetooth audio and sleep/wake behavior on tg5040/tg5050.

  • Fixed BT audio failures in GBA/FBNeo when BT max rate is 48 kHz by adding a BT-only fallback for high/non-standard core rates (>48k -> 44.1k).
  • Reduced GBA BT crackle by increasing audio buffer headroom for BT + high-rate cores.
  • Hardened BT service startup/recovery by enabling BlueALSA keep-alive and improving tg5040 rfkill handling.
  • Improved audiomon resilience by ignoring transient BlueZ disconnect events and preserving/restoring BT sink state correctly.
  • Fixed deep-sleep wake hangs by guarding potentially blocking wakeup_count reads in suspend scripts.

@carroarmato0 carroarmato0 changed the title Fix/bt audio 48khz Fix/bt audio 48khz and suspend May 27, 2026
@johnnyq

johnnyq commented May 27, 2026

Copy link
Copy Markdown

Looks like similar work to #736

@frysee

frysee commented May 27, 2026

Copy link
Copy Markdown
Member

Looks like similar work to #736

Thats why we are merging this one into the other one :)

@johnnyq

johnnyq commented May 27, 2026

Copy link
Copy Markdown

Gotchya @frysee that makes sense now haha

Comment thread skeleton/SYSTEM/tg5040/etc/bluetooth/bt_init.sh
@frysee frysee merged commit 8a62568 into LoveRetro:lean-suspend May 27, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants