OpenCloudOS-Kernel/drivers/media/platform/s5p-jpeg
Pawe? Chmiel 49710c32cd media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration
Previously when doing format enumeration, it was returning all
 formats supported by driver, even if they're not supported by hw.
Add missing check for fmt_ver_flag, so it'll be fixed and only those
 supported by hw will be returned. Similar thing is already done
 in s5p_jpeg_find_format.

It was found by using v4l2-compliance tool and checking result
 of VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS test
and using v4l2-ctl to get list of all supported formats.

Tested on s5pv210-galaxys (Samsung i9000 phone).

Fixes: bb677f3ac4 ("[media] Exynos4 JPEG codec v4l2 driver")

Signed-off-by: Pawe? Chmiel <pawel.mikolaj.chmiel@gmail.com>
Reviewed-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
[hverkuil-cisco@xs4all.nl: fix a few alignment issues]
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-01-16 11:28:16 -05:00
..
Makefile [media] s5p-jpeg: Add support for Exynos3250 SoC 2014-07-30 19:15:06 -03:00
jpeg-core.c media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration 2019-01-16 11:28:16 -05:00
jpeg-core.h media: Change Andrzej Pietrasiewicz's e-mail address 2019-01-16 11:21:07 -05:00
jpeg-hw-exynos4.c media: s5p-jpeg: Clear JPEG_CODEC_ON bits in sw reset function 2017-08-20 08:01:45 -04:00
jpeg-hw-exynos4.h [media] s5p-jpeg: add support for 5433 2015-10-01 08:40:04 -03:00
jpeg-hw-exynos3250.c media: s5p-jpeg: don't return a value on a void function 2018-05-04 08:58:22 -04:00
jpeg-hw-exynos3250.h [media] s5p-jpeg: Add support for Exynos3250 SoC 2014-07-30 19:15:06 -03:00
jpeg-hw-s5p.c media: Change Andrzej Pietrasiewicz's e-mail address 2019-01-16 11:21:07 -05:00
jpeg-hw-s5p.h media: Change Andrzej Pietrasiewicz's e-mail address 2019-01-16 11:21:07 -05:00
jpeg-regs.h media: Change Andrzej Pietrasiewicz's e-mail address 2019-01-16 11:21:07 -05:00