aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2018-11-28 16:33:24 -0500
committerTaylor Holberton <taylorcholberton@gmail.com>2018-11-28 16:33:24 -0500
commit1f741564893017c47d761dd38a331cba9aacf987 (patch)
treecc759d7ed61b2ff1c58e07c21e18e606126354b8 /src
parent4c5a11d872b3cc09d267ddf39bf9d2b8c1a3e98d (diff)
Added ifndef around macros
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)
{