ASoC: sunxi: DMIC: Add controls for adjusting the mic gains
authorJoao Schim <joao@schimsalabim.eu>
Mon, 29 Apr 2024 19:49:20 +0000 (21:49 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 30 Apr 2024 02:54:02 +0000 (11:54 +0900)
commit9a8cadddd9303ae15d1d518c4f2ddf00ee668729
tree8e3f9be51c22b3a80c88a918a4f6597c21f4b414
parent4a1baeefd1d5a955b5a55a75539244e03e623b0b
ASoC: sunxi: DMIC: Add controls for adjusting the mic gains

The AllWinner H6 and later SoCs that sport a DMIC block contain a set of registers to control
the gain (left + right) of each of the four supported channels.

Add ASoC controls for changing each of the stereo channel gains using alsamixer and alike

Signed-off-by: Joao Schim <joao@schimsalabim.eu>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Link: https://lore.kernel.org/r/20240429194920.1596257-1-joao@schimsalabim.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sunxi/sun50i-dmic.c