Skip to content

Fix value of the DOWN pass through operation id - #985

Merged
zxzxwu merged 1 commit into
google:mainfrom
kwy404:fix-avc-passthrough-down-operation-id
Sep 24, 2026
Merged

zxzxwu merged 1 commit into
google:mainfrom
kwy404:fix-avc-passthrough-down-operation-id

Conversation

@kwy404

@kwy404 kwy404 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

PassThroughFrame.OperationId.DOWN was defined as 0x01, the same value as UP, so Python made it an alias of UP and a received 0x02 operation id was not recognized as DOWN. The AV/C Panel Subunit Specification (PASS THROUGH operation_id table) assigns 0x02 to DOWN, and the neighboring values in the enum already follow that table.

Added test_passthrough_operation_id_values in tests/avrcp_test.py, which checks the UP and DOWN values and that 0x02 maps to DOWN. It fails before the change and passes after. Ran black, ruff and mypy on the touched files, plus the full test suite (the only failures are the android-netsim transport tests, which need grpcio and fail the same way on main).

DOWN was defined as 0x01, the same value as UP, which made it an alias of UP. The AV/C Panel Subunit Specification assigns 0x02 to DOWN.
@zxzxwu
zxzxwu merged commit b2c68f0 into google:main Sep 24, 2026
36 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.

2 participants