mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ASoC: Intel: sof_sdw: overwrite mach_params->dmic_num
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> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://patch.msgid.link/20240827123215.258859-8-yung-chuan.liao@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
775c1a4aa6
commit
7db9f63611
1 changed files with 5 additions and 0 deletions
|
@ -1108,6 +1108,11 @@ static int sof_card_dai_links_create(struct snd_soc_card *card)
|
||||||
else
|
else
|
||||||
dmic_num = 2;
|
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)
|
if (sof_sdw_quirk & SOF_SSP_BT_OFFLOAD_PRESENT)
|
||||||
bt_num = 1;
|
bt_num = 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue