]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dt-bindings: sun50i-codec: Add binding for internal bias
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Tue, 21 Jun 2022 03:54:50 +0000 (22:54 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:18:03 +0000 (13:18 +0100)
commit11cfabb87ef3ed1c7f127fbaf8987b2f014552d0
tree275d00afc8b3499ee0025ee75ae7e98d212ea9cf
parent51320c657e99d42148fe6365d4b096c30a696504
ASoC: dt-bindings: sun50i-codec: Add binding for internal bias

In order to properly bias headset microphones, there should be a pull-up
resistor between pins HBIAS and MIC2P. This can be an external resistor,
but the codec also provides an internal 2.2K resistor which is 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>
Link: https://lore.kernel.org/r/20220621035452.60272-2-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml