mbox series

[v2,0/2] media: uvc: limit max bandwidth for HDMI capture

Message ID 20250106140923.56896-1-hdegoede@redhat.com
Headers show
Series media: uvc: limit max bandwidth for HDMI capture | expand

Message

Hans de Goede Jan. 6, 2025, 2:09 p.m. UTC
Hi All,

This is mostly a resend of Mauro's patch from a long time ago to
fix the MacroSilicon HDMI capture UVC dongle:
https://patchwork.linuxtv.org/project/linux-media/patch/bca0634691cea503c2c5df62b98ba66f0c85bf85.1624350539.git.mchehab+huawei@kernel.org/

While reviewing this I noticed that the driver hardcodes 10000000
for the UVC frame interval denominator everywhere. So this v2 adds
a preparation patch adding a define for that constant.

The only other change from Mauro's v1 is adding a comment that the new
uvc_device_info.max_bandwidth field is in pixels per second.

Regards,

Hans


Hans de Goede (1):
  media: uvcvideo: Add a UVC_FIVAL_DENOM define

Mauro Carvalho Chehab (1):
  media: uvc: limit max bandwidth for HDMI capture

 drivers/media/usb/uvc/uvc_driver.c | 18 ++++++++++++++--
 drivers/media/usb/uvc/uvc_v4l2.c   | 16 +++++++--------
 drivers/media/usb/uvc/uvc_video.c  | 33 +++++++++++++++++++++++++-----
 drivers/media/usb/uvc/uvcvideo.h   |  3 +++
 4 files changed, 55 insertions(+), 15 deletions(-)