Commit e50cf165 authored by Akash Kumar's avatar Akash Kumar
Browse files

BACKPORT: usb: gadget: uvc: configfs: Add frame-based frame format support



Add support for frame-based frame format, which can be used to support
multiple formats like H264 or H265, in addition to MJPEG and YUV frames.

The frame-based format is set to H264 by default, but it can be updated
to other formats by modifying the GUID through the guid configfs
attribute. Different structures are used for all three formats, as
H264 has a different structure compared to MJPEG and uncompressed
formats. These structures will be passed to the frame make function
based on the active format, using a common frame structure with
additional parameters needed only for frame-based formats. These
parameters are handled at runtime in the UVC driver.

Signed-off-by: default avatarAkash Kumar <quic_akakum@quicinc.com>
Link: https://lore.kernel.org/r/20240927152138.31416-1-quic_akakum@quicinc.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I71eee274a29d5ed27ac46baa9535ccc501e3704d

Bug: 384630325
(cherry picked from commit 7b5a5895)
[Akash: Resolved minor conflict drivers/usb/gadget/function/uvc_configfs.h ]
[Akash: Resolved minor conflict drivers/usb/gadget/function/uvc_v4l2.c ]

Change-Id: I6be6be3ed3cba248679332cc50aee88b4c8411fb
Signed-off-by: default avatarAkash Kumar <quic_akakum@quicinc.com>
parent 4bcafa4d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment