mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
media: Add CSI-2 bus configuration to frame descriptors
Add CSI-2 bus specific configuration to the frame descriptors. This allows obtaining the virtual channel and data type information for each stream the transmitter is sending. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
a34cc79c96
commit
897c45df29
@ -312,6 +312,17 @@ struct v4l2_subdev_audio_ops {
|
||||
int (*s_stream)(struct v4l2_subdev *sd, int enable);
|
||||
};
|
||||
|
||||
/**
|
||||
* struct v4l2_mbus_frame_desc_entry_csi2
|
||||
*
|
||||
* @vc: CSI-2 virtual channel
|
||||
* @dt: CSI-2 data type ID
|
||||
*/
|
||||
struct v4l2_mbus_frame_desc_entry_csi2 {
|
||||
u8 vc;
|
||||
u8 dt;
|
||||
};
|
||||
|
||||
/**
|
||||
* enum v4l2_mbus_frame_desc_flags - media bus frame description flags
|
||||
*
|
||||
@ -335,11 +346,16 @@ enum v4l2_mbus_frame_desc_flags {
|
||||
* %FRAME_DESC_FL_BLOB is not set.
|
||||
* @length: number of octets per frame, valid if @flags
|
||||
* %V4L2_MBUS_FRAME_DESC_FL_LEN_MAX is set.
|
||||
* @bus: Bus-specific frame descriptor parameters
|
||||
* @bus.csi2: CSI-2-specific bus configuration
|
||||
*/
|
||||
struct v4l2_mbus_frame_desc_entry {
|
||||
enum v4l2_mbus_frame_desc_flags flags;
|
||||
u32 pixelcode;
|
||||
u32 length;
|
||||
union {
|
||||
struct v4l2_mbus_frame_desc_entry_csi2 csi2;
|
||||
} bus;
|
||||
};
|
||||
|
||||
#define V4L2_FRAME_DESC_ENTRY_MAX 4
|
||||
|
Loading…
Reference in New Issue
Block a user