Skip to content

Commit

Permalink
ASoC: Intel: sof_sdw: overwrite mach_params->dmic_num
Browse files Browse the repository at this point in the history
mach_params->dmic_num will be used to set the cfg-mics value of
card->components string. Overwrite it to the actual number of PCH
DMICs used in the device.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
  • Loading branch information
bardliao authored and plbossart committed Aug 6, 2024
1 parent f50d9ce commit 7913a65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sound/soc/intel/boards/sof_sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,11 @@ static int sof_card_dai_links_create(struct snd_soc_card *card)
else
dmic_num = 2;
}
/*
* mach_params->dmic_num will be used to set the cfg-mics value of card->components
* string. Overwrite it to the actual number of PCH DMICs used in the device.
*/
mach_params->dmic_num = dmic_num;

if (sof_sdw_quirk & SOF_SSP_BT_OFFLOAD_PRESENT)
bt_num = 1;
Expand Down

0 comments on commit 7913a65

Please sign in to comment.