Kconfig 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. config RT_USING_AUDIO
  2. bool "Using Audio device drivers"
  3. default n
  4. help
  5. Enable the RT-Thread audio framework so playback/record devices may be
  6. registered, DMA pipes allocated, and ALSA-like controls exposed via
  7. `rt_audio_*` APIs. Choose this whenever your board has I2S/TDM codecs or
  8. PDM microphones; disable it on MCU builds that do not process audio data.
  9. if RT_USING_AUDIO
  10. config RT_AUDIO_REPLAY_MP_BLOCK_SIZE
  11. int "Replay memory pool block size"
  12. default 4096
  13. help
  14. Size in bytes for each block inside the replay memory pool used by
  15. `dev_audio.c` to stage PCM data before pushing it to DMA. Larger
  16. values increase latency but reduce IRQ pressure; shrink it when
  17. RAM is tight and the codec tolerates smaller bursts.
  18. config RT_AUDIO_REPLAY_MP_BLOCK_COUNT
  19. int "Replay memory pool block count"
  20. default 2
  21. help
  22. Number of replay memory pool blocks. Raising this allows more
  23. outstanding audio buffers (useful for long DMA transfers) but
  24. consumes additional RAM = `BLOCK_SIZE * COUNT`.
  25. config RT_AUDIO_RECORD_PIPE_SIZE
  26. int "Record pipe size"
  27. default 2048
  28. help
  29. Size of the ring buffer used to capture samples before user-space
  30. reads them. Increase this to prevent overflow when the recorder
  31. callback runs slower than the DMA completion interrupt; reduce it
  32. on memory constrained platforms.
  33. endif