mkimage-profiles/features.in/arm-rpi4/image-scripts.d/82-timer-based-to-interrupt-driven
Dmitriy Terekhin 6d6cd631b6 arm-rpi4: pulseaudio customization
Changed audio scheduling from timer-based to
interrupt-driven to prevent unwanted crackle.
2020-08-02 00:40:25 +07:00

12 lines
268 B
Bash
Executable File

#!/bin/sh -efu
# Changed audio scheduling from timer-based to
# interrupt-driven to prevent unwanted crackle.
pafile="/etc/pulse/default.pa"
if [ -f "$pafile" ]
then
sed -i 's/^load-module module-udev-detect$/load-module module-udev-detect tsched=0/' "$pafile"
fi