]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: ov5640: Consolidate JPEG compression mode setting
authorChen-Yu Tsai <wens@csie.org>
Fri, 18 Jan 2019 08:52:06 +0000 (03:52 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 18 Feb 2019 16:31:38 +0000 (11:31 -0500)
commit2b5c18f964df7bb8b7c8319bdaf0548080bb9152
treea5a05450b1de86ac39b8147f7d4e8d5212b86e35
parent7cb013b1049a2a599c1fc344644528eb8bf985b8
media: ov5640: Consolidate JPEG compression mode setting

The register value lists for all the supported resolution settings all
include a register address/value pair for setting the JPEG compression
mode. With the exception of 1080p (which sets mode 2), all resolutions
use mode 3.

The only difference between mode 2 and mode 3 is that mode 2 may have
padding data on the last line, while mode 3 does not add padding data.

As these register values were from dumps of running systems, and the
difference between the modes is quite small, using mode 3 for all
configurations should be OK.

[Sakari Ailus: Align OV5640_REG_JPG_MODE_SELECT register naming.]

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/ov5640.c