mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 05:09:00 +00:00
Add ES7210 audio ADC driver for NuttX implementing the audio lower-half interface. Supports 4-channel recording via I2S with configurable sample rate, bit depth, and mic gain. - drivers/audio/es7210.c: Codec driver using LPWORK for async buffer management, I2C register access, and NuttX audio buffer management - drivers/audio/es7210.h: Internal register definitions and macros - include/nuttx/audio/es7210.h: Public header with platform config structure and es7210_initialize() API - drivers/audio/Kconfig, Make.defs, CMakeLists.txt: Build system integration for CONFIG_AUDIO_ES7210 Key implementation details: - ES7210_SDP_NORMAL (normal I2S) instead of TDM, matching NuttX I2S standard Philips mode - ES7210_ADC_PGA_POWER_ON bit in gain registers REG43-46, required for analog front-end amplifier power-on - 50ms startup delay in es7210_start for codec clock stabilization - I2S_IOCTL(AUDIOIOC_STOP) in es7210_stop to notify I2S layer, preventing DMA from running without buffers after stop Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
|---|---|---|
| .. | ||
| audio_dma.c | ||
| audio_fake.c | ||
| audio_i2s.c | ||
| audio_null.c | ||
| CMakeLists.txt | ||
| cs43l22.c | ||
| cs43l22.h | ||
| cs43l22_debug.c | ||
| cs4344.c | ||
| cs4344.h | ||
| es7210.c | ||
| es7210.h | ||
| es8311.c | ||
| es8311.h | ||
| es8311_debug.c | ||
| es8388.c | ||
| es8388.h | ||
| es8388_debug.c | ||
| esxxxx_common.h | ||
| Kconfig | ||
| Make.defs | ||
| tone.c | ||
| vs1053.c | ||
| vs1053.h | ||
| wm8776.c | ||
| wm8776.h | ||
| wm8904.c | ||
| wm8904.h | ||
| wm8904_debug.c | ||
| wm8994.c | ||
| wm8994.h | ||
| wm8994_debug.c | ||