]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm: fix checks for multi-cpu FE dailinks
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 12 Jun 2020 20:35:07 +0000 (15:35 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jun 2020 14:18:30 +0000 (15:18 +0100)
commitf4bf4b284fbfb03f177eff371710c4ee34acc9ec
tree083fdc70cd16851ab8c8541db3c864b1c083c9c5
parentf17628186d76eb01688ee3f61f0e580055b87769
ASoC: soc-pcm: fix checks for multi-cpu FE dailinks

soc_dpcm_fe_runtime_update() is called for all dailinks, and we want
to first discard all back-ends, then deal with front-ends.

The existing code first reports an error with multi-cpu front-ends,
and that check needs to be moved after we know that we are dealing
with a front-end.

Fixes: 06b8e9da4e4a3 ('ASoC: Return error if the function does not support multi-cpu')
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>
BugLink: https://github.com/thesofproject/linux/issues/1970
Link: https://lore.kernel.org/r/20200612203507.25621-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c