diff options
author | Charles Keepax <[email protected]> | 2023-09-15 15:56:09 +0800 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-09-15 13:27:25 +0100 |
commit | b359760d95eecaabd081c1c2cd58e0a15fe5a68c (patch) | |
tree | 77e834b6699e91b457f37a14778528b7888c92fe /lib/memory-notifier-error-inject.c | |
parent | fc46ecf34782c0d3ec8224ce6003a2631f8a93f1 (diff) |
ASoC: intel: sof_sdw: Add simple DAI link creation helper
The code contains a fair amount of state tracking and one part of that
is keeping track of which entry in the large global cpus
snd_soc_dai_link_component array is currently in use. Add a helper
function to allocate a simple DAI link, this simplifies the
code slightly and moves us in the direction of eliminating the need for
the large global cpus array. This does slightly increase the number of
allocations done, but this is probe time and the code already does a
large number of allocations so this increase is small over all.
Signed-off-by: Charles Keepax <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Bard Liao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions