Repository navigation
Conversation
An infrared face-login camera is usually a second function of the same USB camera: a video4linux device of its own, so its capture node is index 0 like the colour camera's, and only the numbering kept it from being granted. camera_in now takes the lowest numbered index-0 node that offers a format Firefox reads (MJPEG, YUYV, NV12 and the like), asked of the driver with VIDIOC_ENUM_FMT, which answers from what uvcvideo parsed at probe without powering the camera; when none does, the lowest numbered, as before. The unit test lays out a colour and an infrared camera in one USB device with the infrared one numbered lowest. The camera suite's new case loads two vivid stand-ins, the lower one multi-planar, and checks the grant takes the other.
DevomB
added a commit
that referenced
this pull request
Oct 29, 2026
…hat offers no colour picture, as an infrared camera's
This branch has not been deployed
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.
A laptop's infrared face-login camera is usually a second function of the same USB camera. That makes it a video4linux device of its own, so its capture node is
index0 like the colour camera's, and only the node numbering kept it from being granted. It takes two stale holders to renumber the colour node above it, or a module that lists the infrared function first. A zone given the infrared node gets grey frames, which Firefox's capture cannot show.camera_intakes the lowest numberedindex0 node that offers a format Firefox reads (MJPEG, YUYV, UYVY, NV12, I420, YV12). When none does, it takes the lowest numbered, as before.VIDIOC_ENUM_FMTon the host's node. In 6.18 uvcvideo answers from the descriptors it parsed at probe, and neitheropen()nor the ioctl powers the camera. The request is castas _for musl'sc_int.Checks:
camera-colour-firstin the camera suite loads two vivid stand-ins, the lower numbered one multi-planar. The kernel refuses a single-planarVIDIOC_ENUM_FMTon that one (v4l_enum_fmt's cap-mask check), and the case checks the grant takes the other. That runs the real ioctl, which the fallback would otherwise hide.Testing on physical hardware is planned for October 2026.