]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite661b92b5691e52e791637b026e5f77b5440e56c
treed04a15d39308d77a2af99b0b2cfab2aa2b4c4c91
parentc168e7591d1b41489f10fef21d9c35b46580b659
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: 69f2df8875c79 ('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