Firefly开源社区
标题:
如何使hdmi和dp音频同时输出不同声音?
[打印本页]
作者:
luobo
时间:
2021-9-4 15:20
标题:
如何使hdmi和dp音频同时输出不同声音?
目前的dts配置如下:
i2s2: i2s@ff8a0000 {
compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
reg = <0x0 0xff8a0000 0x0 0x1000>;
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
dmas = <&dmac_bus 4>, <&dmac_bus 5>;
dma-names = "tx";
clock-names = "i2s_clk", "i2s_hclk";
clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
resets = <&cru SRST_I2S2_8CH>, <&cru SRST_H_I2S2_8CH>;
reset-names = "reset-m", "reset-h";
power-domains = <&power RK3399_PD_SDIOAUDIO>;
status = "disabled";
};
hdmi_dp_sound: hdmi-dp-sound {
status = "okay";
compatible = "rockchip,rk3399-hdmi-dp";
rockchip,cpu = <&i2s2>;
rockchip,codec = <&hdmi>, <&cdn_dp>;
};
&i2s2 {
#sound-dai-cells = <0>;
//dmas = <&dmac_bus 4>;
//dma-names = "tx";
status = "okay";
};
哪位大神能帮忙告知如何操作才能使hdmi和dp同时输出不同的声音,万分感谢!!!
作者:
895816513
时间:
2022-5-19 09:05
这是需要在系统上选择的 输入
aplay -l
查看声卡设备,然后在播放音乐用不同的声卡
root@firefly:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: rockchiphdmi [rockchip,hdmi], device 0: ff8a0000.i2s-i2s-hifi i2s-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: rockchiprt5640c [rockchip,rt5640-codec], device 0: ff890000.i2s-rt5640-aif1 rt5640-aif1-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: rockchipcdndpso [rockchip-cdndp-sound], device 0: DP PCM spdif-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
复制代码
欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/)
Powered by Discuz! X3.1