]> git.baikalelectronics.ru Git - kernel.git/commit
media: rcar-vin: Report correct image stride
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 8 Aug 2019 05:10:58 +0000 (02:10 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 13 Aug 2019 14:39:02 +0000 (11:39 -0300)
commita6c55f969112a1fc10f831c0d9dc17395f1921e8
tree04b179c2654b80de7fa273940559a158e1cb0281
parentd8066fcffc1ea82215597d3a484454bcd999c259
media: rcar-vin: Report correct image stride

The image stride was adjusted when it was written to hardware and not
when configuring the format. Calculate the correct stride value and
report it to userspace.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/rcar-vin/rcar-dma.c
drivers/media/platform/rcar-vin/rcar-v4l2.c