]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: uvcvideo: uvc_queue_to_stream(): Support meta queues
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 9 Mar 2026 15:01:55 +0000 (15:01 +0000)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 25 Mar 2026 08:40:28 +0000 (09:40 +0100)
commit33dd4bb261bd4e539551d60511574cd64845bf84
treed58234861c0a621fcd225a2e951412fa24110cf3
parentfbac03467e53d8d72e5099c03df26d9adae11416
media: uvcvideo: uvc_queue_to_stream(): Support meta queues

The stream data structure has two queues: the metadata and the data
queues, but uvc_queue_to_stream() only supports the data queue. If we
pass the metadata queue the function will return an invalid pointer.

This patch add a parameter to the function to explicitly tell the
function which queue are we using.

Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/20260309-uvc-metadata-dmabuf-v1-2-fc8b87bd29c5@chromium.org
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/usb/uvc/uvc_isight.c
drivers/media/usb/uvc/uvc_queue.c
drivers/media/usb/uvc/uvcvideo.h