|
RK3328 音频驱动调试问题
发表于 2019-2-27 15:27:35
浏览:2830
|
回复:0
打印
只看该作者
[复制链接]
楼主
使用RK3328平台,使用外部AD芯片ES7242输入通过I2S传输到SOC 再通过内部CODEC输出。
sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "rockchip,es7242";
simple-audio-card,widgets = "Microphone","Mic Jack","Headphone","Headphone Jack";
simple-audio-card,routing =
"Mic Jack","MICBIAS1","IN1P","Mic Jack",
"Headphone Jack","HPOL","Headphone Jack","HPOR";
simple-audio-card,cpu {
sound-dai = <&i2s1>;
};
simple-audio-card,codec {
sound-dai = <&es7242>;
};
};
&codec {
#sound-dai-cells = <0>;
status = "okay";
};
&i2c0 {
status = "okay";
es7242: es7242@26 {
compatible = "everest,es7242";
#sound-dai-cells = <0>;
reg = <0x26>;
clocks = <&cru SCLK_I2S1_OUT>;
clock-names = "mclk";
//pinctrl-names = "default";
//pinctrl-0 = <&gpio_pdn>;
//sw-gpio = <&gpio3 6 GPIO_ACTIVE_HIGH>;
det-micin-exter = <&gpio3 5 IRQ_TYPE_EDGE_BOTH>;
status = "okay";
};
};
这样配置是否有问题 ,内核需要同时编译RK3328自带的CODEC和AD 芯片的代码?
|
|