dmic: conditionally include variables

conditionally used variables should be conditionally compiled in

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-09-21 16:51:26 -07:00 committed by Liam Girdwood
parent ae8b2e0730
commit fb834b68c1
1 changed files with 2 additions and 0 deletions

View File

@ -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;