linux/sound
Srinivas Kandagatla fb9ad24485
ASoC: ops: add correct range check for limiting volume
Volume can have ranges that start with negative values, ex: -84dB to
+40dB. Apply correct range check in snd_soc_limit_volume before setting
the platform_max. Without this patch, for example setting a 0dB limit on
a volume range of -84dB to +40dB would fail.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Tested-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20231204124736.132185-2-srinivas.kandagatla@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-12-04 16:20:25 +00:00
..
ac97
aoa ALSA: aoa: Replace with __packed attribute 2023-10-26 09:43:11 +02:00
arm
atmel
core sound fixes for 6.7-rc1 2023-11-10 11:57:51 -08:00
drivers
firewire
hda Merge branch 'for-next' into for-linus 2023-10-31 08:58:36 +01:00
i2c
isa
mips
oss OSS: dmasound/paula: Convert to platform remove callback returning void 2023-11-09 17:44:52 +01:00
parisc
pci sound fixes for 6.7-rc1 2023-11-10 11:57:51 -08:00
pcmcia
ppc
sh
soc ASoC: ops: add correct range check for limiting volume 2023-12-04 16:20:25 +00:00
sparc
spi
synth
usb Merge branch 'for-next' into for-linus 2023-10-31 08:58:36 +01:00
virtio ALSA: virtio: use ack callback 2023-10-27 11:25:07 +02:00
x86
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c