ASoC: soc-component: Update handling to component delays
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 13 May 2022 09:05:32 +0000 (10:05 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 May 2022 11:58:41 +0000 (12:58 +0100)
commit232213bd73bbb381b05b729829fdb5d00e0a8fdf
tree91cd50853d3d60cbe3b5b2fee25edd4fcd89ffc6
parent8c8a0f01c7c52f9037b6859ff5234ea5acf572d6
ASoC: soc-component: Update handling to component delays

Currently the checking for if a component sits on the CPU or CODEC side
of the DAI link is done with a helper function that checks if the
component defines legacy_dai_naming. However, there are already a couple
of CPU side components that explicitly opt in to non-legacy DAI naming
and it doesn't seem like a very robust solution. Rather than looking for
the flag check if the component is attached to any of the CODEC DAIs on
the DAI link. This is more robust and helps to bring the core further in
the direction of a component being a generic block rather than being
classified as platform or CODEC drivers.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220513090532.1450944-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-component.c