summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-11-01 06:43:37 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-11-01 07:14:55 +0200
commitfdb250e1369d4364731cc7c28998669db957a360 (patch)
tree0e214e6a95991935590493a069937086705fd169 /src/util
parent2412048fc02d00341f735e2b4e3a6b2ccb17a6b8 (diff)
tidy up code, and start checking up hwcaps
supported formats and their conversions are handled more nicer now too.
Diffstat (limited to 'src/util')
-rw-r--r--src/util/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h
index 67c47e0..fe3f50c 100644
--- a/src/util/util.h
+++ b/src/util/util.h
@@ -25,6 +25,8 @@ do_debug(void)
#define ERR(x, y, ...) do { err(x, "asound: %s " y, __func__, ##__VA_ARGS__); } while (0)
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+#define MIN(a, b) (((a) < (b)) ? (a) : (b))
+#define MAX(a, b) (((a) > (b)) ? (a) : (b))
static inline char*
c_strdup(const char *str)