From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:49617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gmDSt-0003ka-AZ for qemu-devel@nongnu.org; Wed, 23 Jan 2019 03:00:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gmDSr-0000Lt-9v for qemu-devel@nongnu.org; Wed, 23 Jan 2019 03:00:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55610) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gmDSq-0000JY-VC for qemu-devel@nongnu.org; Wed, 23 Jan 2019 03:00:49 -0500 From: Gerd Hoffmann Date: Wed, 23 Jan 2019 09:00:05 +0100 Message-Id: <20190123080005.31078-5-kraxel@redhat.com> In-Reply-To: <20190123080005.31078-1-kraxel@redhat.com> References: <20190123080005.31078-1-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 4/4] [RfC] audio: probe audio drivers by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Brad Smith , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Gerd Hoffmann Add the drivers listed in audio_possible_drivers to audio_drv_list, using the try-* variants. That way the probable drivers are compiled by default if possible. This is RfC because we might look at the ordering. On linux we probably want prefer alsa over oss. Not sure about pulseaudio. Most linux distros use pulse by default on desktops. On servers it'll probably not be available. Dunno how the situation looks like on the bsd family. Signed-off-by: Gerd Hoffmann --- configure | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configure b/configure index bbadd83fea..26e7668028 100755 --- a/configure +++ b/configure @@ -790,13 +790,13 @@ MINGW32*) ;; GNU/kFreeBSD) bsd="yes" - audio_drv_list="oss" + audio_drv_list="oss try-sdl try-pa" audio_possible_drivers="oss sdl pa" ;; FreeBSD) bsd="yes" make="${MAKE-gmake}" - audio_drv_list="oss" + audio_drv_list="oss try-sdl try-pa" audio_possible_drivers="oss sdl pa" # needed for kinfo_getvmmap(3) in libutil.h LIBS="-lutil $LIBS" @@ -809,14 +809,14 @@ FreeBSD) DragonFly) bsd="yes" make="${MAKE-gmake}" - audio_drv_list="oss" + audio_drv_list="oss try-sdl try-pa" audio_possible_drivers="oss sdl pa" HOST_VARIANT_DIR="dragonfly" ;; NetBSD) bsd="yes" make="${MAKE-gmake}" - audio_drv_list="oss" + audio_drv_list="oss try-sdl" audio_possible_drivers="oss sdl" oss_lib="-lossaudio" HOST_VARIANT_DIR="netbsd" @@ -841,7 +841,7 @@ Darwin) LDFLAGS="-arch x86_64 $LDFLAGS" fi cocoa="yes" - audio_drv_list="coreaudio" + audio_drv_list="coreaudio try-sdl" audio_possible_drivers="coreaudio sdl" LDFLAGS="-framework CoreFoundation -framework IOKit $LDFLAGS" libs_softmmu="-F/System/Library/Frameworks -framework Cocoa -framework IOKit $libs_softmmu" @@ -857,7 +857,7 @@ SunOS) install="${INSTALL-ginstall}" smbd="${SMBD-/usr/sfw/sbin/smbd}" if test -f /usr/include/sys/soundcard.h ; then - audio_drv_list="oss" + audio_drv_list="oss try-sdl" fi audio_possible_drivers="oss sdl" # needed for CMSG_ macros in sys/socket.h @@ -875,7 +875,7 @@ Haiku) LIBS="-lposix_error_mapper -lnetwork $LIBS" ;; Linux) - audio_drv_list="oss" + audio_drv_list="oss try-alsa try-sdl try-pa" audio_possible_drivers="oss alsa sdl pa" linux="yes" linux_user="yes" -- 2.9.3