Skip to content

ASoC: support adding PCM dynamically from topology

[email protected] alsa-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 23 repliesIn review
  2. v1 RFC10 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ASoC: Change the PCM runtime array to a listinclude/sound/soc.h sound/soc/fsl/fsl-asoc-card.c sound/soc/fsl/imx-wm8962.c +15 more+312 -1822 replies
2/10ASoC: Define soc_init_dai_link() to wrap link intialization.sound/soc/soc-core.c+98 -830 replies
3/10ASoC: Change 2nd argument of soc_bind_dai_link() to DAI link pointersound/soc/soc-core.c+4 -40 replies
4/10ASoC: Implement DAI links in a listinclude/sound/soc.h sound/soc/soc-core.c+38 -20 replies
5/10ASoC: Add support for dummy DAI links and PCM runtimesinclude/sound/soc.h sound/soc/soc-core.c+44 -13 replies
6/10ASoC: Bind new DAI links after probing componentssound/soc/soc-core.c+29 -00 replies
7/10ASoC: Support adding a DAI dynamicallyinclude/sound/soc.h sound/soc/soc-core.c+96 -00 replies
8/10ASoC: topology: Change pass number of DAI smaller than graphsound/soc/soc-topology.c+4 -40 replies
9/10ASoC: topology: Change stream formats to bitwise flaginclude/uapi/sound/asoc.h+1 -111 replies
10/10ASOC: topology: Add PCM DAIs dynamically when loading theminclude/sound/soc-dai.h include/sound/soc-topology.h sound/soc/soc-topology.c+77 -160 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 00/10] ASoC: support adding PCM dynamically from topology

From: Mengdong Lin <[email protected]>

This series allows the topology core to create PCM devices dynamically. The user can define different DAIs in the topology files for different versions of firmware, but share a generic platform and machine driver.

A dummy DAI and DAI link can be used to register the soc card and specify the platform with topology. Then real DAIs are created in platform probing phase by the topology core, and the machine driver will be notified to create relavant DAI links.

We tested using topology to create FE DAI/DAI links on Broadwell.

Mengdong Lin (10):
ASoC: Change the PCM runtime array to a list
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
ASoC: Add support for dummy DAI links and PCM runtimes
ASoC: Bind new DAI links after probing components
ASoC: Support adding a DAI dynamically
ASoC: topology: Change pass number of DAI smaller than graph
ASoC: topology: Change stream formats to bitwise flag
ASOC: topology: Add PCM DAIs dynamically when loading them

 include/sound/soc-dai.h                      |   1 +
 include/sound/soc-topology.h                 |   1 -
 include/sound/soc.h                          |  28 +-
 include/uapi/sound/asoc.h                    |   2 +-
 sound/soc/fsl/fsl-asoc-card.c                |  10 +-
 sound/soc/fsl/imx-wm8962.c                   |  10 +-
 sound/soc/generic/simple-card.c              |  12 +-
 sound/soc/intel/atom/sst-mfld-platform-pcm.c |  12 +-
 sound/soc/intel/boards/cht_bsw_rt5645.c      |   7 +-
 sound/soc/intel/boards/cht_bsw_rt5672.c      |   7 +-
 sound/soc/pxa/mioa701_wm9713.c               |   6 +-
 sound/soc/samsung/bells.c                    |  40 +-
 sound/soc/samsung/littlemill.c               |  32 +-
 sound/soc/samsung/odroidx2_max98090.c        |   9 +-
 sound/soc/samsung/snow.c                     |   9 +-
 sound/soc/samsung/speyside.c                 |  12 +-
 sound/soc/samsung/tobermory.c                |  21 +-
 sound/soc/soc-core.c                         | 642 +++++++++++++++++++--------
 sound/soc/soc-dapm.c                         |   7 +-
 sound/soc/soc-pcm.c                          |  22 +-
 sound/soc/soc-topology.c                     |  99 ++++-
 sound/soc/tegra/tegra_wm8903.c               |   3 +-
 22 files changed, 701 insertions(+), 291 deletions(-)
Signature · 1 line
1.9.1