ASoC: tas2764: Fix amp gain register offset & default
authorHector Martin <marcan@marcan.st>
Thu, 30 Jun 2022 07:51:35 +0000 (09:51 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2022 16:16:35 +0000 (17:16 +0100)
commit1c4f29ec878bbf1cc0a1eb54ae7da5ff98e19641
tree98afb5633020c0b82386ec4bdfd9da8782dc1074
parent3e99e5697e1f7120b5abc755e8a560b22612d6ed
ASoC: tas2764: Fix amp gain register offset & default

The register default is 0x28 per the datasheet, and the amp gain field
is supposed to be shifted left by one. With the wrong default, the ALSA
controls lie about the power-up state. With the wrong shift, we get only
half the gain we expect.

Signed-off-by: Hector Martin <marcan@marcan.st>
Fixes: 827ed8a0fa50 ("ASoC: tas2764: Add the driver for the TAS2764")
Signed-off-by: Martin PoviĊĦer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220630075135.2221-4-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas2764.c