]> code.delx.au - pulseaudio/blobdiff - polyp/module-alsa-sink.c
Merge Pierre's changes
[pulseaudio] / polyp / module-alsa-sink.c
index 840fc536455186cd8ec09076e8477e0e7be6e962..dde5d8b6996d78b70d7679dbae0cde86f95dcf62 100644 (file)
 
 #include <assert.h>
 #include <stdio.h>
+
+#ifdef HAVE_SYS_POLL_H
 #include <sys/poll.h>
+#else
+#include "poll.h"
+#endif
 
 #include <asoundlib.h>
 
@@ -204,6 +209,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
     m->userdata = u;
     u->module = m;
     
+    snd_config_update_free_global();
     if (snd_pcm_open(&u->pcm_handle, dev = pa_modargs_get_value(ma, "device", DEFAULT_DEVICE), SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK) < 0) {
         pa_log(__FILE__": Error opening PCM device %s\n", dev);
         goto fail;