On Tue Mar 3 10:42:37 2026 +0200, Svyatoslav Ryhel wrote:
> Luma buffer stride is calculated by multiplying height in pixels of image
> by bytes per line. Adjust that value accordingly.
> 
> Tested-by: Luca Ceresoli <[email protected]> # tegra20, parallel 
> camera
> Signed-off-by: Svyatoslav Ryhel <[email protected]>
> Reviewed-by: Mikko Perttunen <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>

Patch committed.

Thanks,
Hans Verkuil

 drivers/staging/media/tegra-video/tegra20.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

---

diff --git a/drivers/staging/media/tegra-video/tegra20.c 
b/drivers/staging/media/tegra-video/tegra20.c
index 36a57078d539..1b8f2a2213f2 100644
--- a/drivers/staging/media/tegra-video/tegra20.c
+++ b/drivers/staging/media/tegra-video/tegra20.c
@@ -504,7 +504,7 @@ static void tegra20_camera_capture_setup(struct 
tegra_vi_channel *chan)
        u32 data_type = chan->fmtinfo->img_dt;
        int width  = chan->format.width;
        int height = chan->format.height;
-       int stride_l = chan->format.bytesperline;
+       int stride_l = chan->format.bytesperline * height;
        int stride_c = (output_fourcc == V4L2_PIX_FMT_YUV420 ||
                        output_fourcc == V4L2_PIX_FMT_YVU420) ? 1 : 0;
        enum tegra_vi_out output_channel = (data_type == TEGRA_IMAGE_DT_RAW8 ||
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to