ASoC: cs35l45: Analog PCM Volume and Amplifier Mode controls
authorVlad Karpovich <vkarpovi@opensource.cirrus.com>
Thu, 31 Aug 2023 16:20:40 +0000 (11:20 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 11 Sep 2023 00:30:03 +0000 (01:30 +0100)
commit18050443b9fc4e809c077fbf0967349410e86117
tree23db84e9206cc44e0ffa23130e21262a97fa518b
parent44f37b6ce041c838cb2f49f08998c41f1ab3b08c
ASoC: cs35l45: Analog PCM Volume and Amplifier Mode controls

Adds "Analog PCM Volume" control with supported values
0 = 10dB,1 = 13dB,2 = 16dB and 3 = 19dB.
The amplifier can operate either in Speaker Mode or Receiver Mode
as configured by the user. Speaker Mode has four gain options
to support maximum amplifier output amplitude for loud
speaker application. Receiver Mode has further optimized
noise performance while maintaining sufficient output to support
phone receiver application. While configured in Receiver Mode,
the analog PCM Volume control is disabled and
the analog gain is fixed to 1dB.

Signed-off-by: Vlad Karpovich <vkarpovi@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230831162042.471801-2-vkarpovi@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l45-tables.c
sound/soc/codecs/cs35l45.c
sound/soc/codecs/cs35l45.h