]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: enable dmic handling with 2 or fewer SoundWire links
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 15 Jul 2022 14:41:44 +0000 (09:41 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 15 Jul 2022 16:10:57 +0000 (17:10 +0100)
commit2a0e06c4cf6eaaad959e4b09295e8c7091f5c95b
tree1e99d3df090be1956a18fb34b0d1a9846c099554
parent4a350c5de361c4a8854fd663e6825cdec3dc9ce4
ASoC: SOF: Intel: enable dmic handling with 2 or fewer SoundWire links

When PCH-attached DMICs are used on a SoundWire-based platform, all
known devices pin-mux SoundWire link2 and link3 with DMIC, and only
use link0 and link1 for SoundWire.

The HP Omen16 is the first exception to the rule, with SoundWire using
link0 and link3. Rather than using a fixed mask, let's count the
number of SoundWire links used.

BugLink: https://github.com/thesofproject/sof/issues/5966
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20220715144144.274770-5-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c