|
aio3399音频
发表于 2018-8-9 11:49:56
浏览:3538
|
回复:1
打印
只看该作者
[复制链接]
楼主
各位大神 有个疑问 就是图中两种方式配置的hdmi 有什么区别 现在配置HDMI声卡方式总共有三种 都被搞混了 一套是 RK 自定义HDMI 框架,
hdmi_sound: hdmi-sound {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,cpu {
sound-dai = <&i2s2>;
};
simple-audio-card,codec {
sound-dai = <&dw_hdmi_audio>;
};
};
dw_hdmi_audio: dw-hdmi-audio {
status = "okay";
compatible = "rockchip,dw-hdmi-audio";
#sound-dai-cells = <0>;
};
一套是DRM标准的HDMI 框架,
hdmi: hdmi@ff940000 {
compatible = "rockchip,rk3399-dw-hdmi";
……
#address-cells = <1>;
#size-cells = <0>;
#sound-dai-cells = <0>;
};
hdmi_sound: hdmi-sound {
status = "okay";
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,mclk-fs = <256>;
simple-audio-card,name = "rockchip,hdmi";
simple-audio-card,cpu {
sound-dai = <&i2s2>;
};
simple-audio-card,codec {
sound-dai = <&hdmi>;
};
};
最后一套是
&hdmi_dp_sound {
status = "okay";
};
hdmi_dp_sound: hdmi-dp-sound {
status = "disabled";
compatible = "rockchip,rk3399-hdmi-dp";
rockchip,cpu = <&i2s2>;
rockchip,codec = <&hdmi>, <&cdn_dp>;
};
|
|