瀏覽代碼

Merge "msm: camera: isp: Don't add buffer tracker ref count for input buffer" into camera-kernel.lnx.7.0

Camera Software Integration 1 年之前
父節點
當前提交
eb74ee07ee
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/cam_isp/isp_hw_mgr/hw_utils/cam_isp_packet_parser.c

+ 2 - 1
drivers/cam_isp/isp_hw_mgr/hw_utils/cam_isp_packet_parser.c

@@ -911,7 +911,8 @@ static int cam_isp_add_io_buffers_util(
 
 		rc = cam_mem_get_io_buf(io_cfg->mem_handle[plane_id],
 			mmu_hdl, &io_addr[plane_id], &size, NULL,
-			(!plane_id) ? buf_info->prepare->buf_tracker : NULL);
+			(!plane_id && (io_cfg->direction == CAM_BUF_OUTPUT)) ?
+			buf_info->prepare->buf_tracker : NULL);
 		if (rc) {
 			CAM_ERR(CAM_ISP, "no io addr for plane%d", plane_id);
 			rc = -ENOMEM;