#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,
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;
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