# HG changeset patch # User William Pitcock # Date 1228482658 21600 # Node ID 58c63fbbd3ce6a3528632dddf3915612aebcebdd # Parent 947ac5c18ad3f18afd0169dc87a6405669da355f Do not use non-blocking playback, it is entirely unnecessary and is the source of many problems we have with ALSA on weird cards. diff -r 947ac5c18ad3 -r 58c63fbbd3ce src/alsa/audio.c --- 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));