From 7b483aa6e5bfbb5c9101ce3387d8381c63b8f943 Mon Sep 17 00:00:00 2001 From: Yalu Zhang Date: Thu, 16 Mar 2023 11:12:25 +0100 Subject: [PATCH] libvoice-d2-1.0.0: add /lib/voice/codecs.json which is used by codec capability --- libvoice-d2/Makefile | 9 +++--- libvoice-d2/files/lib/voice/codecs.json | 42 +++++++++++++++++++++++++ voicemngr/Makefile | 2 +- 3 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 libvoice-d2/files/lib/voice/codecs.json diff --git a/libvoice-d2/Makefile b/libvoice-d2/Makefile index ccb2ed439..fabdf61b7 100644 --- a/libvoice-d2/Makefile +++ b/libvoice-d2/Makefile @@ -7,7 +7,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libvoice-d2 -PKG_VERSION:=0.1 +PKG_RELEASE:=3 +PKG_VERSION:=1.0.0 PKG_LICENSE:=PROPRIETARY PKG_LICENSE_FILES:=LICENSE @@ -16,7 +17,7 @@ LOCAL_DEV=0 ifneq ($(LOCAL_DEV),1) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/$(PKG_NAME).git -PKG_SOURCE_VERSION:=8a67b666e57836600457167ccadfba8c46461e5c +PKG_SOURCE_VERSION:=a7218ae119c4f706db40c1838d7e7ea65e13ff7e PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MIRROR_HASH:=skip endif @@ -49,9 +50,7 @@ endef endif define Package/$(PKG_NAME)/install - # Although there is nothing needs to be installed, but the install section must NOT be empty. Otherwise the package will be skipped as below. - # WARNING: skipping libvoice-d2 -- package has no install section - $(INSTALL_DIR) $(1)/usr/lib + $(CP) ./files/* $(1)/ endef $(eval $(call BuildPackage,$(PKG_NAME))) diff --git a/libvoice-d2/files/lib/voice/codecs.json b/libvoice-d2/files/lib/voice/codecs.json new file mode 100644 index 000000000..914850e6c --- /dev/null +++ b/libvoice-d2/files/lib/voice/codecs.json @@ -0,0 +1,42 @@ +{ + "ulaw": { + "name": "G.711MuLaw", + "ptime_min": 10, + "ptime_max": 40, + "ptime_default": 20, + "ptime_increment": 10, + "bitrate": 64 + }, + "alaw": { + "name": "G.711ALaw", + "ptime_min": 10, + "ptime_max": 40, + "ptime_default": 20, + "ptime_increment": 10, + "bitrate": 64 + }, + "g729a": { + "name": "G.729a", + "ptime_min": 10, + "ptime_max": 40, + "ptime_default": 20, + "ptime_increment": 10, + "bitrate": 64 + }, + "g729": { + "name": "G.729", + "ptime_min": 10, + "ptime_max": 40, + "ptime_default": 20, + "ptime_increment": 10, + "bitrate": 8 + }, + "g722": { + "name": "G.722", + "ptime_min": 10, + "ptime_max": 40, + "ptime_default": 20, + "ptime_increment": 10, + "bitrate": 56 + } +} diff --git a/voicemngr/Makefile b/voicemngr/Makefile index 25f42608e..0c2365a47 100644 --- a/voicemngr/Makefile +++ b/voicemngr/Makefile @@ -18,7 +18,7 @@ LOCAL_DEV=0 ifneq ($(LOCAL_DEV),1) PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/$(PKG_NAME).git -PKG_SOURCE_VERSION:=ac3cbc8b21dae912efcdc26f3f17eada5161dda1 +PKG_SOURCE_VERSION:=fb4a818bde3c2d476e1c3c9a13fa9cdd24709a0e PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz PKG_MIRROR_HASH:=skip endif