19 Jun
2018
19 Jun
'18
5:14 p.m.
The IPM bit field should be set to the number of used stereo controllers. This patch fixes the issue that pdm[0] got counted twice.
Signed-off-by: Sathish K. Kuttan sathish.k.kuttan@intel.com --- src/drivers/dmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drivers/dmic.c b/src/drivers/dmic.c index 97ca8b2..0f55474 100644 --- a/src/drivers/dmic.c +++ b/src/drivers/dmic.c @@ -714,7 +714,7 @@ static inline void source_ipm_helper(int source[], int *ipm, int stereo[],
/* IPM bit field is set to count of active pdm controllers. */ *ipm = pdm[0]; - for (i = 0; i < dmic->num_pdm_active; i++) + for (i = 1; i < dmic->num_pdm_active; i++) *ipm += pdm[i]; } #endif
--
2.14.1