aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorArun Kumar K <arun.kk@samsung.com>2012-10-04 15:14:56 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-10-05 22:09:04 -0400
commitcdcf45e70027d7f65eb04df789bd63c0a2f6f47f (patch)
tree25e9aa49e1255983baf53eedd97c863fc24f833e /drivers
parentf96f3cfa0bb8f777fe877d7f881bf7ee58bd162a (diff)
[media] s5p-mfc: Set vfl_dir for encoder
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/s5p-mfc/s5p_mfc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index aa551339cb41..130f4ac8649e 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -1155,6 +1155,7 @@ static int s5p_mfc_probe(struct platform_device *pdev)
1155 vfd->release = video_device_release, 1155 vfd->release = video_device_release,
1156 vfd->lock = &dev->mfc_mutex; 1156 vfd->lock = &dev->mfc_mutex;
1157 vfd->v4l2_dev = &dev->v4l2_dev; 1157 vfd->v4l2_dev = &dev->v4l2_dev;
1158 vfd->vfl_dir = VFL_DIR_M2M;
1158 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_ENC_NAME); 1159 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_ENC_NAME);
1159 dev->vfd_enc = vfd; 1160 dev->vfd_enc = vfd;
1160 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0); 1161 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0);