This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am335x移植 sgtl5000



hi:

我在am335x的的SDK-PROCESSOER-3.02版本下,移植SGTL5000声卡驱动,probe执行成功,i2c读写正常,/proc/asound下可以发现声卡设备。但是调试信息中有如下错误提示,请帮忙分析下改如何修改。

VDDA和VDDIO直接供3.3V。

[ 24.881985] asoc-simple-card sound: sgtl5000 <-> 4803c000.mcasp mapping ok

[ 24.958124] asoc-simple-card sound: ASoC: no source widget found for HPLOUT
[ 25.032472] asoc-simple-card sound: ASoC: Failed to add route HPLOUT -> direct -> Headphone Jack
[ 25.132611] asoc-simple-card sound: ASoC: no source widget found for HPROUT
[ 25.205235] asoc-simple-card sound: ASoC: Failed to add route HPROUT -> direct -> Headphone Jack
[ 25.278592] asoc-simple-card sound: ASoC: no sink widget found for LINE1L
[ 25.324263] asoc-simple-card sound: ASoC: Failed to add route Line In -> direct -> LINE1L
[ 25.370559] asoc-simple-card sound: ASoC: no sink widget found for LINE1R
[ 25.410287] asoc-simple-card sound: ASoC: Failed to add route Line In -> direct -> LINE1R

另外,根据

播放音频文件aplay audio.wav只有长音,没有具体的声音。

dts文件如下:

sound {
compatible = "simple-audio-card";
simple-audio-card,name = "AM335x-EVM";
simple-audio-card,widgets =
"Headphone", "Headphone Jack",
"Line", "Line In";
simple-audio-card,routing =
"Headphone Jack", "HPLOUT",
"Headphone Jack", "HPROUT",
"LINE1L", "Line In",
"LINE1R", "Line In";
simple-audio-card,format = "dsp_b";
simple-audio-card,bitclock-master = <&sound_master>;
simple-audio-card,frame-master = <&sound_master>;
simple-audio-card,bitclock-inversion;

simple-audio-card,cpu {
sound-dai = <&mcasp1>;
};

sound_master: simple-audio-card,codec {
sound-dai = <&sgtl5000>;
system-clock-frequency = <12000000>;
};
};

&i2c0 {
pinctrl-names = "default";
pinctrl-0 = <&i2c0_pins>;

status = "okay";
clock-frequency = <400000>;

sgtl5000: sgtl5000@0a {
#sound-dai-cells = <0>;
compatible = "fsl,sgtl5000";
reg = <0x0a>;
micbias-resistor-k-ohms = <2>;
micbias-voltage-m-volts = <2250>;
};

tps: tps@2d {
reg = <0x2d>;
};
};