]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] s5p-fimc: Fix horizontal/vertical image flip
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Mon, 26 Nov 2012 14:08:26 +0000 (11:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 21 Dec 2012 13:55:13 +0000 (11:55 -0200)
commit1bc05e77db1b0c2f5ec3917a9b21d64c01342b5f
treee7d24203cb54b033dddd4bd76de57a91cefbf275
parentfe4abb550f68ace5bbc23030c968c138c6a69759
[media] s5p-fimc: Fix horizontal/vertical image flip

Setting FIMC_REG_CITRGFMT_FLIP_X_MIRROR bit causes X-axis image
flip (vertical flip) and thus it corresponds to V4L2_CID_VFLIP.
Likewise, setting FIMC_REG_CITRGFMT_FLIP_Y_MIRROR bit causes Y-axis
image flip (horizontal flip) and thus it corresponds to V4L2_CID_HFLIP.
Currently the driver does X-axis flip when V4L2_CID_HFLIP is set and
Y-axis flip for V4L2_CID_VFLIP. Fix this incorrect assignment by setting
proper FIMC_REG_CITRGFMT register bits for ctx->hflip and ctx->vflip.

Reported-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-fimc/fimc-reg.c