Skip to content

Commit

Permalink
topology: plugins: nhlt: set dmic stereo mode only in hw version 1
Browse files Browse the repository at this point in the history
Dmic stereo mode should be set only in hw version 1. In later hw
versions this bit is reserved.

Fixes: #222
Signed-off-by: Jaska Uimonen <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
Jaska Uimonen authored and perexg committed Aug 1, 2023
1 parent b399fb8 commit 5cdb598
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions topology/nhlt/intel/dmic/dmic-process.c
Original file line number Diff line number Diff line change
Expand Up @@ -830,8 +830,11 @@ static int configure_registers(struct intel_dmic_params *dmic, struct dmic_calc_
CIC_CONTROL_CIC_START_A(1) |
CIC_CONTROL_MIC_B_POLARITY(dmic->dmic_prm[di].pdm[i].polarity_mic_b) |
CIC_CONTROL_MIC_A_POLARITY(dmic->dmic_prm[di].pdm[i].polarity_mic_a) |
CIC_CONTROL_MIC_MUTE(cic_mute) |
CIC_CONTROL_STEREO_MODE(stereo[i]);
CIC_CONTROL_MIC_MUTE(cic_mute);

if (dmic->dmic_prm[di].driver_version == 1)
val |= CIC_CONTROL_STEREO_MODE(stereo[i]);

dmic->dmic_blob_pdm[i].cic_control = val;

val = CIC_CONFIG_CIC_SHIFT(cfg->cic_shift + 8) |
Expand Down

0 comments on commit 5cdb598

Please sign in to comment.