summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2022-06-02 11:40:55 +0200
committerKhem Raj <raj.khem@gmail.com>2022-06-02 08:40:04 -0700
commitbb575718e146b66f23f2fc151fbb1e453b9f89ae (patch)
tree9e17a959416221ee87c203523ffc2959042ce752
parente3c53ea34fd8dbb12052a06c5ddcd04be64afa51 (diff)
downloadmeta-openembedded-bb575718e146b66f23f2fc151fbb1e453b9f89ae.tar.gz
libavtp: add recipe for audio video transport protocol (avtp)
This is Avnu's implementation of the Audio Video Transport Protocol (AVTP). It may be used in order to enable the configuration option aaf (AVTP Audio Format) for the alsa-plugins. While the library libavtp is a dependency no recipe for this library was present. The aaf support for the alsa-plugins was introduced in the openembedded-core commit ddf542133118 ("alsa-plugins: 1.1.6 -> 1.1.8"). It may further be used in order to enable the configuration option avtp for the gstreamer1.0-plugins-bad once a separate patch enabling such PACKAGECONFIG makes it into openembedded-core. Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-multimedia/libavtp/libavtp/0001-provide-64bit-host-to-network-conversion-macros.patch43
-rw-r--r--meta-multimedia/recipes-multimedia/libavtp/libavtp_0.2.0.bb16
2 files changed, 59 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/libavtp/libavtp/0001-provide-64bit-host-to-network-conversion-macros.patch b/meta-multimedia/recipes-multimedia/libavtp/libavtp/0001-provide-64bit-host-to-network-conversion-macros.patch
new file mode 100644
index 0000000000..e432ccca42
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/libavtp/libavtp/0001-provide-64bit-host-to-network-conversion-macros.patch
@@ -0,0 +1,43 @@
1From cdbbe227594665145e9309a9ecb7d90aad070aab Mon Sep 17 00:00:00 2001
2From: Max Krummenacher <max.krummenacher@toradex.com>
3Date: Wed, 1 Jun 2022 15:53:55 +0000
4Subject: [PATCH] provide 64bit host to network conversion macros
5
6musl dosn't include the macros which convert 64-bit integers
7between host and network endianness from arpa/inet.h as glibc does.
8
9Use this patch to include endian.h in util.h if compiling for musl.
10
11Prevents:
12| [2/8] aarch64-tdx-linux-musl-gcc ... -o libavtp.so.0.2.0.p/src_avtp_stream.c.o -c ../git/src/avtp_stream.c
13| ../git/src/avtp_stream.c: In function 'avtp_stream_pdu_get':
14| ../git/src/avtp_stream.c:116:24: warning: implicit declaration of function 'be64toh' [-Wimplicit-function-declaration]
15| 116 | *val = be64toh(pdu->stream_id);
16| | ^~~~~~~
17| ../git/src/avtp_stream.c: In function 'avtp_stream_pdu_set':
18| ../git/src/avtp_stream.c:199:34: warning: implicit declaration of function 'htobe64' [-Wimplicit-function-declaration]
19| 199 | pdu->stream_id = htobe64(value);
20
21Upstream-Status: Inappropriate [musl specific]
22
23Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
24---
25 src/util.h | 2 ++
26 1 file changed, 2 insertions(+)
27
28diff --git a/src/util.h b/src/util.h
29index 8b50625..e6fd2ef 100644
30--- a/src/util.h
31+++ b/src/util.h
32@@ -27,6 +27,8 @@
33
34 #pragma once
35
36+#include <endian.h>
37+
38 #define BIT(n) (1ULL << n)
39
40 #define BITMASK(len) (BIT(len) - 1)
41--
422.20.1
43
diff --git a/meta-multimedia/recipes-multimedia/libavtp/libavtp_0.2.0.bb b/meta-multimedia/recipes-multimedia/libavtp/libavtp_0.2.0.bb
new file mode 100644
index 0000000000..98f8e5b84d
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/libavtp/libavtp_0.2.0.bb
@@ -0,0 +1,16 @@
1SUMMARY = "Implements Audio Video Transport Protocol (AVTP)"
2DESCRIPTION = "Open source implementation of Audio Video Transport Protocol (AVTP) \
3 specified in IEEE 1722-2016 spec."
4HOMEPAGE = "https://github.com/Avnu/libavtp"
5LICENSE = "BSD-3-Clause"
6LIC_FILES_CHKSUM = "file://LICENSE;md5=7fcb4331e23e45e171cd5693c1ff7d3e"
7
8SRC_URI = "git://github.com/Avnu/libavtp.git;branch=master;protocol=https"
9SRC_URI:append:libc-musl = " file://0001-provide-64bit-host-to-network-conversion-macros.patch"
10SRCREV = "3599a5bf2d18fc3ae89b64f208d8380e6ee3a866"
11
12S = "${WORKDIR}/git"
13
14inherit meson pkgconfig
15
16EXTRA_OEMESON = "-Dtests=disabled"