From b4a482eae15d4b3ff489770a78e2d139cbb79c69 Mon Sep 17 00:00:00 2001 From: armando Date: Thu, 7 Aug 2025 14:10:29 +0800 Subject: [PATCH] fix(cam): fixed dvp dma desc type on s3" --- .../dvp/private_include/esp_cam_ctlr_dvp_dma.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/esp_driver_cam/dvp/private_include/esp_cam_ctlr_dvp_dma.h b/components/esp_driver_cam/dvp/private_include/esp_cam_ctlr_dvp_dma.h index 1a61d26104..dbb6a46641 100644 --- a/components/esp_driver_cam/dvp/private_include/esp_cam_ctlr_dvp_dma.h +++ b/components/esp_driver_cam/dvp/private_include/esp_cam_ctlr_dvp_dma.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2024-2025 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -18,7 +18,11 @@ extern "C" { /** * @brief DVP DMA description object */ -typedef dma_descriptor_align8_t esp_cam_ctlr_dvp_dma_desc_t; +#if defined(SOC_GDMA_BUS_AHB) && (SOC_GDMA_TRIG_PERIPH_PARLIO0_BUS == SOC_GDMA_BUS_AHB) +typedef dma_descriptor_align4_t esp_cam_ctlr_dvp_dma_desc_t; +#elif defined(SOC_GDMA_BUS_AXI) && (SOC_GDMA_TRIG_PERIPH_PARLIO0_BUS == SOC_GDMA_BUS_AXI) +typedef dma_descriptor_align8_t esp_cam_ctlr_dvp_dma_desc_t; +#endif /** * @brief DVP DMA object