Skip to content

Commit

Permalink
drivers: dmic: enable dmic mono configuration
Browse files Browse the repository at this point in the history
DMIC configuration should allow to use mono source mode.

Signed-off-by: Damian Nikodem <[email protected]>
  • Loading branch information
dnikodem authored and carlescufi committed Oct 28, 2022
1 parent 7cfc553 commit b953ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dai/intel/dmic/dmic_nhlt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down

0 comments on commit b953ff1

Please sign in to comment.