]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tlv320aic32x4: Use correct shift definition for DATATYPE bits
authorAndrew F. Davis <afd@ti.com>
Tue, 12 Dec 2017 22:43:05 +0000 (16:43 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 13 Dec 2017 12:27:31 +0000 (12:27 +0000)
commita1e7aaf94f38294e09babda394c1a13308a7ef87
tree470d92c42596901a92de2a5f4192ba397fc73bac
parent766294ec570740227ebfb33409219c16de258040
ASoC: tlv320aic32x4: Use correct shift definition for DATATYPE bits

Setting the DATATYPE bit field requires shifting our value by 6. Setting
the J value of the PLL also requires a shift by 6. Currently the code
abuses this fact and uses the shift for the PLL register to set the
data-type register. Fix this here by using the definition meant for
this register.

Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tlv320aic32x4.c