fix a few minor compilation errors

This commit is contained in:
Mike Brady
2019-02-08 09:40:51 +00:00
parent c86823c343
commit 8b589879be
2 changed files with 8 additions and 4 deletions
+7 -3
View 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>
@@ -37,6 +35,12 @@
#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;
+1 -1
View File
@@ -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