Files
linux/drivers
Pawe? Chmiel b956497426 media: s5p-jpeg: Check for fmt_ver_flag when doing fmt enumeration
[ Upstream commit 49710c32cd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-05 22:29:14 +02:00
..
2019-02-12 19:44:54 +01:00
2018-12-21 14:11:37 +01:00
2019-04-05 22:29:12 +02:00
2018-12-21 14:11:36 +01:00
2018-11-13 11:17:02 -08:00
2018-11-27 16:09:41 +01:00
2018-10-03 17:01:42 -07:00