fix(gx15): no sound when recording mic on prod radio (#7813)

This commit is contained in:
3djc
2026-09-24 12:04:29 +10:00
committed by GitHub
parent 69d016fab0
commit be527efc1c
2 changed files with 72 additions and 37 deletions
+5 -5
View File
@@ -186,11 +186,11 @@ TIM17: ROTARY_ENCODER_TIMER
#define I2S_DMA_Stream_IRQHandler DMA1_Stream4_IRQHandler
#if !defined(FLYSKY_GIMBAL)
#define PDM_CLOCK GPIO_PIN(GPIOE, 5)
#define PDM_CLOCK_GPIO_AF LL_GPIO_AF_6
#define PDM_SAI_BLOCK SAI1_Block_A
#define PDM_SAI_KER_FREQ 48000000 // PLL1Q (see system_clock.c)
#define PDM_CLOCK_FREQ 1600000 // 1.6 MHz → MCKDIV=30, R=100 → 16 kHz PCM direct
#define PDM_CLOCK GPIO_PIN(GPIOD, 3) // V1.5+ board, DFSDM1_CKOUT
#define PDM_CLOCK_GPIO_AF LL_GPIO_AF_3
#define PDM_CLOCK_DFSDM
#define PDM_SAI_KER_FREQ 48000000 // PLL1Q, DFSDM1 audio clock (see system_clock.c)
#define PDM_CLOCK_FREQ 1600000 // 1.6 MHz → ÷30, R=100 → 16 kHz PCM direct
#define PDM_DATA GPIO_PIN(GPIOE, 4)
#define PDM_DATA_GPIO_PORT GPIOE
#define PDM_DATA_GPIO_PIN 4