Map a board to the hardware contract
The Vela Hardware Compatibility Contract describes what system services can discover, request and confirm. Major version 1 separates provider origin from capability and current operating state. The same consumer interface can therefore say that headphones are disconnected, that a receiver could not be queried, or that a television has no headphone output. Each statement leads to a different action.
The board package owns device trees, firmware, driver quirks and any vendor adaptation. Services own policy, authorization and error handling. Applications consume versioned platform capabilities. Keep physical port numbers, private ioctls and board-only file paths inside the provider that understands them.
Describe the evidence behind each capability
| Capability status | Example on an OEM submission | Expected consumer treatment |
|---|---|---|
supported |
Physical board revision B has a tested ARC route with the receiver and formats named in its evidence. A simulated provider can also support its own modeled operation. | Offer actions within the reported limits and verify the result after selection. |
unsupported |
This SKU has no RF front end. | Omit tuner setup and keep HDMI, apps and local media available. |
unavailable |
This SKU has a working return-audio route but its receiver is currently disconnected. | Explain the temporary state and keep a usable alternate output available. |
unverified |
The SoC data sheet lists an HDR mode, but this panel, firmware and link configuration have not been characterized. | Keep that claim out of advertised capability and use the validated display path. |
Record simulated or physical as the provider origin. Track operating observations such as connected, active and selected separately. An empty or unknown network name cannot identify which network accepted a request. A present HDMI connector can still have no usable signal. A decoder advertised by a driver can still reject the profile, bit depth or concurrent workload requested by a programme.
Map the board interfaces
| Area | Preferred Linux or subsystem boundary | Evidence and fallback to plan |
|---|---|---|
| Panel, display and graphics | DRM/KMS connectors, modes, planes and atomic properties. Wayland for compositor-to-client presentation. EGL, GLES or Vulkan where the BSP supplies a validated driver. | Record the panel mode, refresh, color path, safe area and plane combinations. Define a known-good display mode and timed recovery from a blank screen. |
| Video decode and encode | V4L2 stateful or stateless codec interfaces where supplied, dma-buf interoperability and the selected GStreamer elements. | Report codec, profile, level, format, dimensions, frame rate and simultaneous sessions. Record which engine actually processed the sample. |
| Speakers, wired or Bluetooth listening, ARC and eARC | ALSA endpoints, reviewed audio routing and policy, BlueZ or HDMI controller where applicable. | Demonstrate actual route acknowledgement and volume ownership. Verify a disconnected private endpoint cannot suddenly play loudly through the panel. |
| HDMI ingress and CEC | Receiver and source-selection path, V4L2 where appropriate, Linux CEC device interface for the adapter. | Check physical connector mapping, presence, usable signal, active source and address changes separately. Test switching and return to Home with the peer disconnected. |
| Remote and peripherals | rc-core, evdev/libinput, HID and BlueZ where applicable. | Capture press, repeat, hold and release for D-pad, OK, Back, Home, volume, channel and power. Preserve navigation when a Bluetooth remote drops. |
| Network and pairing | rtnetlink for link information, nl80211 for wireless management and a reviewed credential agent. | Separate association, IP configuration and Internet reachability. Keep real network secrets out of application events and test logs. |
| Broadcast and reception | Linux DVB/media interfaces, tuner and demodulator drivers, regional receiver integration. | Identify source standard and region. Supply service discovery, channel mapping, signal-loss and cancellation evidence. Empty channel lists must recover cleanly. |
| Power and thermal | Linux sleep/wake sources, watchdog, thermal and hwmon, board power-controller integration. | Record supported wake inputs and how the TV reports a wake reason. Include both measured standby draw and time to an interactive picture. |
| Identity, protected media and output protection | Hardware-backed roots, verified boot, approved secure video paths and reviewed DRM/KMS content-protection controls. | Keep private keys inside their defined trust boundary. Treat device identity, secure decode and authenticated output as separate claims. |
| Firmware, updates and local recovery | Bootloader slot selection and confirmation, storage layout, signed manifests and an independent recovery route. | Show what survives loss of power during a trial, where user data lives and how a service engineer can recover the set offline. |
Kernel interface documentation is available for the display pipeline, digital TV, video devices, remotes and CEC. Driver support still has to be established for the chosen BSP and board. Linux DRM/KMS · Linux media userspace APIs · Linux CEC device API
Follow an HDMI cable insertion from connector to screen
Imagine an engineer connects a console to the connector marked HDMI 2. First establish which receiver and kernel objects correspond to that physical label. Record the provider's source-presence event. Wait for the receiver to observe a valid input signal and report its characteristics. Make the source available in Inputs. A detection event alone must preserve the viewer's current programme and focus.
When the viewer selects HDMI 2, the service validates the request against the current state and reports the accepted source or a reason it failed. Pull the cable between discovery and the request to exercise the changing state. Keep Home and the input selector reachable. A CEC peer requesting active source is a further event with its own policy. A protected source introduces a separate authorization and output-protection path.
For the simulator, a version-1 hdmi.source event updates a virtual provider. It does not create physical video or negotiate with an HDMI receiver. On a board, keep the same observable service behaviour and attach the receiver, UI and physical signal evidence to its claim. Try the simulator event
Evolve the contract
Consumers should ignore additive response fields in a known major version. A changed field meaning, a removed required field or a newly mandatory operation needs versioned handling. Surface an unknown major version as unsupported by this consumer. Keep the last confirmed state after a rejected request. A process restart can reset an event sequence, so reacquire a complete snapshot before interpreting new deltas. Qualification evidence
