41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
From c5dbe38818e82ca38a81792d267f49454e12f511 Mon Sep 17 00:00:00 2001
|
|
From: Arnaud Ferraris <arnaud.ferraris@collabora.com>
|
|
Date: Sun, 20 Sep 2020 20:26:36 -0500
|
|
Subject: [PATCH 317/351] ASoC: dt-bindings: sun50i-codec: Add binding for
|
|
internal bias
|
|
|
|
In order to properly bias headset microphones, there should be a
|
|
resistor between pins HBIAS and MICDET. This can be an external
|
|
resistor, but the codec also provides an internal 2.2K resistor which
|
|
can be enabled by a register.
|
|
|
|
This patch adds a device-tree property to the sun50i-codec-analog driver
|
|
to take advantage of this feature.
|
|
|
|
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
|
|
[Samuel: split binding and implementation patches]
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
---
|
|
.../bindings/sound/allwinner,sun50i-a64-codec-analog.yaml | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml
|
|
index 3b764415c9ab..66859eb8f79a 100644
|
|
--- a/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml
|
|
+++ b/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml
|
|
@@ -21,6 +21,11 @@ properties:
|
|
description:
|
|
Regulator for the headphone amplifier
|
|
|
|
+ allwinner,internal-bias-resistor:
|
|
+ description:
|
|
+ Enable the internal 2.2K bias resistor between HBIAS and MICDET pins
|
|
+ type: boolean
|
|
+
|
|
required:
|
|
- compatible
|
|
- reg
|
|
--
|
|
2.34.0
|
|
|