[GH-ISSUE #57] Update the documentation for "Configure Stem Long Press" #24

Closed
opened 2026-03-02 12:02:43 +03:00 by kerem · 1 comment
Owner

Originally created by @AlexGuo1998 on GitHub (Feb 8, 2025).
Original GitHub issue: https://github.com/kavishdevar/librepods/issues/57

The documentation for Configure Stem Long Press may be simplified. The value sent should be regarded as the final state, not enable / disable commands.

Simplified version:

04 00 04 00 09 00 1A [modes] 00 00 00
modes: Bitwise OR of all the enabled modes:

| Bit | Value | Name         |
|-----|-------|--------------|
| 0   | 0x01  | "Off" mode   |
| 1   | 0x02  | ANC          |
| 2   | 0x04  | Transparency |
| 3   | 0x08  | Adaptive     |

At lease 2 different modes must be enabled.

Example: `0x06` = `0x02` + `0x04` = ANC and Transparency mode selected (while Off and Adaptive deselected)

Also, yeah, this shouldn't be hard-coded:
github.com/kavishdevar/aln/blob/9ab6a20de2fefdc309d6b98c3da4d7998890f5cc/android/app/src/main/java/me/kavishdevar/aln@9ab6a20de2/android/app/src/main/java/me/kavishdevar/aln/utils/Packets.kt (L244-L287)

Originally created by @AlexGuo1998 on GitHub (Feb 8, 2025). Original GitHub issue: https://github.com/kavishdevar/librepods/issues/57 The documentation for [_Configure Stem Long Press_](https://github.com/kavishdevar/aln/blob/9ab6a20de2fefdc309d6b98c3da4d7998890f5cc/AAP%20Definitions.md?plain=1#L281-L349) may be simplified. The value sent should be regarded as the final state, not enable / disable commands. Simplified version: ```plaintext 04 00 04 00 09 00 1A [modes] 00 00 00 ``` ```markdown modes: Bitwise OR of all the enabled modes: | Bit | Value | Name | |-----|-------|--------------| | 0 | 0x01 | "Off" mode | | 1 | 0x02 | ANC | | 2 | 0x04 | Transparency | | 3 | 0x08 | Adaptive | At lease 2 different modes must be enabled. Example: `0x06` = `0x02` + `0x04` = ANC and Transparency mode selected (while Off and Adaptive deselected) ``` Also, yeah, this shouldn't be hard-coded: https://github.com/kavishdevar/aln/blob/9ab6a20de2fefdc309d6b98c3da4d7998890f5cc/android/app/src/main/java/me/kavishdevar/aln/utils/Packets.kt#L244-L287
kerem closed this issue 2026-03-02 12:02:43 +03:00
Author
Owner

@kavishdevar commented on GitHub (Feb 9, 2025):

Thanks! I don't know why I thought these weren't based on the final state.

Implementing this right now.

<!-- gh-comment-id:2646402010 --> @kavishdevar commented on GitHub (Feb 9, 2025): Thanks! I don't know why I thought these weren't based on the final state. Implementing this right now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librepods#24
No description provided.