[media] s5p-mfc: Set vfl_dir for encoder
authorArun Kumar K <arun.kk@samsung.com>
Thu, 4 Oct 2012 19:14:56 +0000 (16:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 6 Oct 2012 02:09:04 +0000 (23:09 -0300)
The vfl_dir flag is presently set to VFL_DIR_M2M only for decoder.
The encoder is not working because of this. So adding this flag
to the encoder part also.

Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Acked-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c

index aa551339cb41a849bf31656784ac9a453fe4de07..130f4ac8649ec644faf589e734145761f5d7cc91 100644 (file)
@@ -1155,6 +1155,7 @@ static int s5p_mfc_probe(struct platform_device *pdev)
        vfd->release    = video_device_release,
        vfd->lock       = &dev->mfc_mutex;
        vfd->v4l2_dev   = &dev->v4l2_dev;
+       vfd->vfl_dir    = VFL_DIR_M2M;
        snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_ENC_NAME);
        dev->vfd_enc    = vfd;
        ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0);