media: rcar-vin: Fix stride setting for RAW8 formats
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 2 Apr 2025 18:33:02 +0000 (20:33 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Wed, 23 Apr 2025 08:55:52 +0000 (10:55 +0200)
commite7376745ad5c8548e31d9ea58adfb5a847e017a4
tree1ff0333b73b16bb54a3c0bd811e0f8eb0e65ad1d
parent079afc0b7241e383cf61e5ede906104d85f7a6cb
media: rcar-vin: Fix stride setting for RAW8 formats

Earlier versions of the datasheet where unclear about the stride setting
for RAW8 capture formats. Later datasheets clarifies that the stride
only process in this mode for non-image data. For image data the full
stride shall be used. Compare section "RAW: 8 Bits and Embedded 8-Bit
Non-Image Data, User Defined 8-bit Data" vs "RAW: 8 Bits".

Remove the special case from pixel formats that carry image data and
treat it as any other image format.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20250402183302.140055-1-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/renesas/rcar-vin/rcar-dma.c