diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-07-26 10:26:56 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-03 16:27:12 -0400 |
commit | 7cd74ffb04e05c115ebe53a59f83a73e677a2c63 (patch) | |
tree | c1d69410c55e45775612ad84c64ba970fa6eab7c /drivers/media/video/imx074.c | |
parent | fd861a072ca66b32db923f5cf8199b192317dda7 (diff) |
[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>
Diffstat (limited to 'drivers/media/video/imx074.c')
-rw-r--r-- | drivers/media/video/imx074.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/media/video/imx074.c b/drivers/media/video/imx074.c index 0382ea752e6f..63f17aa57271 100644 --- a/drivers/media/video/imx074.c +++ b/drivers/media/video/imx074.c | |||
@@ -267,6 +267,17 @@ static int imx074_g_chip_ident(struct v4l2_subdev *sd, | |||
267 | return 0; | 267 | return 0; |
268 | } | 268 | } |
269 | 269 | ||
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 | |||
270 | static struct v4l2_subdev_video_ops imx074_subdev_video_ops = { | 281 | static struct v4l2_subdev_video_ops imx074_subdev_video_ops = { |
271 | .s_stream = imx074_s_stream, | 282 | .s_stream = imx074_s_stream, |
272 | .s_mbus_fmt = imx074_s_fmt, | 283 | .s_mbus_fmt = imx074_s_fmt, |
@@ -275,6 +286,7 @@ static struct v4l2_subdev_video_ops imx074_subdev_video_ops = { | |||
275 | .enum_mbus_fmt = imx074_enum_fmt, | 286 | .enum_mbus_fmt = imx074_enum_fmt, |
276 | .g_crop = imx074_g_crop, | 287 | .g_crop = imx074_g_crop, |
277 | .cropcap = imx074_cropcap, | 288 | .cropcap = imx074_cropcap, |
289 | .g_mbus_config = imx074_g_mbus_config, | ||
278 | }; | 290 | }; |
279 | 291 | ||
280 | static struct v4l2_subdev_core_ops imx074_subdev_core_ops = { | 292 | static struct v4l2_subdev_core_ops imx074_subdev_core_ops = { |