ASoC: SOF: intel: hda: support also devices with 1 and 3 dmics
authorJaska Uimonen <jaska.uimonen@linux.intel.com>
Tue, 25 Aug 2020 23:50:36 +0000 (16:50 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 26 Aug 2020 12:19:13 +0000 (13:19 +0100)
commit3dca35e35b42b3405ddad7ee95c02a2d8cf28592
tree46e3520719f1f14d8246c47ccf0bf38529e83772
parent6c63c954e1c52f1262f986f36d95f557c6f8fa94
ASoC: SOF: intel: hda: support also devices with 1 and 3 dmics

Currently the dmic check code supports only devices with 2 or 4 dmics.
With other dmic counts the function will return 0. Lately we've seen
devices with only 1 dmic thus enable also configurations with 1, and
possibly 3, dmics. Add also topology postfix -1ch and -3ch for new dmic
configuration.

Signed-off-by: Jaska Uimonen <jaska.uimonen@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20200825235040.1586478-4-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c