SGTL5000

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决
2,628 次查看
jingyangxie
Contributor V

I have a imx6q custom board with using sgtl5000 for sound card ,I configed the devicetree and build the kernel 3.14.52,when I use command "aplay xxx.wav",I cound not hear any sound ,can any one give any advice ?

here are some configure:

&ssi1 {
 fsl,mode = "i2s-slave";
 status = "okay";
};

&audmux {
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_audmux>;
 status = "okay";
};

codec: sgtl5000@0a {
  compatible = "fsl,sgtl5000";
  reg = <0x0a>;
  clocks = <&clks 201>;
  VDDA-supply = <&reg_3p3v>;
  VDDIO-supply = <&reg_3p3v>;

sound {
  compatible = "fsl,imx6q-sabresd-sgtl5000",
        "fsl,imx-audio-sgtl5000";
  model = "imx6q-sabresd-sgtl5000";
  cpu-dai = <&ssi1>;
  audio-codec = <&codec>;
  audio-routing =
   "MIC_IN", "Mic Jack",
   "Mic Jack", "Mic Bias",
   "Headphone Jack", "HP_OUT";
  mux-int-port = <1>;
  mux-ext-port = <3>;
 };

pinctrl_audmux: audmuxgrp {
   fsl,pins = <
    MX6QDL_PAD_CSI0_DAT7__AUD3_RXD  0x130b0
    MX6QDL_PAD_CSI0_DAT4__AUD3_TXC  0x130b0
    MX6QDL_PAD_CSI0_DAT5__AUD3_TXD  0x110b0
    MX6QDL_PAD_CSI0_DAT6__AUD3_TXFS  0x130b0
   >;
  };

标签 (2)
0 项奖励
回复
1 解答
2,138 次查看
igorpadykov
NXP Employee
NXP Employee

sgtl5000 is not used on nxp i.MX6 reference boards, there are no examples for sgtl5000

with them. For sgtl5000 examples please refer to boundary devices schematic

BD-SL-i.MX6 sabre_lite-revD.pdf p.7

i.MX6 ARM Development Board 

https://boundarydevices.com/wp-content/uploads/2014/11/sabre_lite-revD.pdf 

use boundary devices linux kernels and choose agtl5000 settings for that board, use them

as example

Wiki - Boundary Devices 

Best regards
igor

在原帖中查看解决方案

5 回复数
2,138 次查看
igorpadykov
NXP Employee
NXP Employee

Hi jingyang

what bsp used in the case, please check BD bsps where sgtl5000 is well supported

Audio output selection under Linux on i.MX6 - Boundary Devices 

please check with oscillosope clock signals, in particular MCLK.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,138 次查看
jingyangxie
Contributor V

Hi,I have check the board,the MCLK is 24MHz,I don't sure the sch is right .can you help me check it? sch.jpg

0 项奖励
回复
2,139 次查看
igorpadykov
NXP Employee
NXP Employee

sgtl5000 is not used on nxp i.MX6 reference boards, there are no examples for sgtl5000

with them. For sgtl5000 examples please refer to boundary devices schematic

BD-SL-i.MX6 sabre_lite-revD.pdf p.7

i.MX6 ARM Development Board 

https://boundarydevices.com/wp-content/uploads/2014/11/sabre_lite-revD.pdf 

use boundary devices linux kernels and choose agtl5000 settings for that board, use them

as example

Wiki - Boundary Devices 

Best regards
igor

2,138 次查看
jingyangxie
Contributor V

0 项奖励
回复
2,138 次查看
jingyangxie
Contributor V

Hi,igorpadkov

   the bsp is 3.14.52,and the schematic is below:

0 项奖励
回复