media: rcar-vin: Fix image alignment for setting pre clipping
authorKoji Matsuoka <koji.matsuoka.xm@renesas.com>
Fri, 13 Apr 2018 02:18:13 +0000 (22:18 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 12:39:15 +0000 (08:39 -0400)
commit536f0f55384cfcc25d1f8f3cfd4a44048dca3b46
tree8bd15f81ecbc320af96429c9ae2bdc4970bfdf6b
parent0fd6e1217303c98550de3552c65837c3f56729da
media: rcar-vin: Fix image alignment for setting pre clipping

In Video Pixel/Line Pre-Clip Register, the setting value can be
set in 1 line unit, but it can only be specified as a multiple of
4 by v4l_bound_align_image function().
So correct that it can be specified in 1 line unit with this patch.

Signed-off-by: Koji Matsuoka <koji.matsuoka.xm@renesas.com>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-v4l2.c