diff options
author | Bard Liao <yung-chuan.liao@linux.intel.com> | 2024-08-27 14:32:05 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-08-28 14:01:56 +0200 |
commit | 7db9f6361170a8caa32cc31d894fac1ba8dfc4f3 (patch) | |
tree | 3a280529196ff43e64cab6d97a08ed2ff5d9d120 /sound/soc/intel | |
parent | ASoC: Intel: sof_sdw: move ignore_internal_dmic check earlier (diff) | |
download | linux-7db9f6361170a8caa32cc31d894fac1ba8dfc4f3.tar.xz linux-7db9f6361170a8caa32cc31d894fac1ba8dfc4f3.zip |
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>
Diffstat (limited to 'sound/soc/intel')
-rw-r--r-- | sound/soc/intel/boards/sof_sdw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c index 3781a27bfbed..b06948c16b3f 100644 --- a/sound/soc/intel/boards/sof_sdw.c +++ b/sound/soc/intel/boards/sof_sdw.c @@ -1108,6 +1108,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; |