Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Arun Kumar K and committed by
Mauro Carvalho Chehab
cdcf45e7 f96f3cfa

+1
+1
drivers/media/platform/s5p-mfc/s5p_mfc.c
··· 1155 1155 vfd->release = video_device_release, 1156 1156 vfd->lock = &dev->mfc_mutex; 1157 1157 vfd->v4l2_dev = &dev->v4l2_dev; 1158 + vfd->vfl_dir = VFL_DIR_M2M; 1158 1159 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_ENC_NAME); 1159 1160 dev->vfd_enc = vfd; 1160 1161 ret = video_register_device(vfd, VFL_TYPE_GRABBER, 0);