- Backport upstream fixes: surround41/50 chmap fix, UCM documents, config string fix, PCM timestamp query API, replacement of list.h with LGPL: 0023-surround41-50.conf-Use-chmap-syntax-for-better-flexi.patch 0024-ucm-docs-fix-doxygen-exclude-patch-for-UCM-local-hea.patch 0025-ucm-docs-Fix-doxygen-formatting-for-UCM-main-page.patch 0026-docs-Add-UCM-link-to-main-doxygen-page.patch 0027-Replace-unsafe-characters-with-_-in-card-name.patch 0028-pcm-add-helper-functions-to-query-timestamping-capab.patch 0029-pcm-add-support-for-get-set_audio_htstamp_config.patch 0030-pcm-add-support-for-new-STATUS_EXT-ioctl.patch 0031-test-fix-audio_time-with-new-get-set-audio_tstamp_co.patch 0032-test-audio_time-show-report-validity-and-accuracy.patch 0033-pcm-restore-hw-params-on-set-latency-failed.patch 0034-Replace-list.h-with-its-own-version.patch - Backport topology API addition patches: 0035-topology-uapi-Add-UAPI-headers-for-topology-ABI.patch 0036-topology-Add-topology-core-parser.patch 0037-topology-Add-text-section-parser.patch 0038-topology-Add-PCM-parser.patch 0039-topology-Add-operations-parser.patch 0040-topology-Add-private-data-parser.patch 0041-topology-Add-DAPM-object-parser.patch 0042-topology-Add-CTL-parser.patch 0043-topology-Add-Channel-map-parser.patch 0044-topology-Add-binary-file-builder.patch 0045-topology-autotools-Add-build-support-for-topology-co.patch 0046-topology-doxygen-Add-doxygen-support-for-topology-co.patch 0047-conf-topology-Add-topology-file-for-broadwell-audio-.patch 0048-topology-Fix-missing-inclusion-of-ctype.h.patch OBS-URL: https://build.opensuse.org/request/show/320429 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa?expand=0&rev=186
126 lines
3.7 KiB
Diff
126 lines
3.7 KiB
Diff
From fec1e8f25374ec8eb4d57ee43e94e9689a748678 Mon Sep 17 00:00:00 2001
|
|
From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
|
|
Date: Wed, 29 Jul 2015 17:45:23 +0100
|
|
Subject: [PATCH 45/49] topology: autotools: Add build support for topology
|
|
core
|
|
|
|
Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
configure.ac | 9 ++++++++-
|
|
include/Makefile.am | 4 ++++
|
|
src/Makefile.am | 7 +++++++
|
|
src/topology/Makefile.am | 19 +++++++++++++++++++
|
|
4 files changed, 38 insertions(+), 1 deletion(-)
|
|
create mode 100644 src/topology/Makefile.am
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 9621d4e9ec2b..b6bea2dca434 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -380,6 +380,9 @@ AC_ARG_ENABLE(seq,
|
|
AC_ARG_ENABLE(ucm,
|
|
AS_HELP_STRING([--disable-ucm], [disable the use-case-manager component]),
|
|
[build_ucm="$enableval"], [build_ucm="yes"])
|
|
+AC_ARG_ENABLE(topology,
|
|
+ AS_HELP_STRING([--disable-topology], [disable the DSP topology component]),
|
|
+ [build_topology="$enableval"], [build_topology="yes"])
|
|
AC_ARG_ENABLE(alisp,
|
|
AS_HELP_STRING([--disable-alisp], [disable the alisp component]),
|
|
[build_alisp="$enableval"], [build_alisp="yes"])
|
|
@@ -422,6 +425,7 @@ AM_CONDITIONAL([BUILD_RAWMIDI], [test x$build_rawmidi = xyes])
|
|
AM_CONDITIONAL([BUILD_HWDEP], [test x$build_hwdep = xyes])
|
|
AM_CONDITIONAL([BUILD_SEQ], [test x$build_seq = xyes])
|
|
AM_CONDITIONAL([BUILD_UCM], [test x$build_ucm = xyes])
|
|
+AM_CONDITIONAL([BUILD_TOPOLOGY], [test x$build_topology = xyes])
|
|
AM_CONDITIONAL([BUILD_ALISP], [test x$build_alisp = xyes])
|
|
AM_CONDITIONAL([BUILD_PYTHON], [test x$build_python = xyes])
|
|
|
|
@@ -443,6 +447,9 @@ fi
|
|
if test "$build_ucm" = "yes"; then
|
|
AC_DEFINE([BUILD_UCM], "1", [Build UCM component])
|
|
fi
|
|
+if test "$build_topology" = "yes"; then
|
|
+ AC_DEFINE([BUILD_TOPOLOGY], "1", [Build DSP Topology component])
|
|
+fi
|
|
|
|
dnl PCM Plugins
|
|
|
|
@@ -643,7 +650,7 @@ AC_OUTPUT(Makefile doc/Makefile doc/pictures/Makefile doc/doxygen.cfg \
|
|
src/pcm/Makefile src/pcm/scopes/Makefile \
|
|
src/rawmidi/Makefile src/timer/Makefile \
|
|
src/hwdep/Makefile src/seq/Makefile src/ucm/Makefile \
|
|
- src/alisp/Makefile \
|
|
+ src/alisp/Makefile src/topology/Makefile \
|
|
src/conf/Makefile src/conf/alsa.conf.d/Makefile \
|
|
src/conf/cards/Makefile \
|
|
src/conf/pcm/Makefile \
|
|
diff --git a/include/Makefile.am b/include/Makefile.am
|
|
index 4baa03af69e1..ff931fda24d5 100644
|
|
--- a/include/Makefile.am
|
|
+++ b/include/Makefile.am
|
|
@@ -50,6 +50,10 @@ if BUILD_UCM
|
|
alsainclude_HEADERS += use-case.h
|
|
endif
|
|
|
|
+if BUILD_TOPOLOGY
|
|
+alsainclude_HEADERS += topology.h
|
|
+endif
|
|
+
|
|
if BUILD_ALISP
|
|
alsainclude_HEADERS += alisp.h
|
|
endif
|
|
diff --git a/src/Makefile.am b/src/Makefile.am
|
|
index fa255ff43ee0..57686a612fd8 100644
|
|
--- a/src/Makefile.am
|
|
+++ b/src/Makefile.am
|
|
@@ -42,6 +42,10 @@ if BUILD_UCM
|
|
SUBDIRS += ucm
|
|
libasound_la_LIBADD += ucm/libucm.la
|
|
endif
|
|
+if BUILD_TOPOLOGY
|
|
+SUBDIRS += topology
|
|
+libasound_la_LIBADD += topology/libtopology.la
|
|
+endif
|
|
if BUILD_ALISP
|
|
SUBDIRS += alisp
|
|
libasound_la_LIBADD += alisp/libalisp.la
|
|
@@ -81,6 +85,9 @@ seq/libseq.la:
|
|
ucm/libucm.la:
|
|
$(MAKE) -C ucm libucm.la
|
|
|
|
+topology/libtopology.la:
|
|
+ $(MAKE) -C topology libtopology.la
|
|
+
|
|
instr/libinstr.la:
|
|
$(MAKE) -C instr libinstr.la
|
|
|
|
diff --git a/src/topology/Makefile.am b/src/topology/Makefile.am
|
|
new file mode 100644
|
|
index 000000000000..3fb8bf7a9290
|
|
--- /dev/null
|
|
+++ b/src/topology/Makefile.am
|
|
@@ -0,0 +1,19 @@
|
|
+EXTRA_LTLIBRARIES = libtopology.la
|
|
+
|
|
+libtopology_la_SOURCES =\
|
|
+ parser.c \
|
|
+ builder.c \
|
|
+ ctl.c \
|
|
+ dapm.c \
|
|
+ pcm.c \
|
|
+ data.c \
|
|
+ text.c \
|
|
+ channel.c \
|
|
+ ops.c \
|
|
+ elem.c
|
|
+
|
|
+noinst_HEADERS = tplg_local.h
|
|
+
|
|
+all: libtopology.la
|
|
+
|
|
+AM_CPPFLAGS=-I$(top_srcdir)/include
|
|
--
|
|
2.5.0
|
|
|