aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-05 05:05:50 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 10:57:06 -0400
commit954f340fc7f2fa2ae8812670da49e828d2686d8e (patch)
treeb6faff35d6f9a58fb2edde91b3888c7794b1b942 /drivers/media/pci
parent5c77879ff9ab9e7dd5b4a78666a09af1a8854be9 (diff)
[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')
-rw-r--r--drivers/media/pci/ivtv/ivtv-streams.c3
-rw-r--r--drivers/media/pci/zoran/zoran_card.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/pci/ivtv/ivtv-streams.c b/drivers/media/pci/ivtv/ivtv-streams.c
index 0ff264e0e0f6..7b8648a827f5 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)
222 222
223 s->vdev->num = num; 223 s->vdev->num = num;
224 s->vdev->v4l2_dev = &itv->v4l2_dev; 224 s->vdev->v4l2_dev = &itv->v4l2_dev;
225 if (ivtv_stream_info[type].v4l2_caps &
226 (V4L2_CAP_VIDEO_OUTPUT | V4L2_CAP_SLICED_VBI_OUTPUT))
227 s->vdev->vfl_dir = VFL_DIR_TX;
225 s->vdev->fops = ivtv_stream_info[type].fops; 228 s->vdev->fops = ivtv_stream_info[type].fops;
226 s->vdev->ctrl_handler = itv->v4l2_dev.ctrl_handler; 229 s->vdev->ctrl_handler = itv->v4l2_dev.ctrl_handler;
227 s->vdev->release = video_device_release; 230 s->vdev->release = video_device_release;
diff --git a/drivers/media/pci/zoran/zoran_card.c b/drivers/media/pci/zoran/zoran_card.c
index c3602d6cd48e..fffc54b452c8 100644
--- a/drivers/media/pci/zoran/zoran_card.c
+++ b/drivers/media/pci/zoran/zoran_card.c
@@ -1055,6 +1055,10 @@ zr36057_init (struct zoran *zr)
1055 memcpy(zr->video_dev, &zoran_template, sizeof(zoran_template)); 1055 memcpy(zr->video_dev, &zoran_template, sizeof(zoran_template));
1056 zr->video_dev->parent = &zr->pci_dev->dev; 1056 zr->video_dev->parent = &zr->pci_dev->dev;
1057 strcpy(zr->video_dev->name, ZR_DEVNAME(zr)); 1057 strcpy(zr->video_dev->name, ZR_DEVNAME(zr));
1058 /* It's not a mem2mem device, but you can both capture and output from
1059 one and the same device. This should really be split up into two
1060 device nodes, but that's a job for another day. */
1061 zr->video_dev->vfl_dir = VFL_DIR_M2M;
1058 err = video_register_device(zr->video_dev, VFL_TYPE_GRABBER, video_nr[zr->id]); 1062 err = video_register_device(zr->video_dev, VFL_TYPE_GRABBER, video_nr[zr->id]);
1059 if (err < 0) 1063 if (err < 0)
1060 goto exit_free; 1064 goto exit_free;