]> git.baikalelectronics.ru Git - 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)
committerMark Brown <broonie@kernel.org>
Wed, 10 Mar 2021 12:50:51 +0000 (12:50 +0000)
commit1a1c75ad0e3207de0963e889ad859d179a169621
tree8de0ca69e6e6cce1bc64e489eeab8027c3f6d80e
parentbe5be5623d2167cbb1a987c228e90894f2dafbd2
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