Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package serialdv for openSUSE:Factory checked in at 2025-09-16 18:18:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/serialdv (Old) and /work/SRC/openSUSE:Factory/.serialdv.new.1977 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "serialdv" Tue Sep 16 18:18:42 2025 rev:6 rq:1305089 version:1.1.5 Changes: -------- --- /work/SRC/openSUSE:Factory/serialdv/serialdv.changes 2025-03-27 22:32:15.420496200 +0100 +++ /work/SRC/openSUSE:Factory/.serialdv.new.1977/serialdv.changes 2025-09-16 18:19:26.513730947 +0200 @@ -1,0 +2,8 @@ +Mon Sep 15 20:15:59 UTC 2025 - Martin Hauke <[email protected]> + +- Update to version 1.1.5 + * Upgrade cmake minimum version to 3.17. + * Support for more bitrates. +- Use %ldconfig_scriptlets + +------------------------------------------------------------------- Old: ---- serialDV-1.1.4.tar.gz New: ---- serialDV-1.1.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ serialdv.spec ++++++ --- /var/tmp/diff_new_pack.Ahmd6w/_old 2025-09-16 18:19:27.121756552 +0200 +++ /var/tmp/diff_new_pack.Ahmd6w/_new 2025-09-16 18:19:27.125756721 +0200 @@ -1,8 +1,8 @@ # # spec file for package serialdv # -# Copyright (c) 2021 SUSE LLC -# Copyright (c) 2019, Martin Hauke <[email protected]> +# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2025, Martin Hauke <[email protected]> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,7 +20,7 @@ %define sover 1 %define libname libserialdv%{sover} Name: serialdv -Version: 1.1.4 +Version: 1.1.5 Release: 0 Summary: Library for audio de-/encoding with ABME3000 based devices License: GPL-3.0-only @@ -53,10 +53,10 @@ applications that want to make use of libserialdv. %prep -%setup -q -n serialDV-%{version} +%autosetup -n serialDV-%{version} %build -%cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.5 +%cmake %cmake_build %install @@ -65,8 +65,7 @@ %check %ctest -%post -n %{libname} -p /sbin/ldconfig -%postun -n %{libname} -p /sbin/ldconfig +%ldconfig_scriptlets -n %{libname} %files -n %{libname} %license LICENSE ++++++ serialDV-1.1.4.tar.gz -> serialDV-1.1.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/serialDV-1.1.4/.gitignore new/serialDV-1.1.5/.gitignore --- old/serialDV-1.1.4/.gitignore 2019-10-22 22:08:06.000000000 +0200 +++ new/serialDV-1.1.5/.gitignore 2025-04-05 00:59:30.000000000 +0200 @@ -1,4 +1,7 @@ .cproject .project .vscode -build +build/ +include/ +lib/ +bin/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/serialDV-1.1.4/CMakeLists.txt new/serialDV-1.1.5/CMakeLists.txt --- old/serialDV-1.1.4/CMakeLists.txt 2019-10-22 22:08:06.000000000 +0200 +++ new/serialDV-1.1.5/CMakeLists.txt 2025-04-05 00:59:30.000000000 +0200 @@ -1,10 +1,10 @@ -cmake_minimum_required(VERSION 3.1.0) +cmake_minimum_required(VERSION 3.17.0) project(serialdv) set(MAJOR_VERSION 1) set(MINOR_VERSION 1) -set(PATCH_VERSION 4) +set(PATCH_VERSION 5) set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}) set(VERSION ${VERSION_STRING}) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/serialDV-1.1.4/datacontroller.h new/serialDV-1.1.5/datacontroller.h --- old/serialDV-1.1.4/datacontroller.h 2019-10-22 22:08:06.000000000 +0200 +++ new/serialDV-1.1.5/datacontroller.h 2025-04-05 00:59:30.000000000 +0200 @@ -23,9 +23,9 @@ namespace SerialDV { -const unsigned int MBE_AUDIO_BLOCK_SIZE_INTERNAL = 160U; +const unsigned int MBE_AUDIO_BLOCK_SIZE_INTERNAL = 192U; const unsigned int MBE_AUDIO_BLOCK_BYTES_INTERNAL = MBE_AUDIO_BLOCK_SIZE_INTERNAL * 2U; -const unsigned int MBE_FRAME_MAX_LENGTH_BYTES_INTERNAL = 18U; +const unsigned int MBE_FRAME_MAX_LENGTH_BYTES_INTERNAL = 24U; enum SERIAL_SPEED { SERIAL_NONE = 0, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/serialDV-1.1.4/dvcontroller.cpp new/serialDV-1.1.5/dvcontroller.cpp --- old/serialDV-1.1.4/dvcontroller.cpp 2019-10-22 22:08:06.000000000 +0200 +++ new/serialDV-1.1.5/dvcontroller.cpp 2025-04-05 00:59:30.000000000 +0200 @@ -120,7 +120,6 @@ setGain(gain, m_currentGainOut); m_currentGainIn = gain; } - encodeIn(audioFrame, MBE_AUDIO_BLOCK_SIZE_INTERNAL); return encodeOut(mbeFrame, m_currentNbMbeBytes); } @@ -169,6 +168,24 @@ case DVRate4400: return 11; break; + case DVRate2200: + return 6; + break; + case DVRate3000: + return 8; + break; + case DVRate6400: + return 16; + break; + case DVRate7200: + return 18; + break; + case DVRate8000: + return 20; + break; + case DVRate9600: + return 24; + break; default: return 0; } @@ -195,6 +212,24 @@ case DVRate4400: return 88; break; + case DVRate2200: + return 44; + break; + case DVRate3000: + return 60; + break; + case DVRate6400: + return 128; + break; + case DVRate7200: + return 144; + break; + case DVRate8000: + return 160; + break; + case DVRate9600: + return 192; + break; default: return 0; } @@ -245,7 +280,7 @@ } void DVController::encodeIn(const short* audio, unsigned int length) -{ +{ (void) length; assert(audio != 0); assert(length == MBE_AUDIO_BLOCK_SIZE_INTERNAL); @@ -340,6 +375,7 @@ bool DVController::setRate(DVRate rate) { + fprintf(stderr, "DVController::setRate begin \n"); if (!m_open) { return false; } @@ -379,6 +415,36 @@ m_currentNbMbeBits = 88; m_currentNbMbeBytes = 11; break; + case DVRate2200: + ratepStr = DV3000_REQ_2200_RATEP; + m_currentNbMbeBits = 44; + m_currentNbMbeBytes = 6; + break; + case DVRate3000: + ratepStr = DV3000_REQ_3000_RATEP; + m_currentNbMbeBits = 60; + m_currentNbMbeBytes = 8; + break; + case DVRate6400: + ratepStr = DV3000_REQ_6400_RATEP; + m_currentNbMbeBits = 128; + m_currentNbMbeBytes = 16; + break; + case DVRate7200: + ratepStr = DV3000_REQ_7200_RATEP; + m_currentNbMbeBits = 144; + m_currentNbMbeBytes = 18; + break; + case DVRate8000: + ratepStr = DV3000_REQ_8000_RATEP; + m_currentNbMbeBits = 160; + m_currentNbMbeBytes = 20; + break; + case DVRate9600: + ratepStr = DV3000_REQ_9600_RATEP; + m_currentNbMbeBits = 192; + m_currentNbMbeBytes = 24; + break; default: return true; } @@ -403,6 +469,7 @@ fprintf(stderr, "DVController::setRate: response mismatch\n"); return false; } + fprintf(stderr, "DVController::setRate begin \n"); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/serialDV-1.1.4/dvcontroller.h new/serialDV-1.1.5/dvcontroller.h --- old/serialDV-1.1.4/dvcontroller.h 2019-10-22 22:08:06.000000000 +0200 +++ new/serialDV-1.1.5/dvcontroller.h 2025-04-05 00:59:30.000000000 +0200 @@ -51,8 +51,16 @@ const unsigned char DV3000_REQ_7200X4400_2_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x02U, 0x58U, 0x07U, 0x65U, 0x00U, 0x09U, 0x1EU, 0x0CU, 0x41U, 0x27U, 0x73U, 0x90U}; const unsigned char DV3000_REQ_7200X4400_3_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x58U, 0x09U, 0x86U, 0x80U, 0x20U, 0x00U, 0x00U, 0x00U, 0x00U, 0x73U, 0x90U}; +// https://www.dvsinc.com/manuals/AMBE-3000F_manual.pdf +// Page 93-94 +const unsigned char DV3000_REQ_2200_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x01U, 0x28U, 0x06U, 0x63U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x64U, 0x28U}; const unsigned char DV3000_REQ_2450_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x31U, 0x07U, 0x54U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x70U, 0x31U}; +const unsigned char DV3000_REQ_3000_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x3CU, 0x07U, 0x66U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x67U, 0x3CU}; const unsigned char DV3000_REQ_4400_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x58U, 0x09U, 0x86U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x44U, 0x58U}; +const unsigned char DV3000_REQ_6400_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x80U, 0x09U, 0x86U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x53U, 0x80U}; +const unsigned char DV3000_REQ_7200_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0x90U, 0x09U, 0x86U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x49U, 0x90U}; +const unsigned char DV3000_REQ_8000_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0xA0U, 0x09U, 0x86U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x31U, 0xA0U}; +const unsigned char DV3000_REQ_9600_RATEP[] = {DV3000_START_BYTE, 0x00U, 0x0DU, DV3000_TYPE_CONTROL, DV3000_CONTROL_RATEP, 0x04U, 0xC0U, 0x09U, 0x86U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x00U, 0x39U, 0xC0U}; const unsigned int DV3000_REQ_RATEP_LEN = 17U; const unsigned char DV3000_REQ_GAIN[] = {DV3000_START_BYTE, 0x00U, 0x03U, DV3000_TYPE_CONTROL, DV3000_CONTROL_GAIN}; // followed by 1 byte input gain and 1 byte output gain @@ -75,7 +83,13 @@ DVRate7100x4400, DVRate2400, DVRate2450, //!< YSF V/D type 2 (does not use FEC in AMBE codec) - DVRate4400 + DVRate4400, + DVRate2200, + DVRate3000, + DVRate6400, + DVRate7200, + DVRate8000, + DVRate9600 } DVRate; class SERIALDV_API DVController diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/serialDV-1.1.4/dvtest.cpp new/serialDV-1.1.5/dvtest.cpp --- old/serialDV-1.1.4/dvtest.cpp 2019-10-22 22:08:06.000000000 +0200 +++ new/serialDV-1.1.5/dvtest.cpp 2025-04-05 00:59:30.000000000 +0200 @@ -57,6 +57,12 @@ fprintf(stderr, " 5: 2400 no FEC\n"); fprintf(stderr, " 6: 2450 no FEC\n"); fprintf(stderr, " 7: 4400 no FEC\n"); + fprintf(stderr, " 8: 2200 no FEC\n"); + fprintf(stderr, " 9: 3000 no FEC\n"); + fprintf(stderr, " 10: 6400 no FEC\n"); + fprintf(stderr, " 11: 7200 no FEC\n"); + fprintf(stderr, " 12: 8000 no FEC\n"); + fprintf(stderr, " 13: 9600 no FEC\n"); fprintf(stderr, " -g <num> linear gain applied to output (decoder - default 1.0)\n"); fprintf(stderr, "\n"); } @@ -111,7 +117,7 @@ case 'f': int formatNum; sscanf(optarg, "%d", &formatNum); - if ((formatNum >= 0) && (formatNum <= 7)) + if ((formatNum >= 0) && (formatNum <= 13)) { dvRate = (SerialDV::DVRate) formatNum; }
