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 = <®_sgtl5000_vddd>;
};