]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: qcom: camss: vfe: Fix BPL alignment for QCM2290
authorLoic Poulain <loic.poulain@oss.qualcomm.com>
Wed, 17 Sep 2025 12:43:12 +0000 (14:43 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Wed, 24 Sep 2025 10:52:09 +0000 (12:52 +0200)
VFE-340 requires 8-byte alignment instead of 16-byte. This adjustment
prevents image corruption/misaligment when padding is needed.

Example: For SRGGB10_1X10/3280x2464, aligned BPL was 4112 instead of 4104

Fixes: 9e89149a19ed ("media: qcom: camss: add support for QCM2290 camss")
Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/qcom/camss/camss-vfe.c

index ee08dbbddf8897faaa9b96768ff13d3c3aed780f..dff8d0a1e8c228878d03d95aaf91f262b208f9e7 100644 (file)
@@ -1989,7 +1989,6 @@ static int vfe_bpl_align(struct vfe_device *vfe)
        int ret = 8;
 
        switch (vfe->camss->res->version) {
-       case CAMSS_2290:
        case CAMSS_7280:
        case CAMSS_8250:
        case CAMSS_8280XP: