]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: sdw: relax sdw machine select constraints
authorranderwang <rander.wang@linux.intel.com>
Fri, 15 May 2020 13:59:55 +0000 (16:59 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 18 May 2020 12:24:56 +0000 (13:24 +0100)
commit999582864681b7577e9ee3a19e8313f640415987
treec5c749cf99f9304bc4c26ee0604341ad572a9f1a
parent8438b615a38d21cfb32fbbdf664f81b3e3e05385
ASoC: SOF: Intel: sdw: relax sdw machine select constraints

On some platforms such as Up Extreme all links are enabled but only one
link can be used by external codec. Instead of exact match of two masks,
first check whether link_mask of mach is subset of link_mask supported
by hw and then go on searching link_adr.

Signed-off-by: randerwang <rander.wang@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20200515135958.17511-6-kai.vehmanen@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c