]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd433788a16d7a891a25e024f112dc7f550cc06c4
tree98afb5633020c0b82386ec4bdfd9da8782dc1074
parent4124a4df9401e2cf2f9b1c4dec9e9d45b1800e90
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: ff5fd908f544 ("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