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>
Mon, 1 Mar 2021 14:11:30 +0000 (14:11 +0000)
commit4d4e677a68e770b84c87d1438d9f4e161658536a
tree03424ac9710638a85f5e12ab135f60eff1a5ac63
parentd74fcdc51afd431ca9d956e032e14d12f0ee4153
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