Skip to content
Snippets Groups Projects
Unverified Commit 25ae1a04 authored by Arnaud Ferraris's avatar Arnaud Ferraris Committed by Mark Brown
Browse files

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: default avatarArnaud Ferraris <arnaud.ferraris@collabora.com>
[Samuel: split binding and implementation; move to device probe]
Signed-off-by: default avatarSamuel Holland <samuel@sholland.org>
Link: https://lore.kernel.org/r/20220621035452.60272-3-samuel@sholland.org


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 24e0b04d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment