diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2010-05-08 16:37:53 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-06-01 01:21:20 -0300 |
commit | 9e36eabc8a6fb87d9b97057e0d0f5195c475fbdc (patch) | |
tree | 5d462a79b941104da6c4b1b7b217016d37641eca /drivers/media/video/cx18/cx18-controls.c | |
parent | e17ad1de031f2d5cade70eb0469a53f17d90d7c2 (diff) | |
download | kernel_samsung_crespo-9e36eabc8a6fb87d9b97057e0d0f5195c475fbdc.zip kernel_samsung_crespo-9e36eabc8a6fb87d9b97057e0d0f5195c475fbdc.tar.gz kernel_samsung_crespo-9e36eabc8a6fb87d9b97057e0d0f5195c475fbdc.tar.bz2 |
V4L/DVB: cx18: remove old g/s_fmt from the cx18_av subdev
cx18 has now switched over completely to the new mediabus subdev ops.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-controls.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-controls.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/cx18/cx18-controls.c b/drivers/media/video/cx18/cx18-controls.c index 4b4b465..67043c7 100644 --- a/drivers/media/video/cx18/cx18-controls.c +++ b/drivers/media/video/cx18/cx18-controls.c @@ -297,14 +297,13 @@ int cx18_s_ext_ctrls(struct file *file, void *fh, struct v4l2_ext_controls *c) if (p.video_encoding != cx->params.video_encoding) { int is_mpeg1 = p.video_encoding == V4L2_MPEG_VIDEO_ENCODING_MPEG_1; - struct v4l2_format fmt; + struct v4l2_mbus_framefmt fmt; /* fix videodecoder resolution */ - fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - fmt.fmt.pix.width = cx->params.width - / (is_mpeg1 ? 2 : 1); - fmt.fmt.pix.height = cx->params.height; - v4l2_subdev_call(cx->sd_av, video, s_fmt, &fmt); + fmt.width = cx->params.width / (is_mpeg1 ? 2 : 1); + fmt.height = cx->params.height; + fmt.code = V4L2_MBUS_FMT_FIXED; + v4l2_subdev_call(cx->sd_av, video, s_mbus_fmt, &fmt); } priv.cx = cx; priv.s = &cx->streams[id->type]; |