Skip to content

topology: Support using "index" to group objects when generating binary for kernel

[email protected] alsa-devel 1 version Applied

Status from this message: Applied these four patches now. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4topology: Insert new element based on its index valuesrc/topology/elem.c+49 -180 replies
2/4topology: Remove code parsing index value in paring each objectsrc/topology/ctl.c src/topology/dapm.c src/topology/data.c +1 more+0 -810 replies
3/4topology: Look up references for an object based on its indexinclude/topology.h src/topology/ctl.c src/topology/dapm.c +4 more+41 -290 replies
4/4topology: Group elements with the same index value into a blocksrc/topology/builder.c+51 -430 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchMengdong Lin
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] topology: Support using "index" to group objects when generating binary for kernel

From: Fuwei Tang <[email protected]>

The index value of an topology object can be used to group objects for different use cases. And so the audio kernel driver can ask topology core to load all objects of the specified index value(use case). The function is already supported in kernel.
So in the user space, for topology objects of the same type but with different index values, they should be written into different blocks in the binary for kernel. The index value is stored in the block header.

Fuwei Tang (4):
topology: Insert new element based on its index value
topology: Remove code parsing index value in paring each object
topology: Look up references for an object based on its index
topology: Group elements with the same index value into a block

 include/topology.h        | 10 +++--
 src/topology/builder.c    | 94 +++++++++++++++++++++++++----------------------
 src/topology/ctl.c        | 31 +---------------
 src/topology/dapm.c       | 27 +++++---------
 src/topology/data.c       | 15 ++------
 src/topology/elem.c       | 74 +++++++++++++++++++++++++++----------
 src/topology/pcm.c        | 58 ++++++-----------------------
 src/topology/tplg_local.h |  3 +-
 8 files changed, 141 insertions(+), 171 deletions(-)
Signature · 1 line
2.7.4