Skip to content

Harden mainline HDMI receiver discovery, acquisition and buffer layout - #2

Merged
Hans5849 merged 2 commits into
masterfrom
feature/rk3588-hdmirx
Nov 9, 2026
Merged

Hans5849 merged 2 commits into
masterfrom
feature/rk3588-hdmirx

Conversation

@Hans5849

@Hans5849 Hans5849 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

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.

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