外部 Codec 配置
使能 Audio 驱动
-
在 Luban-Lite 根目录下执行以下 scons --menuconfig 命令,进入 menuconfig 的功能配置界面,按如下选择:
Board options ---> [*] Using audio注:为了使用方便,选择 Using audio 后会自动选择 audio 驱动框架。
-
Audio 模块的 driver 层驱动基于 RT-Thread 的 audio 驱动框架实现,因此需要使能 RT-Thread 的 audio 框架。
RT-Thread options ---> RT-Thread Components ---> Device Drivers ---> [*] Using Audio device drivers (2048) Replay memory pool block size (2) Replay memory pool block (2048) Record pipe size
功能配置
Drivers options --->
Peripheral --->
External Audio Codec Support --->
[*] Select external audio codec
[ ] es8388 (NEW)
[*] tlv320aic3101 (NEW) //使用的 Codec
[ ] cs4344 (NEW)
TLV320AIC3101 codec options --->
(i2c1) tlv320 i2c port select (NEW) //Codec 的初始化通道
(256) MCLK NFS (NEW)
(64) SCLK NFS (NEW)
(PA.13) PA shutdown pin (NEW) //控制播放的 shutdown
Select PA enable level (high level Active) ---> //使能引脚的工作电平
