aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pcm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pcm.c b/src/pcm.c
index d70f789..96a5788 100644
--- a/src/pcm.c
+++ b/src/pcm.c
@@ -60,8 +60,13 @@
#include <tinyalsa/pcm.h>
#include <tinyalsa/limits.h>
+#ifndef PARAM_MAX
#define PARAM_MAX SNDRV_PCM_HW_PARAM_LAST_INTERVAL
+#endif /* PARAM_MAX */
+
+#ifndef SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP
#define SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP (1<<2)
+#endif /* SNDRV_PCM_HW_PARAMS_NO_PERIOD_WAKEUP */
static inline int param_is_mask(int p)
{