From fdb250e1369d4364731cc7c28998669db957a360 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 1 Nov 2018 06:43:37 +0200 Subject: tidy up code, and start checking up hwcaps supported formats and their conversions are handled more nicer now too. --- src/util/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util') 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) -- cgit v1.2.3-70-g09d2