]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic32x4: Implement resistors on input pins
authorJeremy McDermond <nh6z@nh6z.net>
Wed, 20 Apr 2016 18:39:11 +0000 (11:39 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 21 Apr 2016 09:50:18 +0000 (10:50 +0100)
commitf6236cb24475bb9116a9d312cb22dbfb3dec139e
tree00766fce4d79a3572663b268392f20f97912239f
parent84c3eee73c58514dca6142c0bb1c06a2d6a71a65
ASoC: tlv320aic32x4: Implement resistors on input pins

The input pins of the aic3204 have resistors inline with them.  The
current code assumes that you want a 10k resistor inline with your
inputs and implements it as a simple switch.  This patch creates an enum
for each pin and allows you to switch between not connected, 10k, 20k
and 40k ohm values.  This more closely models the acutal aic3204 part.

These pin settings are documented in TI's SLAA557 pages 135 and 136
(http://www.ti.com/lit/ml/slaa557/slaa557.pdf).

Signed-off-by: Jeremy McDermond <nh6z@nh6z.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c