Skip to content

media: uvcvideo: fix HP True Vision 5MP color streaming

Parmjot Singh linux-media lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2media: uvcvideo: skip GET_DEF(PROBE) for HP True Vision 5MPdrivers/media/usb/uvc/uvc_driver.c+9 -00 replies
2/2media: uvcvideo: delay HP True Vision 5MP isochronous startdrivers/media/usb/uvc/uvc_driver.c drivers/media/usb/uvc/uvc_video.c drivers/media/usb/uvc/uvcvideo.h+19 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] media: uvcvideo: fix HP True Vision 5MP color streaming

The HP True Vision 5MP Camera (04f2:b767, USB revision 0.05) can disconnect from USB during initialization or shortly after starting color capture. The first patch skips a malformed default probe response using the existing UVC_QUIRK_PROBE_DEF. The second adds a startup delay for the color interface between SET_INTERFACE and the first ISO URB.

On stock Arch Linux 7.2.14, selecting 1280x720 MJPEG succeeded. With streaming enabled, COMMIT and SET_INTERFACE succeeded and ISO URBs completed before the camera disconnected about 127 ms after SET_INTERFACE. To reproduce, use the color capture node:

  v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=MJPG \
      --stream-mmap=4 --stream-count=90 --stream-to=/dev/null

With both patches active on Arch Linux 7.2.14, FFmpeg decoded 90 frames each at 720p MJPEG, 640x480 YUYV and 2592x1944 MJPEG, followed by 300 frames on a 720p restart. Color capture was also reported working after a reboot. The media-next series was build-tested on x86-64.

350 ms is the tested delay. The minimum reliable delay is unknown. Infrared capture still disconnects and is outside the streaming fix.

OpenAI Codex (GPT-6.2 Sol) helped draft the fixes and analyze USB and V4L2 traces. Testing used usbmon, v4l2-ctl, strace and FFmpeg.

Parmjot Singh (2):
media: uvcvideo: skip GET_DEF(PROBE) for HP True Vision 5MP
media: uvcvideo: delay HP True Vision 5MP isochronous start

 drivers/media/usb/uvc/uvc_driver.c | 23 +++++++++++++++++++++++
 drivers/media/usb/uvc/uvc_video.c  |  4 ++++
 drivers/media/usb/uvc/uvcvideo.h   |  1 +
 3 files changed, 28 insertions(+)

base-commit: ccf78740d63813c452c035b57d17a650492562fa

Signature · 1 line
2.56.0