ASoC: tlv320adcx140: Fix bias config values
authorDan Murphy <dmurphy@ti.com>
Wed, 13 May 2020 14:28:07 +0000 (09:28 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 13 May 2020 16:13:23 +0000 (17:13 +0100)
commit0e36f32f6b6c4c86a6bf3d6f0940831691b0a3b0
tree730b8bf18c8b1e58e2d8a6306e3496a0cba49e35
parent65e412a01bc0161175a962abd5a7fef6a62d5c8e
ASoC: tlv320adcx140: Fix bias config values

The device tree binding declares the ti,mic-bias-source and the
ti,vref-source properties as u32.  The code reads them as u8 which is
incorrect.  Since the device tree binding indicates them as u32 the
conde needs to be updated to read u32.

In addition the bias source needs to be shifted 4 bits to
correctly write the register.

driver family")

Fixes: 37bde5acf040 ("ASoC: tlv320adcx140: Add the tlv320adcx140 codec
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20200513142807.11802-1-dmurphy@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320adcx140.c
sound/soc/codecs/tlv320adcx140.h