fix a few minor compilation errors
This commit is contained in:
+7
-3
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user