From 6d6cd631b6a5c28e88d4618c87947858a0738526 Mon Sep 17 00:00:00 2001 From: Dmitriy Terekhin Date: Tue, 7 Jul 2020 20:57:55 +0400 Subject: [PATCH] arm-rpi4: pulseaudio customization Changed audio scheduling from timer-based to interrupt-driven to prevent unwanted crackle. --- .../82-timer-based-to-interrupt-driven | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 features.in/arm-rpi4/image-scripts.d/82-timer-based-to-interrupt-driven diff --git a/features.in/arm-rpi4/image-scripts.d/82-timer-based-to-interrupt-driven b/features.in/arm-rpi4/image-scripts.d/82-timer-based-to-interrupt-driven new file mode 100755 index 00000000..547acbd8 --- /dev/null +++ b/features.in/arm-rpi4/image-scripts.d/82-timer-based-to-interrupt-driven @@ -0,0 +1,11 @@ +#!/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