]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 Jul 2022 19:20:05 +0000 (21:20 +0200)
commitbb8bf8038771ba612000965915758cc364c4ca52
tree4e3021994569fba80b5738e2edc27946e39b8c02
parentf1cd988de463cd464c6844aa6f24ee79e085f1fd
ASoC: tas2764: Fix amp gain register offset & default

[ Upstream commit 1c4f29ec878bbf1cc0a1eb54ae7da5ff98e19641 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tas2764.c