mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] media: uvcvideo: fix HP True Vision 5MP color streaming
@ 2026-11-22  6:03 Parmjot Singh
  2026-11-22  6:03 ` [PATCH 1/2] media: uvcvideo: skip GET_DEF(PROBE) for HP True Vision 5MP Parmjot Singh
  2026-11-22  6:03 ` [PATCH 2/2] media: uvcvideo: delay HP True Vision 5MP isochronous start Parmjot Singh
  0 siblings, 2 replies; 3+ messages in thread
From: Parmjot Singh @ 2026-11-22  6:03 UTC (permalink / raw)
  To: linux-media; +Cc: laurent.pinchart, hansg, mchehab, linux-kernel

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
-- 
2.56.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-22  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-22  6:03 [PATCH 0/2] media: uvcvideo: fix HP True Vision 5MP color streaming Parmjot Singh
2026-11-22  6:03 ` [PATCH 1/2] media: uvcvideo: skip GET_DEF(PROBE) for HP True Vision 5MP Parmjot Singh
2026-11-22  6:03 ` [PATCH 2/2] media: uvcvideo: delay HP True Vision 5MP isochronous start Parmjot Singh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®