Skip to content

feat(lib): add Dolby Audio modes for Soundcore Liberty 5 (A3957) - #418

Open
nathawatc wants to merge 1 commit into
Oppzippy:masterfrom
nathawatc:master
Open

nathawatc wants to merge 1 commit into
Oppzippy:masterfrom
nathawatc:master

Conversation

@nathawatc

Copy link
Copy Markdown

Summary

Adds Dolby Audio mode selection for the Soundcore Liberty 5 (A3957).

The A3957 state packet includes a Dolby enable byte and a mode byte. This parses them into Disabled, Music, Podcast, and Movie, exposes the setting under Miscellaneous -> Dolby Audio, and sends the corresponding set command when changed.

Set packet: command [16, 129], payload [enabled, 1, mode].

Verification

  • Verified on a real Liberty 5; Dolby mode switching works.
  • Added parsing/round-trip tests and an integration test for the outbound packet.
  • cargo test --workspace passes.
  • cargo fmt --all -- --check passes.

Notes

The second payload byte is always 1 in captures and is kept constant. The fourth state byte is currently unused.

Parse the Dolby enable and mode bytes from the state update, and expose Dolby Audio as Disabled/Music/Podcast/Movie. The set command uses the [enabled, effect mode, mode] layout shared with related devices and was verified on a Liberty 5.
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.

1 participant