ASoC: Intel: sof_sdw: detect DMIC number based on mach params
authorRander Wang <rander.wang@intel.com>
Mon, 8 Feb 2021 23:33:30 +0000 (17:33 -0600)
committerMark Brown <broonie@kernel.org>
Wed, 10 Feb 2021 17:22:48 +0000 (17:22 +0000)
commitf88dcb9b98d3f86ead04d2453475267910448bb8
tree9e24f39ef9e944e70f5f1e010668288b8b2b9aac
parent209b0b0d8d5a469a2892ad51cb448811d00b4ff4
ASoC: Intel: sof_sdw: detect DMIC number based on mach params

Current driver create DMIC dai based on quirk for each platforms,
so we need to add quirk for new platforms. Now driver reports DMIC
number to machine driver and machine driver can create DMIC dai based
on this information. The old check is reserved for some platforms
may be failed to set the DMIC number in BIOS.

Reviewed-by: Bard Liao <bard.liao@intel.com>
Signed-off-by: Rander Wang <rander.wang@intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210208233336.59449-6-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c