From fb834b68c1d20d23a6bbeddae826cf077403e780 Mon Sep 17 00:00:00 2001 From: Curtis Malainey Date: Tue, 21 Sep 2021 16:51:26 -0700 Subject: [PATCH] dmic: conditionally include variables conditionally used variables should be conditionally compiled in Signed-off-by: Curtis Malainey --- src/drivers/intel/dmic/dmic_computed.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/intel/dmic/dmic_computed.c b/src/drivers/intel/dmic/dmic_computed.c index 7d4ffef2a..6eb911a9b 100644 --- a/src/drivers/intel/dmic/dmic_computed.c +++ b/src/drivers/intel/dmic/dmic_computed.c @@ -593,7 +593,9 @@ static int configure_registers(struct dai *dai, uint32_t ref; int32_t ci; uint32_t cu; +#if defined(DMIC_IPM_VER1) || defined(DMIC_IPM_VER2) int ipm; +#endif int of0; int of1; int fir_decim;