]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
fix a few minor compilation errors
authorMike Brady <mikebrady@eircom.net>
Fri, 8 Feb 2019 09:40:51 +0000 (09:40 +0000)
committerMike Brady <mikebrady@eircom.net>
Fri, 8 Feb 2019 09:40:51 +0000 (09:40 +0000)
audio_alsa.c
common.h

index 4cb187b291df4eee22dc5c4d78cdd30e9e59bb36..ef65a345ce26a38f82147171d0723993c78d1b01 100644 (file)
@@ -27,8 +27,6 @@
 
 #define ALSA_PCM_NEW_HW_PARAMS_API
 
-#include "audio.h"
-#include "common.h"
 #include <alsa/asoundlib.h>
 #include <inttypes.h>
 #include <math.h>
 #include <stdio.h>
 #include <unistd.h>
 
+#include "config.h"
+
+#include "common.h"
+#include "activity_monitor.h"
+#include "audio.h"
+
 enum alsa_backend_mode {
   abm_disconnected,
   abm_connected,
@@ -983,7 +987,7 @@ static int init(int argc, char **argv) {
       if ((strcasecmp(str, "no") == 0) || (strcasecmp(str, "off") == 0) || (strcasecmp(str, "never") == 0))
         config.disable_standby_mode = disable_standby_off;
       else if ((strcasecmp(str, "yes") == 0) || (strcasecmp(str, "on") == 0) || (strcasecmp(str, "always") == 0)) {
-        config.disable_standby_mode = disable_standby_on;
+        config.disable_standby_mode = disable_standby_always;
         config.keep_dac_busy = 1;
       } else if (strcasecmp(str, "while active") == 0)
         config.disable_standby_mode = disable_standby_while_active;
index e13ebf9e5a43cd4510c956708714e25a866e6ffa..6fdf38c1b3e2d45c5677d1554f24a3adbb3c5d7e 100644 (file)
--- a/common.h
+++ b/common.h
@@ -66,7 +66,7 @@ enum disable_standby_mode_type {
   disable_standby_off = 0,
   disable_standby_while_active,
   disable_standby_always
-}
+};
 
 // the following enum is for the formats recognised -- currently only S16LE is recognised for input,
 // so these are output only for the present