rockbox/firmware/target
Aidan MacDonald 5b5cd252d0 pcm: improve 32-bit software volume scaling
Replace the factor calculation from pcm-alsa.c, which
is based on signal *power* ratios, with the fp_factor()
calculation that is based on amplitude ratios. Because
power changes with the square of amplitude, this means
1 dB of power equals 2 dB of amplitude.

Rockbox's volume controls are amplitude-based, so the
smallest step size for pcm-alsa was effectively 2 dB.
The fp_factor() method supports 0.1 dB steps and is a
bit more accurate besides, so it's simply superior in
all respects (aside from taking a few more CPU cycles
to calculate the factor).

Change-Id: I34d143c225d8b5e085cde299fc405f83c13314bf
2026-02-23 15:44:42 +00:00
..
arm echoplayer: initialize I2C bus 2026-02-23 08:19:35 -05:00
coldfire Remove BATTERY_TYPES 2025-03-11 02:26:38 -04:00
hosted pcm: improve 32-bit software volume scaling 2026-02-23 15:44:42 +00:00
mips pcm: improve 32-bit software volume scaling 2026-02-23 15:44:42 +00:00