Skip to contentSkip to conversation

arm:DTS Correct audio input route & set mic bias

PATCH New Adam YH Lee 3 participants 3 messages Jul 14, 2015 – Jul 15, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm:DTS Correct audio input route & set mic bias

Audio-in was incorrectly routed to Line In. It should be Mic3L as per schematic.

Using mic-bias voltage at 2.0v (<0x1>) does not work for some reason. There is no voltage seen on micbias (R127). Mic-bias voltage of 2.5v (<0x2>) works. I see voltage of 2.475v across GND and micbias.

With these changes, I can record audio with a pair of proliferate TRRS earbuds.

---
 arch/arm/boot/dts/am335x-pepper.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/am335x-pepper.dts +2 -1
index d627dc6..73b4cc3 100644
@@ -74,6 +74,7 @@
 	audio_codec: tlv320aic3106 at 1b {
 		compatible = "ti,tlv320aic3106";
 		reg = <0x1b>;
+		ai3x-micbias-vg = <0x2>;
 	};
 
 	accel: lis331dlh at 1d {
@@ -152,7 +153,7 @@
 	ti,audio-routing =
 		"Headphone Jack",	"HPLOUT",
 		"Headphone Jack",	"HPROUT",
-		"LINE1L",		"Line In";
+		"MIC3L",		"Mic3L Switch";
 };
 
 &mcasp0 {
Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 arm:DTS Correct audio input route & set mic bias

Quoted 27 lines · Adam YH Lee

Audio-in was incorrectly routed to Line In. It should be Mic3L as per schematic.

Using mic-bias voltage at 2.0v (<0x1>) does not work for some reason. There is no voltage seen on micbias (R127). Mic-bias voltage of 2.5v (<0x2>) works. I see voltage of 2.475v across GND and micbias.

With these changes, I can record audio with a pair of proliferate TRRS earbuds.

---
 arch/arm/boot/dts/am335x-pepper.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/am335x-pepper.dts +1 -0
index d627dc6..73b4cc3 100644
@@ -74,6 +74,7 @@
        audio_codec: tlv320aic3106 at 1b {
                compatible = "ti,tlv320aic3106";
                reg = <0x1b>;
+               ai3x-micbias-vg = <0x2>;
        };
 
        accel: lis331dlh at 1d {

arch/arm/boot/dts/am335x-pepper.dts line 159

Quoted 8 lines
arch/arm/boot/dts/am335x-pepper.dts +1 -1
@@ -152,7 +153,7 @@
        ti,audio-routing =
                "Headphone Jack",       "HPLOUT",
                "Headphone Jack",       "HPROUT",
-               "LINE1L",               "Line In";
+               "MIC3L",                "Mic3L Switch";
 };
 
 &mcasp0 {

Note, this is getting resent to correct the sign-offs as requested
https://lkml.org/lkml/2015/7/14/56

#2 lore raw

PATCH v2 1/1 arm:DTS Correct audio input route & set mic bias

Quoted 35 lines · Ash Charles
Quoted 34 lines · Adam YH Lee

Audio-in was incorrectly routed to Line In. It should be Mic3L as per schematic.

Using mic-bias voltage at 2.0v (<0x1>) does not work for some reason. There is no voltage seen on micbias (R127). Mic-bias voltage of 2.5v (<0x2>) works. I see voltage of 2.475v across GND and micbias.

With these changes, I can record audio with a pair of proliferate TRRS earbuds.

---
 arch/arm/boot/dts/am335x-pepper.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/boot/dts/am335x-pepper.dts +2 -1
index d627dc6..73b4cc3 100644
@@ -74,6 +74,7 @@
        audio_codec: tlv320aic3106 at 1b {
                compatible = "ti,tlv320aic3106";
                reg = <0x1b>;
+               ai3x-micbias-vg = <0x2>;
        };
 
        accel: lis331dlh at 1d {
@@ -152,7 +153,7 @@
        ti,audio-routing =
                "Headphone Jack",       "HPLOUT",
                "Headphone Jack",       "HPROUT",
-               "LINE1L",               "Line In";
+               "MIC3L",                "Mic3L Switch";
 };
 
Quoted 4 lines

arch/arm/boot/dts/am335x-pepper.dts line 159

Quoted 1 line
arch/arm/boot/dts/am335x-pepper.dts +0 -0
 &mcasp0 {

Note, this is getting resent to correct the sign-offs as requested
https://lkml.org/lkml/2015/7/14/56

Thanks applying into omap-for-v4.2/fixes.

Tony