Skip to content
Snippets Groups Projects
Commit 00533f9b authored by Nicola Sparnacci's avatar Nicola Sparnacci
Browse files

[SANTINO][DTS] Change sound driver

Changed audio driver for SGTL5000 codec. The `simple-audio-card` didn't
create the sound card. The speaker enable needs to be driven by the OS.

Test procedure:
```
root@seco-imx6dl-santino:~# amixer sset Lineout unmute
root@seco-imx6dl-santino:~# amixer sset Lineout 31
root@seco-imx6dl-santino:~# amixer sset PCM 192
root@seco-imx6dl-santino:~# gpioset gpiochip4 29=1
root@seco-imx6dl-santino:~# aplay -Dhw:0,0 /usr/share/sounds/alsa/Front_Right.wav
```

JIRA Reference: [SANTINO-23]
parent 7de6caf4
No related branches found
No related tags found
No related merge requests found
......@@ -178,9 +178,6 @@
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_audmux4>;
status = "okay";
cpu_dai: simple-audio-card,cpu {
sound-dai = <&ssi2>;
};
};
&ssi2 {
......
......@@ -177,26 +177,21 @@
};
sound: sgtl5000-audio {
compatible = "simple-audio-card";
simple-audio-card,name = "imx6-sgtl5000-audio";
simple-audio-card,format = "i2s";
simple-audio-card,widgets =
"Microphone", "Mic Jack",
"Line", "Line In",
"Line", "Line Out",
"Headphone", "Headphone Jack";
simple-audio-card,routing =
"MIC_IN", "Mic Jack",
compatible = "fsl,imx6q-seco-sgtl5000", "fsl,imx-audio-sgtl5000";
model = "fsl,imx6q-seco-sgtl5000";
cpu-dai = <&ssi2>;
ssi-controller = <&ssi2>;
audio-codec = <&codec>;
audio-routing = "MIC_IN", "Mic Jack",
"Mic Jack", "Mic Bias",
"Headphone Jack", "HP_OUT";
simple-audio-card,aux-devs = <&amplifier>;
"Headphone Jack", "HP_OUT",
"Line Out Jack", "LINE_OUT";
mux-int-port = <1>;
mux-ext-port = <6>;
frame-master;
bitclock-master;
dai-format = "i2s";
status = "disabled";
codec_dai: simple-audio-card,codec {
sound-dai = <&codec>;
clocks = <&audio_codec_clk>;
frame-master;
bitclock-master;
};
};
spreadspectrum: spreadspectrum {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment