20 Jun
2018
20 Jun
'18
12:20 p.m.
On Tue, 2018-06-19 at 18:14 +0300, Seppo Ingalsuo wrote:
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
All applied.
Thanks
Liam