From d5039bcbbe80a0de030cbc415ff317aba30a0308 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 22 Sep 2024 14:24:37 -0700 Subject: [PATCH] camerad: reduce internal ISP buffer count (#33619) --- system/camerad/cameras/spectra.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/system/camerad/cameras/spectra.cc b/system/camerad/cameras/spectra.cc index 6e967b60cc..6e855f08e8 100644 --- a/system/camerad/cameras/spectra.cc +++ b/system/camerad/cameras/spectra.cc @@ -711,8 +711,7 @@ void SpectraCamera::configISP() { LOGD("acquire isp dev"); // config ISP - // TODO: unclear where this 15 comes from - alloc_w_mmu_hdl(m->video0_fd, 15*ALIGNED_SIZE(buf0_size, buf0_alignment), (uint32_t*)&buf0_handle, buf0_alignment, + alloc_w_mmu_hdl(m->video0_fd, FRAME_BUF_COUNT*ALIGNED_SIZE(buf0_size, buf0_alignment), (uint32_t*)&buf0_handle, buf0_alignment, CAM_MEM_FLAG_HW_READ_WRITE | CAM_MEM_FLAG_KMD_ACCESS | CAM_MEM_FLAG_UMD_ACCESS | CAM_MEM_FLAG_CMD_BUF_TYPE, m->device_iommu, m->cdm_iommu); config_isp(0, 0, 1, 0);