diff options
Diffstat (limited to 'drivers/media/video/cx18/cx18-controls.c')
-rw-r--r-- | drivers/media/video/cx18/cx18-controls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx18/cx18-controls.c b/drivers/media/video/cx18/cx18-controls.c index 10a4e07b7aca..9505c417371d 100644 --- a/drivers/media/video/cx18/cx18-controls.c +++ b/drivers/media/video/cx18/cx18-controls.c | |||
@@ -67,7 +67,7 @@ int cx18_queryctrl(struct file *file, void *fh, struct v4l2_queryctrl *qctrl) | |||
67 | case V4L2_CID_HUE: | 67 | case V4L2_CID_HUE: |
68 | case V4L2_CID_SATURATION: | 68 | case V4L2_CID_SATURATION: |
69 | case V4L2_CID_CONTRAST: | 69 | case V4L2_CID_CONTRAST: |
70 | if (cx18_av_cmd(cx, VIDIOC_QUERYCTRL, qctrl)) | 70 | if (v4l2_subdev_call(cx->sd_av, core, queryctrl, qctrl)) |
71 | qctrl->flags |= V4L2_CTRL_FLAG_DISABLED; | 71 | qctrl->flags |= V4L2_CTRL_FLAG_DISABLED; |
72 | return 0; | 72 | return 0; |
73 | 73 | ||
@@ -126,7 +126,7 @@ static int cx18_s_ctrl(struct cx18 *cx, struct v4l2_control *vctrl) | |||
126 | case V4L2_CID_HUE: | 126 | case V4L2_CID_HUE: |
127 | case V4L2_CID_SATURATION: | 127 | case V4L2_CID_SATURATION: |
128 | case V4L2_CID_CONTRAST: | 128 | case V4L2_CID_CONTRAST: |
129 | return cx18_av_cmd(cx, VIDIOC_S_CTRL, vctrl); | 129 | return v4l2_subdev_call(cx->sd_av, core, s_ctrl, vctrl); |
130 | 130 | ||
131 | case V4L2_CID_AUDIO_VOLUME: | 131 | case V4L2_CID_AUDIO_VOLUME: |
132 | case V4L2_CID_AUDIO_MUTE: | 132 | case V4L2_CID_AUDIO_MUTE: |
@@ -151,7 +151,7 @@ static int cx18_g_ctrl(struct cx18 *cx, struct v4l2_control *vctrl) | |||
151 | case V4L2_CID_HUE: | 151 | case V4L2_CID_HUE: |
152 | case V4L2_CID_SATURATION: | 152 | case V4L2_CID_SATURATION: |
153 | case V4L2_CID_CONTRAST: | 153 | case V4L2_CID_CONTRAST: |
154 | return cx18_av_cmd(cx, VIDIOC_G_CTRL, vctrl); | 154 | return v4l2_subdev_call(cx->sd_av, core, g_ctrl, vctrl); |
155 | 155 | ||
156 | case V4L2_CID_AUDIO_VOLUME: | 156 | case V4L2_CID_AUDIO_VOLUME: |
157 | case V4L2_CID_AUDIO_MUTE: | 157 | case V4L2_CID_AUDIO_MUTE: |
@@ -278,7 +278,7 @@ int cx18_s_ext_ctrls(struct file *file, void *fh, struct v4l2_ext_controls *c) | |||
278 | fmt.fmt.pix.width = cx->params.width | 278 | fmt.fmt.pix.width = cx->params.width |
279 | / (is_mpeg1 ? 2 : 1); | 279 | / (is_mpeg1 ? 2 : 1); |
280 | fmt.fmt.pix.height = cx->params.height; | 280 | fmt.fmt.pix.height = cx->params.height; |
281 | cx18_av_cmd(cx, VIDIOC_S_FMT, &fmt); | 281 | v4l2_subdev_call(cx->sd_av, video, s_fmt, &fmt); |
282 | } | 282 | } |
283 | priv.cx = cx; | 283 | priv.cx = cx; |
284 | priv.s = &cx->streams[id->type]; | 284 | priv.s = &cx->streams[id->type]; |