arm64: dts: allwinner: a64: olinuxino: Enable audio
Subsystems (2)
PATCH v3 1/1 arm64: dts: allwinner: a64: olinuxino: Enable audio
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabec
.../dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++
1 file changed, 30 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +0 -0
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>;
Signature · 7 lines
2.33.0 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi all,
have I forgotten anything to get this patch applied, or have I just become too impatient waiting for an reply?
Thanks,
Philip
Quoted 65 lines · Philip Rinn
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>--- .../dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +30
-0@@ -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>;Signature · 1 line
2.33.0
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH RESEND v3 1/1 arm64: dts: allwinner: a64: olinuxino: Enable audio
In reply to Philip RinnEnable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
---
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(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +0 -0
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>;
Signature · 1 line
2.34.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi,
Quoted 19 lines · Philip Rinn
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabecarch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++1 file changed, 30 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +0
-0
Quoted 5 lines
index
ec7e2c0e82c1..6f2674bb1b7f100644---
a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts+++
b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
Your mailer scrambled the patch completely, please use git send-email
Maxime
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
---
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(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +30 -0
@@ -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>;
Signature · 7 lines
2.34.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi,
any chance this patch get applied? It seems it will not make it into 5.18 ... what did I miss?
Best regards
Philip
Quoted 69 lines · Philip Rinn
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabecarch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +30
-1@@ -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>; --
Quoted 1 line
2.34.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Jernej Škrabec
maintainerHi,
Dne četrtek, 24. marec 2022 ob 17:28:50 CET je Philip Rinn napisal(a):
Quoted 4 lines
Hi,
any chance this patch get applied? It seems it will not make it into 5.18 ... what did I miss?
Not much, sometimes patches are overlooked. I'll review it again, and if everthing is fine, it will be applied for 5.19 once 5.18-rc1 is out.
Sorry for taking it so long.
Best regards,
Jernej
Quoted 68 lines
Best regards
PhilipQuoted 63 lines · Philip Rinn
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabecarch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +27
-0@@ -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";
Quoted 9 lines
Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +3
-1+ status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>; --2.34.1
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Samuel Holland
maintainerQuoted 50 lines · Philip Rinn
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabecarch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +16
-0@@ -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",
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts &simplefb_hdmi { · line 356
Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +10
-0+ "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",
According to the schematic, both sides of the microphone jack are biased to MBIAS. Otherwise, this patch looks good to me.
Regards,
Samuel
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts &simplefb_hdmi { · line 363
Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +4
-0+ "MIC2", "Microphone Jack Right"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Jernej Škrabec
maintainerDne četrtek, 07. april 2022 ob 04:49:03 CEST je Samuel Holland napisal(a):
Quoted 3 lines · Philip Rinn
Quoted 2 lines
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Please also update recipients, there were some maintainer changes recently and you're missing official linux-sunxi ML (not google groups). scripts/ get_maintainer.pl is your friend here.
Best regards,
Jernej
Quoted 85 lines
Quoted 63 lines
Signed-off-by Philip Rinn <[email protected]>---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabecarch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30+++++++++++++++++++ 1 file changed, 30 insertions(+)
(quoted diff) +0
-0
b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dtsindexec7e2c0e82c1..6f2674bb1b7f100644arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +9
-0@@ -58,6 +58,15 @@ wifi_pwrseq: wifi_pwrseq { }; }; +&codec { + status = "okay"; +}; + +&codec_analog { + cpvdd-supply = <®_eldo1>; + status = "okay"; +}; +&cpu0 {
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +4
-0cpu-supply = <®_dcdc2>; };@@ -74,6 +83,10 @@ &cpu3 { cpu-supply = <®_dcdc2>; }; +&dai { + status = "okay"; +}; +&de {
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +3
-0status = "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",arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts &simplefb_hdmi { · line 358
Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +10
-0+ "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",According to the schematic, both sides of the microphone jack are biased to MBIAS. Otherwise, this patch looks good to me.
Regards,
SamuelQuoted 5 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +4
-0+ "MIC2", "Microphone Jack Right"; + status = "okay"; +}; +
Quoted 4 lines
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts &simplefb_hdmi { · line 363
Quoted 4 lines
&uart0 {
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +0
-0pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v4 1/1 arm64: dts: allwinner: a64: olinuxino: Enable audio
In reply to Samuel HollandEnable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabec Changes in v4: right microphone jack is also biased on MBIAS
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +30 -0
@@ -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 Right", "MBIAS", + "MIC2", "Microphone Jack Right"; + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pb_pins>;
Signature · 1 line
2.34.1
Quoted 4 lines · Philip Rinn
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>
Thanks!
Dne petek, 08. april 2022 ob 00:06:01 CEST je Samuel Holland napisal(a):
Quoted 7 lines · Philip Rinn
Quoted 4 lines
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>Acked-by Samuel Holland <[email protected]>
Applied to sunxi/dt-for-5.19. Thanks!
Best regards,
Jernej
Quoted 10 lines · Jernej Škrabec
Dne petek, 08. april 2022 ob 00:06:01 CEST je Samuel Holland napisal(a):
Quoted 7 lines · Philip Rinn
Quoted 4 lines
Enable the audio hardware on the Olimex A64-OLinuXino board family. Tested on the A64-OLinuXino-2Ge8G-IND variant.
Signed-off-by Philip Rinn <[email protected]>Acked-by Samuel Holland <[email protected]>Applied to sunxi/dt-for-5.19. Thanks!
About week ago I made nearly same patch but Jernej pointed me to this one. I applied this patch and it works like one I made.
Audio output works fine, but recording doesn't work at all in my tests. I can hear myself from microphone on headphones quite fine but 'arecord' records only some kind of white noise. Tried all alsamixer widget combinations but didn't managed to record anything.
Kind regards
Quoted 2 lines · Philip Rinn' via linux-sunxi
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
Quoted 131 lines
Signed-off-by Philip Rinn <[email protected]>---
Changes in v2: added missing &sound {...} part
Changes in v3: removed HDMI audio part as requested by Jernej Škrabecarch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | 30 +++++++++++++++++++1 file changed, 30 insertions(+)arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +0
-0index
ec7e2c0e82c1..6f2674bb1b7f100644---
a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts+++
b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dtsarch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts +30
-0@@ -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>;Signature · 9 lines
-- 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 [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/87654fd3-6007-6067-1851-7bc4b6de2f05%40inventati.org.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi,
Quoted 9 lines · Priit Laes
Quoted 2 lines · Philip Rinn' via linux-sunxi
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>' forcodec_analog
I didn't test it without but as it is present for all other a64 board with audio and also in Olimex' tree I think it is needed.
Review
Quoted 4 lines
And we also need to enable these configuration options in the defconfig:
(quoted diff) +2
-0+CONFIG_SND_SUN8I_CODEC=m +CONFIG_SND_SUN50I_CODEC_ANALOG=m
Hm, probably, but why wasn't it added when audio was added for the other a64 boards? Or are we talking about different defconfigs here?
Best regards
Philip
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Jernej Škrabec
maintainerHi,
Dne sreda, 12. januar 2022 ob 16:29:51 CET je Philip Rinn napisal(a):
Quoted 13 lines
Hi,
Quoted 9 lines · Priit Laes
Quoted 2 lines · Philip Rinn' via linux-sunxi
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,
Quoted 7 lines
Quoted 3 lines
sound worked for me without the issues on A64-Olinuxino board (Rev D).
'cpvdd-supply = <
®_eldo1>' forcodec_analogI didn't test it without but as it is present for all other a64 board with audio and also in Olimex' tree I think it is needed.
It's not question if it works with or without it, nor if other boards have it or not. Only deciding factor is board design. On schematic it can be seen that cpvdd is connected to eldo1, so having this property is correct, mandatory even.
Best regards,
Jernej
Quoted 10 lines
Review
Quoted 5 lines
And we also need to enable these configuration options in the defconfig:
(quoted diff) +2
-0+CONFIG_SND_SUN8I_CODEC=m +CONFIG_SND_SUN50I_CODEC_ANALOG=mHm, probably, but why wasn't it added when audio was added for the other a64 boards? Or are we talking about different defconfigs here?
Quoted 2 lines
Best regards
Philip
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Hi,
Quoted 22 lines · Jernej Škrabec
Hi,
Dne sreda, 12. januar 2022 ob 16:29:51 CET je Philip Rinn napisal(a):
Quoted 19 lines
Hi,
Quoted 13 lines · Priit Laes
Quoted 2 lines · Philip Rinn' via linux-sunxi
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 forcodec_analog. IIRC, sound worked for me without the issues on A64-Olinuxino board (Rev D).'cpvdd-supply = <
®_eldo1>' forcodec_analog
Quoted 7 lines
Quoted 2 lines
I didn't test it without but as it is present for all other a64 board with audio and also in Olimex' tree I think it is needed.
It's not question if it works with or without it, nor if other boards have it or not. Only deciding factor is board design. On schematic it can be seen that cpvdd is connected to eldo1, so having this property is correct, mandatory even.
Very true and it's easy to verify with the schematic available: https://raw.githubusercontent.com/OLIMEX/OLINUXINO/master/HARDWARE/A64-OLinuXino/1.%20Latest%20hardware%20revision/A64-OLinuXino%20hardware%20revision%20E/A64-OlinuXino_Rev_E.pdf
So from my point of view the patch is correct.
Best regards
Philip
Quoted 16 lines
Best regards,
JernejQuoted 12 lines
Review
Quoted 5 lines
And we also need to enable these configuration options in the defconfig:
(quoted diff) +2
-0+CONFIG_SND_SUN8I_CODEC=m +CONFIG_SND_SUN50I_CODEC_ANALOG=mHm, probably, but why wasn't it added when audio was added for the other a64 boards? Or are we talking about different defconfigs here?
Best regards
Philip
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel