On Tue, Jan 11, 2022 at 09:08:23PM +0100, 'Philip Rinn' via linux-sunxi wrote: > Enable the audio hardware on the Olimex A64-OLinuXino board family. > Tested on the A64-OLinuXino-2Ge8G-IND variant.
I have similar patch in one of my "long forgotten branches", but I'm not 100% sure whether the cpvdd-supply is required for codec_analog. IIRC, sound worked for me without the issues on A64-Olinuxino board (Rev D). 'cpvdd-supply = <®_eldo1>' for codec_analog And we also need to enable these configuration options in the defconfig: +CONFIG_SND_SUN8I_CODEC=m +CONFIG_SND_SUN50I_CODEC_ANALOG=m > > Signed-off-by: Philip Rinn <ri...@inventati.org> > > --- > > > Changes in v2: added missing &sound {...} part > Changes in v3: removed HDMI audio part as requested by Jernej Škrabec > > arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 > +++++++++++++++++++ > > 1 file changed, 30 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts > b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts > > index ec7e2c0e82c1..6f2674bb1b7f 100644 > > --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts > > +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts > > @@ -58,6 +58,15 @@ wifi_pwrseq: wifi_pwrseq { > > }; > > }; > > > +&codec { > > + status = "okay"; > > +}; > > + > > +&codec_analog { > > + cpvdd-supply = <®_eldo1>; > > + status = "okay"; > > +}; > > + > > &cpu0 { > > cpu-supply = <®_dcdc2>; > > }; > > @@ -74,6 +83,10 @@ &cpu3 { > > cpu-supply = <®_dcdc2>; > > }; > > > +&dai { > > + status = "okay"; > > +}; > > + > > &de { > > status = "okay"; > > }; > > @@ -328,6 +341,23 @@ &simplefb_hdmi { > > vcc-hdmi-supply = <®_dldo1>; > > }; > > > +&sound { > > + simple-audio-card,aux-devs = <&codec_analog>; > > + simple-audio-card,widgets = "Microphone", "Microphone Jack Left", > > + "Microphone", "Microphone Jack Right", > > + "Headphone", "Headphone Jack"; > > + simple-audio-card,routing = "Left DAC", "DACL", > > + "Right DAC", "DACR", > > + "Headphone Jack", "HP", > > + "ADCL", "Left ADC", > > + "ADCR", "Right ADC", > > + "Microphone Jack Left", "MBIAS", > > + "MIC1", "Microphone Jack Left", > > + "Microphone Jack Left", "HBIAS", > > + "MIC2", "Microphone Jack Right"; > > + status = "okay"; > > +}; > > + > > &uart0 { > > pinctrl-names = "default"; > > pinctrl-0 = <&uart0_pb_pins>; > > -- > > 2.34.1 > > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to linux-sunxi+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/linux-sunxi/87654fd3-6007-6067-1851-7bc4b6de2f05%40inventati.org. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/Yd6axIURzudUq5Ah%40plaes.org.