AnsweredAssumed Answered

imx6q : No sound output from SGTL5000

Question asked by Shalu R on Jul 19, 2018
Latest reply on Jul 24, 2018 by Shalu R

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

Attachments

Outcomes