[alsa-devel] [PATCH v3 0/3] topology: Add external API for building topology data

Liam Girdwood liam.r.girdwood at linux.intel.com
Tue Aug 11 19:23:14 CEST 2015


Currently we can build topology binary data files from topology text files.
However it is sometimes necessary for DSP FW vendors to build topology binary
data within a toolset and create topology binary data directly from within
vendor tools.

This series adds an API to the alsa-lib topology core so that vendor tools
can create topology data directly.

Changes since V2:-

 o Fixed elem memory leaks on error handling paths
 o Fixed indentation.
 o Moved container_of and ARRAY_SIZE to local.h
 o remove use of unlink() and fixed file permissions.

Changes since V1:-

 o Split out refactoring of OBJECT_TYPE to SND_TPLG_TYPE_
 o Removed inclusing of type_compat.h from asoc.h

Liam Girdwood (1):
  core: add convenience macros to local.h

Mengdong Lin (2):
  topology: Add C templates structure for building topology from C
    programs
  topology: A API calls to directly build topology data from templates

 include/local.h           |   7 ++
 include/topology.h        | 202 ++++++++++++++++++++++++++++++++
 src/topology/ctl.c        | 292 ++++++++++++++++++++++++++++++++++++++++++++++
 src/topology/dapm.c       | 183 ++++++++++++++++++++++++++---
 src/topology/elem.c       |  17 +++
 src/topology/parser.c     |  59 +++++++++-
 src/topology/tplg_local.h |  26 ++---
 7 files changed, 749 insertions(+), 37 deletions(-)

-- 
2.1.4



More information about the Alsa-devel mailing list