imx6q : No sound output from SGTL5000

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6q : No sound output from SGTL5000

1,450 Views
shalu
Contributor I

Hi all,


We are trying to interface SGTL5000 audio codec with our custom imx6q board in linux 4.1 kernel. We ported the sgtl5000 driver file to support external supply for VDDD pin. Please find the attached driver file for your reference.

On booting, imx-sgtl5000 is listed as card 0 in ALSA device, but while testing using "aplay" command, there is no sound output through headphone/speaker. 

Can anyone share your valuable inputs to resolve the issue.

 

 

The dtsi editions are as listed below:

 {

 reg_audio_1v8: regulator@105 { 
               compatible = "regulator-fixed";
               reg = <105>;
               regulator-name = "AUD_SUPPLY_1V8";
               regulator-min-microvolt = <1800000>;
               regulator-max-microvolt = <1800000>;
               regulator-boot-on;
               regulator-always-on;
};

 

&sound {
               compatible = "fsl,imx6-wandboard-sgtl5000",
                                                  "fsl,imx-audio-sgtl5000";
               model = "imx6-wandboard-sgtl5000";
               ssi-controller = <&ssi1>;
               audio-codec = <&codec>;
               audio-routing =
                              "MIC_IN", "Mic Jack",
                              "Mic Jack", "Mic Bias",
                              "Headphone Jack", "HP_OUT",
                              "Ext Spk", "LINE_OUT";
               mux-int-port = <1>;
               mux-ext-port = <3>;
};

 

&i2c1 {

codec: sgtl5000@0a {
                              compatible = "fsl,sgtl5000";
                              reg = <0x0a>;
                              clocks = SMARC_AUDIO_MCLK;
                              VDDA-supply = <&reg_audio_1v8>;
                              VDDIO-supply = <&reg_audio_1v8>;
                              VDDD-supply  =  <&reg_audio_1v8>;
                              micbias-resistor-k-ohms = <2>;
                              lrclk-strength = <3>;        
               };

};

};

Thanks & Regards

Shalu

Labels (2)
Tags (2)
0 Kudos
4 Replies

1,066 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shalu

for sgtl5000 dts settings one can look at boundary devices sabrelite example

linux-imx6/imx6qdl-sabrelite.dtsi at boundary-imx_4.1.15_1.0.0_ga · boundarydevices/linux-imx6 · Git... 

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

0 Kudos

1,066 Views
shalu
Contributor I

Hi Igor,

Thanks for the reply. 

We tried with the dtsi editions mentioned in the link, but still its not working.

These are my register settings,

000: a011
002: 0072
004: 0007
006: 01b0
00a: 0010
00e: 0200
010: 6c6c
014: 015f
020: 00cc
022: 4040
024: 0022
026: 0060
028: 01f1
02a: 0140
02c: 0322
02e: 0d0d
030: 45fb
032: 786c
034: 0008
036: 0017
03a: 0000
03c: 0000
100: 0011
102: 0000
104: 0040
106: 051f
108: 0003
10a: 0040
10c: 0000
10e: 0000
110: 0000
116: 002f
118: 002f
11a: 002f
11c: 002f
11e: 002f
120: 8000
122: 0000
124: 0510
126: 1473
128: 0028
12a: 0050
12c: 0000
12e: 0000
130: 0000
132: 0000
134: 0000
136: 0000
138: 0000
13a: 0000

We are not getting any errors for "aplay", but no audio output. 

Please let us know if any further information is required to resolve the issue.

We are completely stuck in this problem, so kindly help.

Regards

Shalu

0 Kudos

1,066 Views
igorpadykov
NXP Employee
NXP Employee

Hi Shalu

please check signals and clocks with oscilloscope.

Also one can test with baremetal SDK (found on SMP Enable in IMX6)

Best regards
igor

0 Kudos

1,066 Views
shalu
Contributor I

Hi Igor,

We were able to sort out the issue.

In our design, SGTL5000 I2S pin (DIN and DOUT) terminations were not correct.

Thanks for the response and support ..:) 

Regards

Shalu

0 Kudos