]> asedeno.scripts.mit.edu Git - linux.git/commit
media: rcar-vin: Use bytes per line instead of width for UV offset
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 5 Sep 2019 21:25:17 +0000 (18:25 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 10 Oct 2019 10:28:43 +0000 (07:28 -0300)
commit5c9de1fa03e9bb67c8d82240fcb8f550036090b7
tree5af16085e36d740073bcd70dc01a4d3b62121d63
parent2a4558c6adc455bdee6fe85db43cbc83338c0230
media: rcar-vin: Use bytes per line instead of width for UV offset

The image size is doubled for NV16 and is calculated as bytesperline *
height * 2 to accommodate the split of UV data. When writing the offset
to hardware, the width is used instead of bytesperline, fix this.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@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