]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: Intel: sof_sdw: correct mach_params->dmic_num
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 6 Dec 2024 07:58:54 +0000 (15:58 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 9 Dec 2024 13:12:00 +0000 (13:12 +0000)
commit4ab80a2961c75562ffbac1f80de151a978c31659
tree35c5e1f213a7a759835087f5ff41d4fd00e52dc8
parent5757b31666277e2b177b406e48878dc48d587a46
ASoC: Intel: sof_sdw: correct mach_params->dmic_num

mach_params->dmic_num will be used to set the cfg-mics value of
card->components string which should be the dmic channels. However
dmic_num is dmic link number and could be set due to the SOC_SDW_PCH_DMIC
quirk. Set mach_params->dmic_num to the default value if the dmic link
is created due to the SOC_SDW_PCH_DMIC quirk.

Fixes: 7db9f6361170 ("ASoC: Intel: sof_sdw: overwrite mach_params->dmic_num")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20241206075903.195730-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c