Skip to content

Commit 7cd74ff

Browse files
lyakhMauro Carvalho Chehab
authored andcommitted
[media] V4L: imx074: support the new mbus-config subdev ops
Extend the driver to also support [gs]_mbus_config() subdevice video operations. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent fd861a0 commit 7cd74ff

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎drivers/media/video/imx074.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,17 @@ static int imx074_g_chip_ident(struct v4l2_subdev *sd,
267267
return 0;
268268
}
269269

270+
static int imx074_g_mbus_config(struct v4l2_subdev *sd,
271+
struct v4l2_mbus_config *cfg)
272+
{
273+
cfg->type = V4L2_MBUS_CSI2;
274+
cfg->flags = V4L2_MBUS_CSI2_2_LANE |
275+
V4L2_MBUS_CSI2_CHANNEL_0 |
276+
V4L2_MBUS_CSI2_CONTINUOUS_CLOCK;
277+
278+
return 0;
279+
}
280+
270281
static struct v4l2_subdev_video_ops imx074_subdev_video_ops = {
271282
.s_stream = imx074_s_stream,
272283
.s_mbus_fmt = imx074_s_fmt,
@@ -275,6 +286,7 @@ static struct v4l2_subdev_video_ops imx074_subdev_video_ops = {
275286
.enum_mbus_fmt = imx074_enum_fmt,
276287
.g_crop = imx074_g_crop,
277288
.cropcap = imx074_cropcap,
289+
.g_mbus_config = imx074_g_mbus_config,
278290
};
279291

280292
static struct v4l2_subdev_core_ops imx074_subdev_core_ops = {

0 commit comments

Comments
 (0)