Re: [PATCH] ASoC: codecs: peb2466: Change the +/- 6dB switch to a volume

From: Herve Codina

Date: Mon Mar 09 2026 - 08:18:20 EST


Hi Christophe,

On Mon, 9 Mar 2026 12:46:49 +0100
"Christophe Leroy (CS GROUP)" <chleroy@xxxxxxxxxx> wrote:

> 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@xxxxxxxxxx>
> ---
> sound/soc/codecs/peb2466.c | 19 +++++++++++--------
> 1 file changed, 11 insertions(+), 8 deletions(-)

Acked-by: Herve Codina <herve.codina@xxxxxxxxxxx>

Best regards,
Hervé