ASoC: tlv320aic31xx: configure output common-mode voltage
authorLucas Stach <l.stach@pengutronix.de>
Mon, 18 Nov 2019 15:12:06 +0000 (16:12 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 18 Nov 2019 16:11:47 +0000 (16:11 +0000)
commite48fdb53bd1fa50796b5a050e6e31fde3891a2c8
tree18f52d2f93a59ae7db5ac80a42ad9161f8482955
parent653c28afa76b45c570370c3c3a89975c68c5fc8e
ASoC: tlv320aic31xx: configure output common-mode voltage

The tlv320aic31xx devices allow to adjust the output common-mode voltage
for best analog performance. The datasheet states that the common mode
voltage should be set to be <= AVDD/2.

This changes allows to configure the output common-mode voltage via a DT
property. If the property is absent the voltage is automatically chosen
as the highest voltage below/equal to AVDD/2.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Link: https://lore.kernel.org/r/20191118151207.28576-1-l.stach@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
Documentation/devicetree/bindings/sound/tlv320aic31xx.txt
sound/soc/codecs/tlv320aic31xx.c
sound/soc/codecs/tlv320aic31xx.h