[Sound-open-firmware] [PATCH 1/5] DMIC: Bug fix for IPM value calculation for HW version 2

Liam Girdwood liam.r.girdwood at linux.intel.com
Wed Jun 20 12:20:05 CEST 2018


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

All applied.

Thanks

Liam


More information about the Sound-open-firmware mailing list