]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 12:50:51 +0000 (12:50 +0000)
commitbb18c678754ce1514100fb4c0bf6113b5af36c48
tree8de0ca69e6e6cce1bc64e489eeab8027c3f6d80e
parentf86f58e3594fb0ab1993d833d3b9a2496f3c928c
ASoC: es8316: Simplify adc_pga_gain_tlv table

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>
sound/soc/codecs/es8316.c