changeset 2987:58c63fbbd3ce

Do not use non-blocking playback, it is entirely unnecessary and is the source of many problems we have with ALSA on weird cards.
author William Pitcock <nenolod@atheme.org>
date Fri, 05 Dec 2008 07:10:58 -0600
parents 947ac5c18ad3
children 059285b5de7c
files src/alsa/audio.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/alsa/audio.c	Mon Nov 10 03:12:46 2008 +0200
+++ b/src/alsa/audio.c	Fri Dec 05 07:10:58 2008 -0600
@@ -807,8 +807,7 @@
 	debug("Opening device: %s", alsa_cfg.pcm_device);
 	/* FIXME: Can snd_pcm_open() return EAGAIN? */
 	if ((err = snd_pcm_open(&alsa_pcm, alsa_cfg.pcm_device,
-				SND_PCM_STREAM_PLAYBACK,
-				SND_PCM_NONBLOCK)) < 0)
+				SND_PCM_STREAM_PLAYBACK, 0)) < 0)
 	{
 		g_warning("alsa_setup(): Failed to open pcm device (%s): %s",
 			  alsa_cfg.pcm_device, snd_strerror(err));