path: root/src/modules/alsa/alsa-util.h
diff options
authorLennart Poettering <>2009-11-05 03:23:08 +0100
committerLennart Poettering <>2009-11-05 03:23:08 +0100
commit53b046d5c9593d848270e85017c2999a61256e0e (patch)
treebc60409ef2e9b6307f9858bf324f6d1766bf3d9d /src/modules/alsa/alsa-util.h
parentc079ceeba00c77a93c613ecf4a3f2cb516db0753 (diff)
alsa: disable timer-based scheduling inside a VM
In virtual machines sound card clocks and OS scheduling tend to become unreliable, adding various 'uneven' latencies. The adaptive algorithm that handles drop-outs does not handle it this well: in contrast to drop-outs on real machines that are evenly distributed, small and can easily be encountered via the adpative algorithms, drop-outs in VMs tend to happen abruptly, and massively, which is not easy to counter. This patch simply disables timer based scheduling in VMs reverting to classic IO based scheduling. This should help make PA perform better in VMs.
Diffstat (limited to 'src/modules/alsa/alsa-util.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/alsa/alsa-util.h b/src/modules/alsa/alsa-util.h
index f6206fe2..1d1256bd 100644
--- a/src/modules/alsa/alsa-util.h
+++ b/src/modules/alsa/alsa-util.h
@@ -142,4 +142,6 @@ pa_bool_t pa_alsa_pcm_is_modem(snd_pcm_t *pcm);
const char* pa_alsa_strerror(int errnum);
+pa_bool_t pa_alsa_may_tsched(pa_bool_t want);