]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2cb9cb526cb2e820ff7f0adc0b1f03c642fea6a
tree730b8bf18c8b1e58e2d8a6306e3496a0cba49e35
parent31848cd76216ac5cc7867c35c39430e0fedee7d9
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