Repository navigation
Harden mainline HDMI receiver discovery, acquisition and buffer layout - #2
Merged
Merged
Conversation
Hans5849
marked this pull request as ready for review
November 9, 2026 01:45
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The verified Orange Pi 5 Plus mainline setup uses snps_hdmirx on platform:fdee0000.hdmi_receiver, currently /dev/video2, with one-plane MPLANE BGR3 at 1080p60. The existing branch supports that API/layout, but its numbered discovery names could change and startup could continue after HDMI acquisition failed.
This follow-up adds stable driver/bus selectors for unambiguous MPLANE receivers, preserves current legacy names/path aliases, and waits for an explicitly selected receiver rather than choosing a different camera during loss. Duplicate identities retain separate legacy entries. It also stops startup on standard no-link/unlocked timing errors before allocating buffers, compares meaningful DV timing fields instead of reserved bytes, and requires QUERYBUF mappings to cover negotiated sizeimage.
BGR3 decoding, stride, driver quantization, mapped input access and other processing remain unchanged. No NV12 forcing, vendor kernel requirement, acceleration dependency or additional input-frame copy is introduced. The mainline review documents the verified Trixie configuration, API source evidence, buffer/latency assessment and remaining application tests.
Validation: full native x86_64 Linux build with ENABLE_V4L2=ON; 13 capture test groups; 16 real BGR24 decoder combinations; address/undefined/leak sanitizer checks; all 28 existing decoder comparisons. All passed. No new ARM64 package or physical HyperHDR/HDMI/WLED test was performed. The supplied 120-frame loopback run establishes kernel capture only; preview contents and application recovery remain unvalidated.
Keep this draft pending board-level acquisition, loss/reconnect, timing change, node renumbering and single-planar regression checks. This PR targets Hans5849/HyperHDR:master and follows the previously merged PR #1.