[PATCH make ALSA default on Linux
OSS is legacy on Linux, ALSA support of QEMU improved recently so that it should work out-of-the-box. Let's make the native sound system of Linux also QEMU's default on that platform. OSS can still be selected and ALSA can be disabled when preferred.
Reasoning: Distros are expected to rather take care of ALSA issues than OSS ones these days. E.g. on my SUSE 10.3, ALSA provides shared DSP access while OSS does not.
Signed-off-by Jan Kiszka <[email protected]>
--- configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
configure +7 -1
@@ -195,7 +195,7 @@ SunOS) fi ;; *) -oss="yes" +alsa="yes" linux="yes" linux_user="yes" if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then
@@ -268,6 +268,10 @@ for opt do ;; --enable-alsa) alsa="yes" ;; + --disable-alsa) alsa="no" + ;; + --enable-oss) oss="yes" + ;; --enable-esd) esd="yes" ;; --enable-dsound) dsound="yes"
@@ -428,9 +432,11 @@ echo " --enable-gus enable echo " --enable-cs4231a enable CS4231A emulation" echo " --enable-coreaudio enable Coreaudio audio driver" echo " --enable-alsa enable ALSA audio driver" +echo " --disable-alsa disable ALSA audio driver" echo " --enable-esd enable EsoundD audio driver" echo " --enable-fmod enable FMOD audio driver" echo " --enable-dsound enable DirectSound audio driver" +echo " --enable-oss enable OSS audio driver" echo " --disable-mixemu disable mixer emulation" echo " --disable-brlapi disable BrlAPI" echo " --disable-vnc-tls disable TLS encryption for VNC server"