]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ASoC: es8316: Simplify adc_pga_gain_tlv table
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 Feb 2021 16:04:41 +0000 (17:04 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:44 +0000 (15:42 -0500)
commit1e4a980721a9ef9a7976089d2ed4af72c643ae85
tree506bf036f7062e6b3352683c00dac94f6596b70b
parent0eef381cdff03f35a613e9416527626215710fd8
ASoC: es8316: Simplify adc_pga_gain_tlv table

BugLink: https://bugs.launchpad.net/bugs/1923069
[ Upstream commit bb18c678754ce1514100fb4c0bf6113b5af36c48 ]

Most steps in this table are steps of 3dB (300 centi-dB), so we can
simplify the table.

This not only reduces the amount of space it takes inside the kernel,
this also makes alsa-lib's mixer code actually accept the table, where
as before this change alsa-lib saw the "ADC PGA Gain" control as a
control without a dB scale.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210228160441.241110-1-hdegoede@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
sound/soc/codecs/es8316.c