Skip to content

ASoC: Implement DAI links in a list & some code refactoring

[email protected] alsa-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ASoC: Define soc_init_dai_link() to wrap link intialization.sound/soc/soc-core.c+98 -830 replies
2/3ASoC: Change 2nd argument of soc_bind_dai_link() to DAI link pointersound/soc/soc-core.c+4 -40 replies
3/3ASoC: Implement DAI links in a list & define API to add/remove a linkinclude/sound/soc.h sound/soc/soc-core.c+75 -21 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] ASoC: Implement DAI links in a list & some code refactoring

From: Mengdong Lin <[email protected]>

This is still a preparation for topology to create PCM at dynamically.

First two patches are code refactoring.

The 3rd patch implements the DAI links into a list, so that the number of links can add/shrink by topology at runtime.
The use scenario may be like this:
- When instantiating the soc card, probing a component with topology can bring new DAI links. The ASoC will probe the new links (in later patches).
- When unregistering the soc card, removing this component will also remove DAI links created by it.

For backward compatiblity, the machine driver can still define a static link array. And the ASoC core will add these links into the list when instantiating the soc card.

Mengdong Lin (3):
ASoC: Define soc_init_dai_link() to wrap link intialization.
ASoC: Change 2nd argument of soc_bind_dai_link() to DAI link pointer
ASoC: Implement DAI links in a list & define API to add/remove a link

 include/sound/soc.h  |  15 ++-
 sound/soc/soc-core.c | 251 +++++++++++++++++++++++++++++++++------------------
 2 files changed, 177 insertions(+), 89 deletions(-)
Signature · 1 line
2.5.0