[Sound-open-firmware] [PATCH 1/5] DMIC: Bug fix for IPM value calculation for HW version 2
Seppo Ingalsuo
seppo.ingalsuo at linux.intel.com
Tue Jun 19 17:14:49 CEST 2018
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 at 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
More information about the Sound-open-firmware
mailing list