aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorOswald Buddenhagen <[email protected]>2023-05-14 19:03:23 +0200
committerTakashi Iwai <[email protected]>2023-05-16 11:11:04 +0200
commitbcdbd3b7888e1db89b7b2f7c78237c9ed5c2ebb1 (patch)
tree28e01cac493ddac6d65e345e5bf07dd20219477d /tools/perf/scripts/python/export-to-postgresql.py
parent1298bc978afba0a507cedd0a91e53267ca152804 (diff)
ALSA: emu10k1: enable bit-exact playback, part 2: voice attenuation
The voice volume is a raw fractional multiplier that can't actually represent 1.0. To still enable real pass-through, we now set the volume to 0.5 (which results in no loss of precision, as the FX bus provides fractional values) and scale up the samples in DSP code. To maintain backwards compatibility with existing configuration files, we rescale the values in the mixer controls. The range is extended upwards from 0xffff to 0x1fffd, which actually introduces the possibility of specifying an amplification. There is still a minor incompatibility with user space, namely if someone loaded custom DSP code. They'll just get half the volume, so this doesn't seem like a big deal. Signed-off-by: Oswald Buddenhagen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions