From fe93288b1fec70f6297d291d894092960ef271e2 Mon Sep 17 00:00:00 2001 From: xross Date: Wed, 17 Jan 2018 14:25:27 +0000 Subject: [PATCH] I2S_MODE_TDM handling --- lib_xua/api/xua_conf_default.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib_xua/api/xua_conf_default.h b/lib_xua/api/xua_conf_default.h index 1c4dbf47..afcdc368 100644 --- a/lib_xua/api/xua_conf_default.h +++ b/lib_xua/api/xua_conf_default.h @@ -84,6 +84,12 @@ #define DSD_CHANS_DAC 0 #endif + +/* TODO not required */ +#ifndef I2S_MODE_TDM +#define I2S_MODE_TDM 0 +#endif + /** * @brief Channels per I2S frame. * * @@ -91,7 +97,7 @@ * **/ #ifndef I2S_CHANS_PER_FRAME - #ifdef I2S_MODE_TDM + #if (I2S_MODE_TDM == 1) #define I2S_CHANS_PER_FRAME 8 #else #define I2S_CHANS_PER_FRAME 2