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

fuweix.tang at intel.com fuweix.tang at intel.com
Thu Apr 13 08:52:43 CEST 2017


From: Fuwei Tang <fuweix.tang at intel.com>

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(-)

-- 
2.7.4



More information about the Alsa-devel mailing list