SGTL5000 with imx6 sololite - Line out not working

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

SGTL5000 with imx6 sololite - Line out not working

Jump to solution
3,317 Views
jagsgediya
Contributor II

Hi All,

We are using sgtl5000 audio codec from the freescale with the imx6 sololite processor.

We are able to get mic and headphone working but speaker on line out is not working. We are using the existing machine and codec driver available in kernel 3.10.17 of yocto 1.6.

We have taken refrence for device tree changes from the sabrelite board device tree file.

Drivers:

sound/soc/fsl/imx-sgtl5000.c

sound/soc/codecs/sgtl5000.c

Device tree changes:

sound {                             /* Read related .txt file in Documentation for binding */
    compatible = "fsl,imx6sl-alba-sgtl5000",
           "fsl,imx-audio-sgtl5000";
    model = "imx6sl-alba-sgtl5000";
    ssi-controller = <&ssi2>;      
    audio-codec = <&codec>;                                                                                                  
    audio-routing =                
        "MIC_IN", "Mic Jack",
        "Mic Jack", "Mic Bias",
        "Headphone Jack", "HP_OUT",
        "Line Out Jack", "LINE_OUT";
    mux-int-port = <2>;            
    mux-ext-port = <3>;
};

But, unfortunately the speaker on line out is not working. Can anyone have got line out port working with sgtl5000?

Or anything i am missing?

Thanks,

Jags

Labels (4)
0 Kudos
Reply
1 Solution
1,903 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Can you try this

Ext Spk", "LINE_OUT";


Instead of 

"Line Out Jack", "LINE_OUT";


Please let me know the results.


Alejandro

View solution in original post

0 Kudos
Reply
5 Replies
1,904 Views
NikhilKamathLNT
Contributor I

I was about to go crazy with sound not working with line out and found the answer here to work. Thank you alejandrolozano!

for anyone using imx35 and sgtl5000 with linux-fslc : below is my dts content:

sound {
compatible = "fsl,imx-audio-sgtl5000";
model = "ebox-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 = <4>;
};

codec: sgtl5000@0a {
compatible = "fsl,sgtl5000";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_sgtl5000>;
reg = <0x0a>;
clocks = <&clks 86>;
VDDA-supply = <&vcam_reg>;
VDDIO-supply = <&reg_sgtl5000_vddd>;

};

0 Kudos
Reply
1,904 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Can you try this

Ext Spk", "LINE_OUT";


Instead of 

"Line Out Jack", "LINE_OUT";


Please let me know the results.


Alejandro

0 Kudos
Reply
1,904 Views
wangtsungli
Contributor IV

Why cannot use "Line Out Jack", "LINE_OUT"; ?

Is this based on which pin I design to be LINE_OUT?

0 Kudos
Reply
1,904 Views
jagsgediya
Contributor II

Hi Alejandro,

It's working. Thank you.

0 Kudos
Reply
1,904 Views
kondaveetiarung
Contributor II

Hi,

Please send your dtsi and dts files for audio support in imx6 sololite.

Same Problem iam getting iam not getting the LINEout Values.Please send your DTSI and DTS FIles.

0 Kudos
Reply