]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: sun50i-codec-analog: Add support for internal bias
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Tue, 21 Jun 2022 03:54:51 +0000 (22:54 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 27 Jun 2022 12:18:04 +0000 (13:18 +0100)
commit6a35345520541c1b424b0abe3e5c9b537dfcd262
tree7deec89c2768a55ae60acace65d18b487ae96632
parent11cfabb87ef3ed1c7f127fbaf8987b2f014552d0
ASoC: sun50i-codec-analog: Add support 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 enables or disables the internal bias resistor based on a
device tree property.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
[Samuel: split binding and implementation; move to device probe]
Signed-off-by: Samuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220621035452.60272-3-samuel@sholland.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun50i-codec-analog.c