diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2012-09-05 06:05:50 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-09-26 11:57:06 -0300 |
commit | 954f340fc7f2fa2ae8812670da49e828d2686d8e (patch) | |
tree | b6faff35d6f9a58fb2edde91b3888c7794b1b942 /drivers/media/pci/ivtv/ivtv-streams.c | |
parent | 5c77879ff9ab9e7dd5b4a78666a09af1a8854be9 (diff) | |
download | op-kernel-dev-954f340fc7f2fa2ae8812670da49e828d2686d8e.zip op-kernel-dev-954f340fc7f2fa2ae8812670da49e828d2686d8e.tar.gz |
[media] Set vfl_dir for all display or m2m drivers
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/pci/ivtv/ivtv-streams.c')
-rw-r--r-- | drivers/media/pci/ivtv/ivtv-streams.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-streams.c b/drivers/media/pci/ivtv/ivtv-streams.c index 0ff264e..7b8648a 100644 --- a/drivers/media/pci/ivtv/ivtv-streams.c +++ b/drivers/media/pci/ivtv/ivtv-streams.c @@ -222,6 +222,9 @@ static int ivtv_prep_dev(struct ivtv *itv, int type) s->vdev->num = num; s->vdev->v4l2_dev = &itv->v4l2_dev; + if (ivtv_stream_info[type].v4l2_caps & + (V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_SLICED_VBI_OUTPUT)) + s->vdev->vfl_dir = VFL_DIR_TX; s->vdev->fops = ivtv_stream_info[type].fops; s->vdev->ctrl_handler = itv->v4l2_dev.ctrl_handler; s->vdev->release = video_device_release; |