[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
5c77879ff9
commit
954f340fc7
@@ -1722,6 +1722,8 @@ static int uvc_register_video(struct uvc_device *dev,
|
||||
vdev->v4l2_dev = &dev->vdev;
|
||||
vdev->fops = &uvc_fops;
|
||||
vdev->release = uvc_release;
|
||||
if (stream->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
|
||||
vdev->vfl_dir = VFL_DIR_TX;
|
||||
strlcpy(vdev->name, dev->name, sizeof vdev->name);
|
||||
|
||||
/* Set the driver data before calling video_register_device, otherwise
|
||||
|
Reference in New Issue
Block a user