基于RK3288 平台 Simple card声卡添加及调试
Simple card即简单通用的machine driver, 如果simple-card框架足够满足需求,建议优先使用simple card框架,简单,方便,且易用.
一、 添加声卡
1. 添加codec driver,比如添加:sound/soc/codec/es8323.c
2. 修改sound/soc/codec/Kconfig以及Makefile加入驱动编译。
sound/soc/codec/Kconfig: 添加
select SND_SOC_ES8323 if I2C
config SND_SOC_ES8323
tristate "Everest Semi ES8323 CODEC"
depends on I2C
sound/soc/codec/Makefile: 添加
snd-soc-es8323-objs := es8323.o
obj-$(CONFIG_SND_SOC_ES8323) += snd-soc-es8323.o
3. menuconfig中enable simple card以及codec
make menuconfig Device Drivers ---> Sound card support ---> Advanced Linux Sound Architecture ---> ALSA for SoC audio support ---> ASoC support for Rockchip
CODEC drivers --->
<*> Everest Semi ES8323 CODEC
4. 产品的DTS中添加Simple Card Node
二、修改DTS文件
1 添加sound card 和 spdif(可选添加,用不到不用添加)
2 添加:&i2c2(es8323 mclk)和&i2s(es8323 I2S通信)
3 添加&sound
注意,需要增加内容如下:
{\
sound: sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-car
基于RK3288 平台 Simple card声卡添加及调试
最新推荐文章于 2024-08-09 16:45:49 发布
本文介绍了如何在基于RK3288的平台上添加和调试Simple card声卡,涉及codec驱动添加、DTS配置、声卡节点设置等步骤,并针对可能出现的问题提供了解决方案。
摘要由CSDN通过智能技术生成