浏览代码

disp: rotator: use proper color format name for sde rotator

This change updates the color format names and adds
the correct header file for rotator.

Change-Id: I198df87bc4f93a9b390beeba01c29c0c4fb641cc
Signed-off-by: Gaurav LNU <[email protected]>
Signed-off-by: Vinod Polimera <[email protected]>
Gaurav LNU 2 年之前
父节点
当前提交
ca333561cf
共有 1 个文件被更改,包括 9 次插入9 次删除
  1. 9 9
      rotator/sde_rotator_util.c

+ 9 - 9
rotator/sde_rotator_util.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  * Copyright (c) 2012, 2015-2019, 2021, The Linux Foundation. All rights reserved.
  */
 #define pr_fmt(fmt)	"%s: " fmt, __func__
@@ -22,7 +22,7 @@
 #include <linux/iopoll.h>
 #include <linux/regulator/consumer.h>
 #include <linux/module.h>
-#include <media/msm_media_info.h>
+#include <media/mmm_color_fmt.h>
 #include <linux/videodev2.h>
 #include <linux/ion.h>
 
@@ -350,13 +350,13 @@ int sde_mdp_get_plane_sizes(struct sde_mdp_format_params *fmt, u32 w, u32 h,
 
 			switch (fmt->format) {
 			case SDE_PIX_FMT_Y_CBCR_H2V2_VENUS:
-				cf = COLOR_FMT_NV12;
+				cf = MMM_COLOR_FMT_NV12;
 				break;
 			case SDE_PIX_FMT_Y_CRCB_H2V2_VENUS:
-				cf = COLOR_FMT_NV21;
+				cf = MMM_COLOR_FMT_NV21;
 				break;
 			case SDE_PIX_FMT_Y_CBCR_H2V2_P010_VENUS:
-				cf = COLOR_FMT_P010;
+				cf = MMM_COLOR_FMT_P010;
 				break;
 			default:
 				SDEROT_ERR("unknown color format %d\n",
@@ -365,11 +365,11 @@ int sde_mdp_get_plane_sizes(struct sde_mdp_format_params *fmt, u32 w, u32 h,
 			}
 
 			ps->num_planes = 2;
-			ps->ystride[0] = VENUS_Y_STRIDE(cf, w);
-			ps->ystride[1] = VENUS_UV_STRIDE(cf, w);
-			ps->plane_size[0] = VENUS_Y_SCANLINES(cf, h) *
+			ps->ystride[0] = MMM_COLOR_FMT_Y_STRIDE(cf, w);
+			ps->ystride[1] = MMM_COLOR_FMT_UV_STRIDE(cf, w);
+			ps->plane_size[0] = MMM_COLOR_FMT_Y_SCANLINES(cf, h) *
 				ps->ystride[0];
-			ps->plane_size[1] = VENUS_UV_SCANLINES(cf, h) *
+			ps->plane_size[1] = MMM_COLOR_FMT_UV_SCANLINES(cf, h) *
 				ps->ystride[1];
 		} else if (fmt->format == SDE_PIX_FMT_Y_CBCR_H2V2_P010) {
 			/*