- 积分
- 28
贡献205
飞刀32 FD
注册时间2019-10-21
在线时间5 小时
|
楼主 |
发表于 2020-4-22 13:42:11
|
显示全部楼层
我们硬件电路上做了两路WM8960分别挂载了I2C1和I2C2上。刚才已经试过设备树中设置不同的model,名字不冲突了,但是看log中依然找不到audio-routing = 中的一些东西。以下是两路声卡的设备树以及打印的log
&mx6sound {
compatible = "fsl,imx6q-sabresd-wm8960",
"fsl,imx-audio-wm8960";
model = "wm8960-audio";
status="okay";
audio-codec = <&codec2>;
cpu-dai = <&ssi1>;
mux-int-port = <1>;
mux-ext-port = <3>;
audio-routing =
"Headphone Jack", "HP_L",
"Headphone Jack", "HP_R",
"Ext Spk", "SPK_RP",
"Ext Spk", "SPK_RN",
"Ext Spk", "SPK_LP",
"Ext Spk", "SPK_LN",
"AMIC", "MICB",
"LINPUT1", "AMIC",
"LINPUT2", "AMIC",
"RINPUT1", "AMIC",
"RINPUT2", "AMIC",
"LINPUT3", "AMIC",
"RINPUT3", "AMIC",
"DMIC", "MICB",
"LINPUT1", "DMIC",
"LINPUT2", "DMIC",
"RINPUT1", "DMIC",
"RINPUT2", "DMIC",
"CPU-Playback", "ASRC-Playback",
"Playback", "CPU-Playback",
"ASRC-Capture", "CPU-Capture",
"CPU-Capture", "Capture";
hp-det-gpios = <&gpio7 8 0>;
};
&mx6sound2 {
compatible = "fsl,imx6q-sabresd-wm8960",
"fsl,imx-audio-wm8960";
model = "wm8960_2-audio";
status="okay";
audio-codec = <&codec3>;
cpu-dai = <&ssi2>;
mux-int-port = <2>;
mux-ext-port = <4>;
audio-routing =
"Headphone Jack", "HP_L",
"Headphone Jack", "HP_R",
"Ext Spk", "SPK_RP",
"Ext Spk", "SPK_RN",
"Ext Spk", "SPK_LP",
"Ext Spk", "SPK_LN",
"AMIC", "MICB",
"LINPUT1", "AMIC",
"LINPUT2", "AMIC",
"RINPUT1", "AMIC",
"RINPUT2", "AMIC",
"LINPUT3", "AMIC",
"RINPUT3", "AMIC",
"DMIC", "MICB",
"LINPUT1", "DMIC",
"LINPUT2", "DMIC",
"RINPUT1", "DMIC",
"RINPUT2", "DMIC",
"CPU-Playback", "ASRC-Playback",
"Playback", "CPU-Playback",
"ASRC-Capture", "CPU-Capture",
"CPU-Capture", "Capture";
hp-det-gpios = <&gpio7 8 0>;
};
[ 3.099207] wm8960_i2c_probe excuted
[ 3.099207]
[ 3.099207]
[ 3.118430] fsl-asrc 2034000.asrc: driver registered
[ 3.126094] fsl-hdmi-dai soc:hdmi_audio@00120000: failed to probe. Load HDMI-video first.
[ 3.134320] fsl-hdmi-dai: probe of soc:hdmi_audio@00120000 failed with error -12
[ 3.143608] soc_init_card_debugfs:card->name=wm8960-audio
[ 3.149196] wm8960_probe:running...
[ 3.152783] wm8960_probe:device name =0-001a
[ 3.160834] imx-wm8960 sound@1: wm8960-hifi <-> 2028000.ssi mapping ok
[ 3.172171] imx-wm8960 sound@1: snd-soc-dummy-dai <-> 2034000.asrc mapping ok
[ 3.179467] imx-wm8960 sound@1: wm8960-hifi <-> 2028000.ssi mapping ok
[ 3.297108] soc_init_card_debugfs:card->name=wm8960_2-audio
[ 3.302893] wm8960_probe:running...
[ 3.306517] wm8960_probe:device name =1-001a
[ 3.313991] imx-wm8960 sound@2: wm8960-hifi <-> 202c000.ssi mapping ok
[ 3.324210] imx-wm8960 sound@2: snd-soc-dummy-dai <-> 2034000.asrc mapping ok
[ 3.331479] imx-wm8960 sound@2: wm8960-hifi <-> 202c000.ssi mapping ok
[ 3.338125] imx-wm8960 sound@2: ASoC: no source widget found for ASRC-Playback
[ 3.345381] imx-wm8960 sound@2: ASoC: Failed to add route ASRC-Playback -> direct -> CPU-Playback
[ 3.354290] imx-wm8960 sound@2: ASoC: no sink widget found for ASRC-Capture
[ 3.361264] imx-wm8960 sound@2: ASoC: Failed to add route CPU-Capture -> direct -> ASRC-Capture |
|