aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/alsa_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output/alsa_plugin.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/output/alsa_plugin.c b/src/output/alsa_plugin.c
index 1845f1b76..e812e49fc 100644
--- a/src/output/alsa_plugin.c
+++ b/src/output/alsa_plugin.c
@@ -17,8 +17,10 @@
*/
#include "../output_api.h"
+#include "../utils.h"
+#include "../log.h"
-#ifdef HAVE_ALSA
+#include <alsa/asoundlib.h>
#define ALSA_PCM_NEW_HW_PARAMS_API
#define ALSA_PCM_NEW_SW_PARAMS_API
@@ -27,11 +29,6 @@ static const char default_device[] = "default";
#define MPD_ALSA_RETRY_NR 5
-#include "../utils.h"
-#include "../log.h"
-
-#include <alsa/asoundlib.h>
-
typedef snd_pcm_sframes_t alsa_writei_t(snd_pcm_t * pcm, const void *buffer,
snd_pcm_uframes_t size);
@@ -437,8 +434,3 @@ const struct audio_output_plugin alsaPlugin = {
.cancel = alsa_dropBufferedAudio,
.close = alsa_closeDevice,
};
-
-#else /* HAVE ALSA */
-
-DISABLED_AUDIO_OUTPUT_PLUGIN(alsaPlugin)
-#endif /* HAVE_ALSA */