The MIN and MAX macros are provided by numbers.h.
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com --- src/audio/src.c | 1 + src/audio/src.h | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/audio/src.c b/src/audio/src.c index cded8b8..c19828a 100644 --- a/src/audio/src.c +++ b/src/audio/src.c @@ -42,6 +42,7 @@ #include <sof/clock.h> #include <sof/audio/component.h> #include <sof/audio/pipeline.h> +#include <sof/math/numbers.h> #include <uapi/ipc.h>
#include "src_config.h" diff --git a/src/audio/src.h b/src/audio/src.h index 3208693..5268a66 100644 --- a/src/audio/src.h +++ b/src/audio/src.h @@ -32,9 +32,6 @@ #ifndef SRC_H #define SRC_H
-#define MAX(a, b) (((a) > (b)) ? (a) : (b)) -#define MIN(a, b) (((a) < (b)) ? (a) : (b)) - struct src_param { int fir_s1; int fir_s2;