From 5a78561806944f90c98691434b41e41e456fb8d2 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Sat, 25 Jan 2014 09:56:24 -0600 Subject: [PATCH] Change Linux sound driver load order (reasons in comments) --- src/arch/arch_default.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/arch/arch_default.h b/src/arch/arch_default.h index e540942b50..fad7fed71d 100644 --- a/src/arch/arch_default.h +++ b/src/arch/arch_default.h @@ -39,7 +39,14 @@ #define DEFAULT_INPUT_DRIVER_LIST "X11" #endif #define DEFAULT_MOVIE_DRIVER_LIST "FFMpeg,Null" -#define DEFAULT_SOUND_DRIVER_LIST "ALSA-sw,pulse,OSS,Null" +// ALSA comes first, as the system may have OSS compat but we don't want to use +// it if it's actually an ALSA wrapper. +// Then try OSS before daemon drivers so we're going direct instead of +// unwittingly starting a daemon. +// JACK gives us an explicit option to NOT start a daemon, so try it third, +// as PulseAudio will successfully Init() but not actually work if the +// PulseAudio daemon has been suspended by/for jackd. +#define DEFAULT_SOUND_DRIVER_LIST "ALSA-sw,OSS,JACK,Pulse,Null" #else #error Which arch? #endif