]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: codecs: peb2466: Change the +/- 6dB switch to a volume
authorChristophe Leroy (CS GROUP) <chleroy@kernel.org>
Mon, 9 Mar 2026 11:46:49 +0000 (12:46 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 9 Mar 2026 13:44:36 +0000 (13:44 +0000)
commiteae0946b2485109a9f24f46853497f5b1983ab79
tree7be400d4740b3e41389244b7c39be40429e29be4
parent66f71ec3539e0e724f5099e6d4bbc81db4d9954a
ASoC: codecs: peb2466: Change the +/- 6dB switch to a volume

In addition to the digital volume adjustment, infineon peb2466 codec
has an analog adjustment which can be set to either 0dB or +/-6dB.
At the time being it is defined as a switch and appears in 'alsamixer'
like a 'mute'.

This adjustment isn't a mute, change it to a 'volume' with an
associated dB range.

With this change, this adjustment now appears in 'alsamixer' as a
standard volume slider which can have two positions.

Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/418fe76d1c9efc8182ab57b6b426a8c723e025fe.1773056714.git.chleroy@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/peb2466.c