Skip to content

DreamNextGen: add Bluetooth audio support - #2

Merged
atvcaptain merged 1 commit into
mainfrom
dreamnextgen-btaudio
Oct 9, 2026
Merged

atvcaptain merged 1 commit into
mainfrom
dreamnextgen-btaudio

Conversation

@WXbet

@WXbet WXbet commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Dreambox One/Two decode audio in software and play it to the Bluetooth sink themselves, so there is no /proc/stb/audio/btaudio.

  • BTAudioConnect: write pcm.bluetooth to /etc/alsa/conf.d instead of rewriting asound.conf and skip the capture/playback pipe
  • switch config.av.audio_source to Bluetooth once the device is connected (back to HDMI on Audio Off and at session start) and restart a running GStreamer service so it reopens the sink
  • offer the plugin before hci0 appears, the internal UART controller is attached in the background
  • only unblock rfkill when Bluetooth is blocked, the Amlogic bt-dev driver power-cycles the controller on every unblock and drops the firmware loaded by hciattach

Dreambox One/Two decode audio in software and play it to the Bluetooth
sink themselves, so there is no /proc/stb/audio/btaudio.

- BTAudioConnect: write pcm.bluetooth to /etc/alsa/conf.d instead of
  rewriting asound.conf and skip the capture/playback pipe
- switch config.av.audio_source to Bluetooth once the device is
  connected (back to HDMI on Audio Off and at session start) and
  restart a running GStreamer service so it reopens the sink
- offer the plugin before hci0 appears, the internal UART controller is
  attached in the background
- only unblock rfkill when Bluetooth is blocked, the Amlogic bt-dev
  driver power-cycles the controller on every unblock and drops the
  firmware loaded by hciattach
@sonarqubecloud

sonarqubecloud Bot commented Oct 9, 2026

Copy link
Copy Markdown

@atvcaptain
atvcaptain merged commit 03ae78d into main Oct 9, 2026
5 checks passed
@WXbet
WXbet deleted the dreamnextgen-btaudio branch October 12, 2026 19:46
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.

2 participants