linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] media: uvcvideo: Use a count variable for meta_formats
@ 2025-07-08 10:46 Hans de Goede
  2025-07-08 10:46 ` [PATCH] media: uvcvideo: Use a count variable for meta_formats instead of 0 terminating Hans de Goede
  0 siblings, 1 reply; 5+ messages in thread
From: Hans de Goede @ 2025-07-08 10:46 UTC (permalink / raw)
  To: Laurent Pinchart, Ricardo Ribalda; +Cc: Hans de Goede, linux-media

Hi,

I still was not entirely happy with how the meta_formats handling code
looked, especially not with uvc_meta_v4l2_enum_formats().

So here is a small patch / attempt to clean it up a bit.

Ricardo, assuming you're ok with the suggested changes can you give
this a test please ?

My main UVC test cam only supports standard UVC metadata which is
not helpful for testing (1), I did give this patch a spin with that
camera but that does not say much.

Regards,

Hans

1) It is a microsoft HD camera (but quite old) so I wonder if maybe
it does have the metadata but not the extended control for enabling it.
How would I test this ? 


Hans de Goede (1):
  media: uvcvideo: Use a count variable for meta_formats instead of 0
    terminating

 drivers/media/usb/uvc/uvc_metadata.c | 21 +++++++++------------
 drivers/media/usb/uvc/uvcvideo.h     |  4 ++--
 2 files changed, 11 insertions(+), 14 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-07-11 17:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-08 10:46 [PATCH 0/1] media: uvcvideo: Use a count variable for meta_formats Hans de Goede
2025-07-08 10:46 ` [PATCH] media: uvcvideo: Use a count variable for meta_formats instead of 0 terminating Hans de Goede
2025-07-08 11:42   ` Ricardo Ribalda
2025-07-11 13:51     ` Hans de Goede
2025-07-11 17:15   ` Laurent Pinchart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).