aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-streams.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-streams.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-streams.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/media/video/ivtv/ivtv-streams.c b/drivers/media/video/ivtv/ivtv-streams.c
index 034c0112431f..9cc037c12609 100644
--- a/drivers/media/video/ivtv/ivtv-streams.c
+++ b/drivers/media/video/ivtv/ivtv-streams.c
@@ -223,7 +223,10 @@ static int ivtv_prep_dev(struct ivtv *itv, int type)
223 223
224 s->vdev->num = num; 224 s->vdev->num = num;
225 s->vdev->v4l2_dev = &itv->v4l2_dev; 225 s->vdev->v4l2_dev = &itv->v4l2_dev;
226 s->vdev->ctrl_handler = itv->v4l2_dev.ctrl_handler; 226 if (itv->v4l2_cap & V4L2_CAP_VIDEO_OUTPUT)
227 s->vdev->ctrl_handler = &itv->hdl_out;
228 else
229 s->vdev->ctrl_handler = itv->v4l2_dev.ctrl_handler;
227 s->vdev->fops = ivtv_stream_info[type].fops; 230 s->vdev->fops = ivtv_stream_info[type].fops;
228 s->vdev->release = video_device_release; 231 s->vdev->release = video_device_release;
229 s->vdev->tvnorms = V4L2_STD_ALL; 232 s->vdev->tvnorms = V4L2_STD_ALL;