ASoC: codecs: jz4725b: Various improvements and fixes
authorMark Brown <broonie@kernel.org>
Tue, 18 Oct 2022 11:14:45 +0000 (12:14 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 18 Oct 2022 11:14:45 +0000 (12:14 +0100)
commitc39e299a341510eaa4fec5f9cbcceeb5b876a41d
tree780a69f79d77847b76330fc5dba03aeb1f7f72d8
parent67ad4edf2b59dbea75a85afe114516d06a6c8413
parent4b192aa09b3c3615c79f8c60704a2efd15e500d0
ASoC: codecs: jz4725b: Various improvements and fixes

Merge series from Siarhei Volkau <lis8215@gmail.com>:

The patchset fixes:
 - Line In path stays powered off during capturing or
   bypass to mixer.
 - incorrectly represented dB values in alsamixer, et al.
 - incorrect represented Capture input selector in alsamixer
   in Playback tab.
 - wrong control selected as Capture Master

The patchset improves:
 - Exposes output stage (post mixer) gain control and makes it new
   Master playback gain, DAC gain was the previous master.
   However, no Master mute now.
 - Exposes all mixer inputs (both Mics, LineIn and DAC) with their
   gain controls.
 - Exposes microphones widgets: single/differential input, boost.

Known issues:
 - Bypass path enablement isn't applied immediately, for make
   things going bit clock needs to be triggered for a bit,
   e.g. by aplay dummy.wav
   It might be a hardware bug, since the bit clock isn't
   declared as required for codec operation.

Tested on:
 - Ritmix RZX-27 (jz4725b).
 - Ritmix RZX-50 (jz4755).