]> git.alsa-project.org Git - alsa-lib.git/commit
snd_tlv_convert_to_dB: Fix mute handling for MINMAX_MUTE type
authorqaqland <anguoli@uniontech.com>
Mon, 15 Sep 2025 06:01:18 +0000 (14:01 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 7 Nov 2025 20:56:41 +0000 (21:56 +0100)
commit41039b49ad3e20506134864028c77aeaba4c0d51
treee41f681f0aa12e980ddb96f50314abe8e9731555
parentf77ab152b88f725b812997f02d91c616b5437ce8
snd_tlv_convert_to_dB: Fix mute handling for MINMAX_MUTE type

Ensure the SND_CTL_TLV_DB_GAIN_MUTE value is returned when the calculated
gain equals the minimum dB value for the SNDRV_CTL_TLVT_DB_MINMAX_MUTE type.
The previous check based solely on the volume value could miss cases where
the linear calculation resulted in the minimum gain.

Closes: https://github.com/alsa-project/alsa-lib/pull/478
Signed-off-by: qaqland <anguoli@uniontech.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/control/tlv.c