summaryrefslogtreecommitdiff
path: root/drivers/dma/pxp/pxp_dma_v3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/pxp/pxp_dma_v3.c')
-rw-r--r--drivers/dma/pxp/pxp_dma_v3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/pxp/pxp_dma_v3.c b/drivers/dma/pxp/pxp_dma_v3.c
index 37d63f072219..8d2e10edc14f 100644
--- a/drivers/dma/pxp/pxp_dma_v3.c
+++ b/drivers/dma/pxp/pxp_dma_v3.c
@@ -2647,7 +2647,7 @@ static int pxp_2d_task_config(struct pxp_pixmap *input,
pxp_fetch_config(input, position);
break;
case PXP_2D_CSC1:
- pxp_csc1_config(input, false);
+ pxp_csc1_config(input, true);
break;
case PXP_2D_ROTATION1:
pxp_rotation1_config(input);
@@ -3217,8 +3217,8 @@ static int convert_param_to_pixmap(struct pxp_pixmap *pixmap,
pixmap->height = param->height;
pixmap->format = param->pixel_fmt;
pixmap->paddr = param->paddr;
- pixmap->pitch = param->stride;
pixmap->bpp = get_bpp_from_fmt(pixmap->format);
+ pixmap->pitch = param->width * pixmap->bpp >> 3;
pixmap->crop.x = param->left;
pixmap->crop.y = param->top;