mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:45:41 +01:00
topology: plugins: nhlt: set dmic stereo mode only in hw version 1
Dmic stereo mode should be set only in hw version 1. In later hw versions this bit is reserved. Fixes: https://github.com/alsa-project/alsa-utils/pull/222 Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.ntel.com> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b399fb85a9
commit
5cdb598f59
1 changed files with 5 additions and 2 deletions
|
@ -830,8 +830,11 @@ static int configure_registers(struct intel_dmic_params *dmic, struct dmic_calc_
|
||||||
CIC_CONTROL_CIC_START_A(1) |
|
CIC_CONTROL_CIC_START_A(1) |
|
||||||
CIC_CONTROL_MIC_B_POLARITY(dmic->dmic_prm[di].pdm[i].polarity_mic_b) |
|
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_A_POLARITY(dmic->dmic_prm[di].pdm[i].polarity_mic_a) |
|
||||||
CIC_CONTROL_MIC_MUTE(cic_mute) |
|
CIC_CONTROL_MIC_MUTE(cic_mute);
|
||||||
CIC_CONTROL_STEREO_MODE(stereo[i]);
|
|
||||||
|
if (dmic->dmic_prm[di].driver_version == 1)
|
||||||
|
val |= CIC_CONTROL_STEREO_MODE(stereo[i]);
|
||||||
|
|
||||||
dmic->dmic_blob_pdm[i].cic_control = val;
|
dmic->dmic_blob_pdm[i].cic_control = val;
|
||||||
|
|
||||||
val = CIC_CONFIG_CIC_SHIFT(cfg->cic_shift + 8) |
|
val = CIC_CONFIG_CIC_SHIFT(cfg->cic_shift + 8) |
|
||||||
|
|
Loading…
Reference in a new issue