ASoC: audio-graph: Identify 'no_pcm' DAI links for DPCM
authorSameer Pujar <spujar@nvidia.com>
Mon, 2 Nov 2020 15:10:11 +0000 (20:40 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 10 Nov 2020 17:28:20 +0000 (17:28 +0000)
commitc21cbb526c0a105d582299839a9c4244dd6bf38a
treec41164e9d21e2b9395b75980b43ac4c77861c738
parente6aeb375d25dba56c4089b1d6aa0a77fe218ef3b
ASoC: audio-graph: Identify 'no_pcm' DAI links for DPCM

PCM devices are created for FE dai links with 'no-pcm' flag as '0'.
Such DAI links have CPU component which implement either pcm_construct()
or pcm_new() at component or dai level respectively. Based on this,
current patch exposes a helper function to identify such components
and populate 'no_pcm' flag for DPCM DAI link.

This helps to have BE<->BE component links where PCM devices need
not be created for CPU component involved in such links.

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/1604329814-24779-5-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c