media: uvcvideo: add device entry for Logitech C920 (046d:08e5)
Subsystems (2)
Hi,
Field confirmation of this series' diagnosis from a stock, unpatched kernel, in case it is useful when considering the patches.
Device: Logitech HD Pro Webcam C920, 046d:08e5, bcdDevice 0.21, directly connected on USB 2.0 (no hub).
Kernel: 7.2.15 (Arch "linux-omarchy" build). The camera has no device-table entry here, so it rides the generic UVC catch-all and uvc_no_drop_param is at its default of 1 (deliver error frames).
Behaviour matches the commit message exactly: intermittent gray bands over the picture in applications using strict JPEG decoding. Setting the module parameter nodrop=0 -- the global equivalent of this series' UVC_QUIRK_DROP_STREAM_ERR -- makes the artifacts disappear entirely. With it in place, 300-frame MJPEG captures at both 1280x720 and 1920x1080 sustain ~27 fps, with per-frame mean luminance stable to within 1/255 across the burst. The camera has been in daily use since, artifact-free.
To be explicit: this is confirmation of the failure mode and of the workaround on the affected hardware, not a Tested-by for the series itself -- I have not built these patches. I am happy to do a real out-of-tree build against 7.2.15 and follow up with a proper Tested-by if that would help the series along.
Bob Summerwill
Hi Bob
Quoted 13 lines · Bob Summerwill
Hi,
Field confirmation of this series' diagnosis from a stock, unpatched kernel, in case it is useful when considering the patches.
Device: Logitech HD Pro Webcam C920, 046d:08e5, bcdDevice 0.21, directly connected on USB 2.0 (no hub).
Kernel: 7.2.15 (Arch "linux-omarchy" build). The camera has no device-table entry here, so it rides the generic UVC catch-all and
uvc_no_drop_paramis at its default of 1 (deliver error frames).
Quoted 8 lines
Behaviour matches the commit message exactly: intermittent gray bands over the picture in applications using strict JPEG decoding. Setting the module parameter nodrop=0 -- the global equivalent of this series'
UVC_QUIRK_DROP_STREAM_ERR-- makes the artifacts disappear entirely. With it in place, 300-frame MJPEG captures at both 1280x720 and 1920x1080 sustain ~27 fps, with per-frame mean luminance stable to within 1/255 across the burst. The camera has been in daily use since, artifact-free.
Can you share what app you are using?
It likely needs to be fixed to check for V4L2_BUF_FLAG_ERROR and skip those error frames.
Thanks!
Quoted 10 lines
To be explicit: this is confirmation of the failure mode and of the workaround on the affected hardware, not a Tested-by for the series itself -- I have not built these patches. I am happy to do a real out-of-tree build against 7.2.15 and follow up with a proper Tested-by if that would help the series along.
Bob Summerwill
Signature · 1 line
Ricardo Ribalda
Hi Ricardo,
The app is Monologue, the default camera app of the Linux desktop I run (Omarchy, an Arch-based distro):
https://github.com/omacom/monologue
Qt 6 Multimedia with the FFmpeg backend, decoding the camera's MJPEG stream.
You are right that the app should skip those frames, and upstream has since added exactly that kind of skip, shipped in 0.3.1 -- it scans each arriving JPEG frame for the EOI marker and drops incomplete ones before they reach preview or the recording:
https://github.com/omacom/monologue/pull/40
My daily-driver config also keeps nodrop=0, so I am artifact-free on both layers.
One nuance on "check for V4L2_BUF_FLAG_ERROR", though: Qt Multimedia does not surface that flag to applications. QVideoFrame carries no corrupt/error marker, and the FFmpeg V4L2 capture path passes error frames through unannotated, so an application using Qt cannot do the proper check -- the app-side skip has to be a bitstream-level heuristic. I have filed an issue documenting that gap and the layering; the proper fix wants to happen inside Qt's V4L2/FFmpeg backend:
https://github.com/omacom/monologue/issues/53
The same applies to every consumer which cannot be fixed that way -- browsers reaching the camera through PipeWire, ffmpeg, CLI tools -- so for this hardware I would still argue the device-table entry with UVC_QUIRK_DROP_STREAM_ERR is the right fix, with app-side skipping as defense in depth.
The offer of a real out-of-tree build of the series against 7.2.15, followed by a proper Tested-by, still stands.
Bob Summerwill