.. | .. |
---|
65 | 65 | __u32 reserved[8]; |
---|
66 | 66 | }; |
---|
67 | 67 | |
---|
| 68 | +#define V4L2_SUBDEV_MBUS_CODE_CSC_COLORSPACE 0x00000001 |
---|
| 69 | +#define V4L2_SUBDEV_MBUS_CODE_CSC_XFER_FUNC 0x00000002 |
---|
| 70 | +#define V4L2_SUBDEV_MBUS_CODE_CSC_YCBCR_ENC 0x00000004 |
---|
| 71 | +#define V4L2_SUBDEV_MBUS_CODE_CSC_HSV_ENC V4L2_SUBDEV_MBUS_CODE_CSC_YCBCR_ENC |
---|
| 72 | +#define V4L2_SUBDEV_MBUS_CODE_CSC_QUANTIZATION 0x00000008 |
---|
| 73 | + |
---|
68 | 74 | /** |
---|
69 | 75 | * struct v4l2_subdev_mbus_code_enum - Media bus format enumeration |
---|
70 | 76 | * @pad: pad number, as reported by the media API |
---|
71 | 77 | * @index: format index during enumeration |
---|
72 | 78 | * @code: format code (MEDIA_BUS_FMT_ definitions) |
---|
73 | 79 | * @which: format type (from enum v4l2_subdev_format_whence) |
---|
| 80 | + * @flags: flags set by the driver, (V4L2_SUBDEV_MBUS_CODE_*) |
---|
74 | 81 | */ |
---|
75 | 82 | struct v4l2_subdev_mbus_code_enum { |
---|
76 | 83 | __u32 pad; |
---|
77 | 84 | __u32 index; |
---|
78 | 85 | __u32 code; |
---|
79 | 86 | __u32 which; |
---|
80 | | - __u32 reserved[8]; |
---|
| 87 | + __u32 flags; |
---|
| 88 | + __u32 reserved[7]; |
---|
81 | 89 | }; |
---|
82 | 90 | |
---|
83 | 91 | /** |
---|
.. | .. |
---|
155 | 163 | __u32 reserved[8]; |
---|
156 | 164 | }; |
---|
157 | 165 | |
---|
| 166 | +/** |
---|
| 167 | + * struct v4l2_subdev_capability - subdev capabilities |
---|
| 168 | + * @version: the driver versioning number |
---|
| 169 | + * @capabilities: the subdev capabilities, see V4L2_SUBDEV_CAP_* |
---|
| 170 | + * @reserved: for future use, set to zero for now |
---|
| 171 | + */ |
---|
| 172 | +struct v4l2_subdev_capability { |
---|
| 173 | + __u32 version; |
---|
| 174 | + __u32 capabilities; |
---|
| 175 | + __u32 reserved[14]; |
---|
| 176 | +}; |
---|
| 177 | + |
---|
| 178 | +/* The v4l2 sub-device video device node is registered in read-only mode. */ |
---|
| 179 | +#define V4L2_SUBDEV_CAP_RO_SUBDEV 0x00000001 |
---|
| 180 | + |
---|
158 | 181 | /* Backwards compatibility define --- to be removed */ |
---|
159 | 182 | #define v4l2_subdev_edid v4l2_edid |
---|
160 | 183 | |
---|
| 184 | +#define VIDIOC_SUBDEV_QUERYCAP _IOR('V', 0, struct v4l2_subdev_capability) |
---|
161 | 185 | #define VIDIOC_SUBDEV_G_FMT _IOWR('V', 4, struct v4l2_subdev_format) |
---|
162 | 186 | #define VIDIOC_SUBDEV_S_FMT _IOWR('V', 5, struct v4l2_subdev_format) |
---|
163 | 187 | #define VIDIOC_SUBDEV_G_FRAME_INTERVAL _IOWR('V', 21, struct v4l2_subdev_frame_interval) |
---|