ASoC: codecs: jz4725b: use right control for Master Playback
authorSiarhei Volkau <lis8215@gmail.com>
Sun, 16 Oct 2022 13:26:46 +0000 (16:26 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 17 Oct 2022 11:50:29 +0000 (12:50 +0100)
commite6233ee25059de0eeac6ed3d9d49737afdbd5087
tree64d6cf016cfeb7860fe86cfff32eea235606996a
parent80852f8268769715db335a22305e81a0c4a38a84
ASoC: codecs: jz4725b: use right control for Master Playback

At the moment DAC control is used as Master Playback control, this is
incorrect as DAC's output goes to a Mixer.

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

Output of the Mixer goes to Output Stage control which is the best suite
for the new Playback Master. However, it doesn't have mute capability.

The patch implements Output Stage control as a new master and renames
old Master to DAC. Rest of mixer inputs will be implemented in the next
patch in the series.

Manual states that Output stage control (16.6.3.5 Programmable output
amplifier: PGAT) gain varies from -33.5dB to +4.5dB, gain step isn't
fixed and has 3 opts.

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