]> git.baikalelectronics.ru Git - kernel.git/commit
[media] s5p-fimc: Fix bytesperline value for V4L2_PIX_FMT_YUV420M format
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Fri, 11 Jan 2013 09:36:19 +0000 (06:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 5 Feb 2013 19:28:48 +0000 (17:28 -0200)
commit7e0cd9d0b9637b4f93e53b67e395728622f153a3
treea7c425b7b3b7a2a69faad5a42ce11f7f22d1636e
parentde41cc4888c2f1f3e72da3db068204a190aa2bce
[media] s5p-fimc: Fix bytesperline value for V4L2_PIX_FMT_YUV420M format

Make sure bytesperline for Cb, Cr planes for V4L2_PIX_FMT_YUV420M
format is half of the Y plane value, rather than having same
bytesperline for all planes.
While at it, simplify the bytesperline parameter handling by
storing it when image format is set and returning those values
when getting the format, instead of recalculating bytesperline
from intermediate parameters.

Reported-by: Sebastian Dröge <sebastian.droege@collabora.co.uk>
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-capture.c
drivers/media/platform/s5p-fimc/fimc-core.c
drivers/media/platform/s5p-fimc/fimc-core.h
drivers/media/platform/s5p-fimc/fimc-m2m.c