summaryrefslogtreecommitdiffstats
path: root/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio/0020-core-util-Add-pa_join.patch
diff options
context:
space:
mode:
authorManuel Bachmann <mbc@iot.bzh>2016-04-18 12:42:12 +0000
committerGerrit Code Review <gerrit@172.30.200.200>2016-07-15 12:20:06 +0000
commit203e07c635fab8b1986f48a40351137b8ec67946 (patch)
tree298880b79abb8a3da037676790d7a9cde8803c91 /meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio/0020-core-util-Add-pa_join.patch
parent2c6adc5e7fb926b6dafb609c1fd38542379bf232 (diff)
Add IVI-specific PulseAudio patches and development files
This is a stripped-down port of Tizen IVI PulseAudio 5.0 patches to AGL PulseAudio 6.0. These patches mainly: - provide a new "pulseaudio-module-dev" package, including headers and libraries for out-of-tree module development; - add generic helper functions; - add a helper "libvolume" library; - add helper functions for an efficient "volume ramp up/down" feature, so that a module does not need to track volume changes' timing and state in realtime. These patches are needed for the PulseAudio Routing Module described on: https://wiki.automotivelinux.org/ eg-ui-graphics-req-audiorouting (which is itself a stripped -down version of the Tizen IVI Audio Routing module). Change-Id: Ib826f3106b91ffdef639c2719a580373f84449c7 Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
Diffstat (limited to 'meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio/0020-core-util-Add-pa_join.patch')
-rw-r--r--meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio/0020-core-util-Add-pa_join.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio/0020-core-util-Add-pa_join.patch b/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio/0020-core-util-Add-pa_join.patch
new file mode 100644
index 000000000..891a5b83a
--- /dev/null
+++ b/meta-ivi-common/recipes-multimedia/pulseaudio/pulseaudio/0020-core-util-Add-pa_join.patch
@@ -0,0 +1,37 @@
+--- a/src/pulsecore/core-util.c 2016-04-13 16:17:33.314016929 +0200
++++ b/src/pulsecore/core-util.c 2016-04-13 16:18:31.186016833 +0200
+@@ -1104,6 +1104,24 @@
+ return pa_xstrndup(current, l);
+ }
+
++char *pa_join(const char * const *strings, unsigned n_strings, const char *delimiter) {
++ pa_strbuf *buf;
++ unsigned i;
++
++ pa_assert(strings || n_strings == 0);
++
++ buf = pa_strbuf_new();
++
++ for (i = 0; i < n_strings; i++) {
++ if (i > 0 && delimiter)
++ pa_strbuf_puts(buf, delimiter);
++
++ pa_strbuf_puts(buf, strings[i]);
++ }
++
++ return pa_strbuf_tostring_free(buf);
++}
++
+ PA_STATIC_TLS_DECLARE(signame, pa_xfree);
+
+ /* Return the name of an UNIX signal. Similar to Solaris sig2str() */
+--- a/src/pulsecore/core-util.h 2016-04-13 16:17:39.177016919 +0200
++++ b/src/pulsecore/core-util.h 2016-04-13 16:19:09.141016769 +0200
+@@ -108,6 +108,7 @@
+ char *pa_split(const char *c, const char*delimiters, const char **state);
+ const char *pa_split_in_place(const char *c, const char*delimiters, int *n, const char **state);
+ char *pa_split_spaces(const char *c, const char **state);
++char *pa_join(const char * const *strings, unsigned n_strings, const char *delimiter);
+
+ char *pa_strip_nl(char *s);
+ char *pa_strip(char *s);