From b953ff1418d2490d2a030f2a0cac771de3ae4128 Mon Sep 17 00:00:00 2001 From: Damian Nikodem Date: Fri, 28 Oct 2022 08:43:12 +0200 Subject: [PATCH] drivers: dmic: enable dmic mono configuration DMIC configuration should allow to use mono source mode. Signed-off-by: Damian Nikodem --- drivers/dai/intel/dmic/dmic_nhlt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dai/intel/dmic/dmic_nhlt.c b/drivers/dai/intel/dmic/dmic_nhlt.c index a175535b342cec..d41c6d851b7e58 100644 --- a/drivers/dai/intel/dmic/dmic_nhlt.c +++ b/drivers/dai/intel/dmic/dmic_nhlt.c @@ -87,7 +87,7 @@ static int dai_nhlt_dmic_dai_params_get(struct dai_intel_dmic *dmic, return -EINVAL; } - stereo_pdm = 1; + stereo_pdm = OUTCONTROL0_IPM_SOURCE_MODE_GET(outcontrol_val); dmic->dai_config_params.channels = (stereo_pdm + 1) * num_pdm; for (n = 0; n < CONFIG_DAI_DMIC_HW_CONTROLLERS; n++)