mkimage-profiles/features.in/arm-rpi4/image-scripts.d/82-timer-based-to-interrupt-driven

12 lines
268 B
Plaintext
Raw Normal View History

#!/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