pulseaudio: Disable timer-scheduling as a buffering workaround
One of the drivers in our set of three in the kernel is causing issues by
mis-reporting buffer sizes and interrupting pulseaudio for new frames instead of
returning correct data.
This reverts pulseaudio's tsched behavior on first boot.
Change-Id: If52c208bead5d00ae5be0076a2c95da5e4d95080
diff --git a/debian/imx-board-audio.install b/debian/imx-board-audio.install
index 3c29d34..93b32df 100644
--- a/debian/imx-board-audio.install
+++ b/debian/imx-board-audio.install
@@ -1 +1,3 @@
+etc /
usr /
+
diff --git a/etc/runonce.d/00-disable-tsched.sh b/etc/runonce.d/00-disable-tsched.sh
new file mode 100644
index 0000000..c077db5
--- /dev/null
+++ b/etc/runonce.d/00-disable-tsched.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+sed -i -e 's/load-module module-udev-detect$/load-module module-udev-detect tsched=0/' /etc/pulse/default.pa
+