From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Itay Perl <itay.perl@q.ai>
Cc: Ricardo Ribalda <ribalda@chromium.org>,
Hans de Goede <hansg@kernel.org>,
"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
Itay Chamiel <itay.chamiel@q.ai>
Subject: Re: uvcvideo regression: loss of access to full UVC payload header for generic UVC devices since 6.17
Date: Thu, 19 Feb 2026 09:21:57 +0100 [thread overview]
Message-ID: <20260219082157.GD520738@killaraus.ideasonboard.com> (raw)
In-Reply-To: <AMBPR10MB9376A5762A4DF0BA3759437A8D6BA@AMBPR10MB9376.EURPRD10.PROD.OUTLOOK.COM>
On Thu, Feb 19, 2026 at 06:03:49AM +0000, Itay Perl wrote:
> ON 19 February 2026 06:22, Laurent Pinchart wrote:
> > On Wed, Feb 18, 2026 at 11:56:28AM +0000, Itay Perl wrote:
> > > On 18 February 2026 19:17, Ricardo Ribalda wrote:
> > > > On Wed, 18 Feb 2026 at 11:59, Itay Perl wrote:
> > > > > Would restoring the previous behavior be acceptable for compatibility?
> > > > > Alternatively (or additionally), would it make sense to introduce a dedicated
> > > > > metadata format that allows userspace to request the full UVC header for
> > > > > generic devices?
> > > >
> > > > By any chance the device that you are using supports
> > > > V4L2_META_FMT_UVC_MSXU_1_5 ?
> > > > If the device exposes the UVC_MSXU_CONTROL_METADATA control, that
> > > > format should be available, and it provices access to all the UVC
> > > > header as you had before.
> > > >
> > > > Alternatively, if this is needed for a specific device you could send
> > > > a patch adding the UVC_QUIRK_MSXU_META for that device.
> > > > Would that work for you?
> > >
> > > My device is an internal development platform and does not have a public VID/PID
> > > that could reasonably be added to the driver.
> > >
> > > I may be able to implement the MSXU control on the device side as a workaround,
> > > but I'm concerned that this could cause issues when the device is used on a
> > > Windows machine, which may expect the UVC header to follow a certain
> > > format when MSXU is present.
> >
> > Does your device implement a vendor-specific metadata format ?
>
> Yes, the device uses a vendor-specific metadata format to attach
> platform-specific data to each frame. This is the most straightforward way to
> add per-frame metadata without otherwise affecting UVC functionality. We have
> used this method successfully on Linux (using the 0-format hack) and on
> Windows, where it required a registry configuration but was otherwise
> supported.
To support that device on Linux, the right way is to define a meta
format (such as V4L2_META_FMT_UVC and V4L2_META_FMT_UVC_MSXU_1_5) and
either add a VID:PID entry to the driver's uvc_ids[] array if the number
of devices is small, or define an XU that advertises support for the
format if you expect a larger number of devices. The metadata format
needs to be documented.
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2026-02-19 8:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-18 10:59 uvcvideo regression: loss of access to full UVC payload header for generic UVC devices since 6.17 Itay Perl
2026-02-18 11:17 ` Ricardo Ribalda
2026-02-18 11:56 ` Itay Perl
2026-02-18 22:22 ` Laurent Pinchart
2026-02-19 6:03 ` Itay Perl
2026-02-19 8:21 ` Laurent Pinchart [this message]
2026-02-19 9:01 ` Itay Perl
2026-02-19 9:16 ` Laurent Pinchart
2026-02-19 10:22 ` Ricardo Ribalda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260219082157.GD520738@killaraus.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=hansg@kernel.org \
--cc=itay.chamiel@q.ai \
--cc=itay.perl@q.ai \
--cc=linux-media@vger.kernel.org \
--cc=ribalda@chromium.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.