ASoC: soc-dai: set dai_link dpcm_ flags with a helper
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 7 Jul 2020 21:04:37 +0000 (16:04 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 8 Jul 2020 12:51:35 +0000 (13:51 +0100)
commit25612477d20b522a3203707ff23575b99f639fff
treed04a15d39308d77a2af99b0b2cfab2aa2b4c4c91
parent503ed52225ed3d369c8e0dedf13556a7bc1e5c2b
ASoC: soc-dai: set dai_link dpcm_ flags with a helper

Add a helper to walk through all the DAIs and set dpcm_playback and
dpcm_capture flags based on the DAIs capabilities, and use this helper
to avoid setting these flags arbitrarily in generic cards.

The commit referenced in the Fixes tag did not introduce the
configuration issue but will prevent the card from probing when
detecting invalid configurations.

Fixes: b73287f0b0745 ('ASoC: soc-pcm: dpcm: fix playback/capture checks')
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Link: https://lore.kernel.org/r/20200707210439.115300-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-dai.h
sound/soc/generic/audio-graph-card.c
sound/soc/generic/simple-card.c
sound/soc/soc-dai.c