ASoC: codecs: jz4725b: add missed Mixer inputs
authorSiarhei Volkau <lis8215@gmail.com>
Sun, 16 Oct 2022 13:26:47 +0000 (16:26 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:50:30 +0000 (12:50 +0100)
commit616c291820d155cbad258ecae5c7dbca2c01f07f
tree8cdd6c39409a6b16b70b450ddb71ea90f6362221
parente6233ee25059de0eeac6ed3d9d49737afdbd5087
ASoC: codecs: jz4725b: add missed Mixer inputs

The Mixer couples analog input from 4 sources (DAC, Line In, Mic 1,
 Mic 2) each input has its own gain & mute controls.

At the moment only DAC is implemented fully and Line In path can be
switched on/off. The patch implements Mic 1 and Mic 2 paths and fully
implements Line In path.

Manual states that these controls (16.6.3.3 Programmable attenuation:
GOi) gain varies from -22.5dB to +6.0dB with 1.5dB step. Also there's
extra values below the minimum, but they behave the same as the minimum
value.

Signed-off-by: Siarhei Volkau <lis8215@gmail.com>
Link: https://lore.kernel.org/r/20221016132648.3011729-7-lis8215@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/jz4725b.c