WSL2-Linux-Kernel/drivers/media/platform/s5p-jpeg
Jacek Anaszewski 7f7d8fe258 [media] s5p-jpeg: Initialize vfd_decoder->vfl_dir field
This patch fixes regression introduced in commit 5c77879ff9
"[media] v4l2-dev: add new VFL_DIR_ defines" caused by not initializing
the vfl_dir field of the vfd_decoder instance of struct video_device,
after the field was introduced. It precluded calling the driver's ioctls
which require vfl_dir not to be equal to VFL_DIR_RX which is defined as
0 and uninitialized vfl_dir field is interpreted as such. In effect the
test in the v4l_s_fmt function failed for the ioctls that expect is_tx
to be false, which prevented the ioctl callbacks registered by the driver
from being called.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-09-24 13:41:53 -03:00
..
Makefile [media] s5p makefiles: don't override other selections on obj-[ym] 2013-06-20 05:46:00 -03:00
jpeg-core.c [media] s5p-jpeg: Initialize vfd_decoder->vfl_dir field 2013-09-24 13:41:53 -03:00
jpeg-core.h [media] s5p-jpeg: convert struct spinlock to spinlock_t 2012-12-27 14:59:44 -02:00
jpeg-hw.h [media] rename drivers/media/video as .../platform 2012-08-15 16:43:09 -03:00
jpeg-regs.h [media] rename drivers/media/video as .../platform 2012-08-15 16:43:09 -03:00