Re: [PATCH] ASoC: qcom: sm8250: Limit RX digital gain to 0 dB
From: Prasad Kumpatla
Date: Tue Oct 27 2026 - 06:16:28 EST
On 10/27/2026 7:03 AM, Filippo Falezza wrote:
The RX macro interpolator gains ("RX_RXn Digital Volume") run from
-84 dB to +40 dB. PipeWire and PulseAudio map full volume to the top of
a hardware control's range, so a UCM device that uses one of them as
its volume control plays 40 dB hot at 100% and clips.
Set a platform limit of 84 (0 dB) on the RX0, RX1 and RX2 interpolator
gains when the RX codec DMA link is initialised, the way the sc8280xp
and x1e80100 machine drivers limit their WSA gains. 0 dB is the default
of these controls and the value alsa-ucm-conf's rx-macro init sets, so
existing configurations are unaffected. A control that does not exist
on a board is skipped.
Signed-off-by: Filippo Falezza <effeffe99@xxxxxxxxx>
---
LGTM.
Reviewed-by: Prasad Kumpatla<prasad.kumpatla@xxxxxxxxxxxxxxxx>
Thanks,
Prasad