Skip to content

fixed: AOCEC - report the physical address after registering - #765

Open
Portisch wants to merge 1 commit into
Pulse-Eight:masterfrom
Portisch:fix/aocec-report-pa-on-claim
Open

Portisch wants to merge 1 commit into
Pulse-Eight:masterfrom
Portisch:fix/aocec-report-pa-on-claim

Conversation

@Portisch

@Portisch Portisch commented Nov 7, 2026

Copy link
Copy Markdown

The Linux CEC framework broadcasts as soon as a logical address is claimed. The Amlogic driver behind the AOCEC adapter does not. When the address is already known at registration, as it is with this adapter whenever the driver reports a valid one, OnRegister skips SetPhysicalAddress and nothing reports it. The tested TV then did not route its remote keys to the box until it queried the device on its own.

With the AOCEC adapter, OnRegister now broadcasts the address of each device of the client in that case. Other adapters are unchanged, so the Linux adapter does not send it twice. The address comes from the libCEC configuration, so an address set by the client is reported as well.

Tested on a Ugoos AM9 (S905X5, Linux 6.12) connected to a TV with a soundbar on the bus, with Kodi. Before, the first remote key reached libCEC 12.2 s after the connection was opened. With the change the box reported its address 0.3 s after the connection was opened and the first key reached libCEC after 3.5 s. The test build also carried a driver fix that retries transmissions lost to collisions on this bus.

The Linux CEC framework broadcasts <Report Physical Address> once a
logical address is claimed. The Amlogic driver does not, and libCEC
skips it when the address is already known at registration. The
tested TV then did not route its remote keys to the box for about
12 seconds.

This branch has not been deployed

No deployments
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