Browse Source

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

Camera Software Integration 1 year ago
parent
commit
eb74ee07ee
1 changed files with 2 additions and 1 deletions
  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;