Hello community, here is the log from the commit of package soapy-rtlsdr for openSUSE:Factory checked in at 2018-06-19 12:02:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/soapy-rtlsdr (Old) and /work/SRC/openSUSE:Factory/.soapy-rtlsdr.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "soapy-rtlsdr" Tue Jun 19 12:02:22 2018 rev:2 rq:616938 version:0.2.5 Changes: -------- --- /work/SRC/openSUSE:Factory/soapy-rtlsdr/soapy-rtlsdr.changes 2017-11-08 15:09:37.191173549 +0100 +++ /work/SRC/openSUSE:Factory/.soapy-rtlsdr.new/soapy-rtlsdr.changes 2018-06-19 12:02:25.400794688 +0200 @@ -1,0 +2,11 @@ +Fri Jun 8 10:17:15 UTC 2018 - w...@ire.pw.edu.pl + +- Update to version 0.2.5 + * Deactivate the stream thread in closeStream() + * Fix clipping for the int8 conversion support +- Update to version 0.2.4 + * readStream - also drop remainder buffer on reset + * Fixed configuration input for num async buffers + + +------------------------------------------------------------------- Old: ---- soapy-rtlsdr-0.2.3.tar.gz New: ---- soapy-rtlsdr-0.2.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ soapy-rtlsdr.spec ++++++ --- /var/tmp/diff_new_pack.GWu1CF/_old 2018-06-19 12:02:25.956774045 +0200 +++ /var/tmp/diff_new_pack.GWu1CF/_new 2018-06-19 12:02:25.960773897 +0200 @@ -1,6 +1,7 @@ # # spec file for package soapy-rtlsdr # +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2017, Martin Hauke <mar...@gmx.de> # # All modifications and additions to the file contributed by third parties @@ -19,7 +20,7 @@ %define soapy_modname soapysdr%{soapy_modver}-module-rtlsdr Name: soapy-rtlsdr -Version: 0.2.3 +Version: 0.2.5 Release: 0 Summary: SoapySDR RTL-SDR support module License: MIT ++++++ soapy-rtlsdr-0.2.3.tar.gz -> soapy-rtlsdr-0.2.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/Changelog.txt new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Changelog.txt --- old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/Changelog.txt 2017-04-30 00:04:25.000000000 +0200 +++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Changelog.txt 2018-05-06 03:40:27.000000000 +0200 @@ -1,3 +1,15 @@ +Release 0.2.5 (2018-05-05) +========================== + +- Deactivate the stream thread in closeStream() +- Fix clipping for the int8 conversion support + +Release 0.2.4 (2017-06-15) +========================== + +- readStream - also drop remainder buffer on reset +- Fixed configuration input for num async buffers + Release 0.2.3 (2017-04-29) ========================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/README.md new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/README.md --- old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/README.md 2017-04-30 00:04:25.000000000 +0200 +++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/README.md 2018-05-06 03:40:27.000000000 +0200 @@ -1,15 +1,15 @@ # Soapy SDR module for RTL-SDR -##Build Status +## Build Status - Travis: [![Travis Build Status](https://travis-ci.org/pothosware/SoapyRTLSDR.svg?branch=master)](https://travis-ci.org/pothosware/SoapyRTLSDR) -##Dependencies +## Dependencies * SoapySDR - https://github.com/pothosware/SoapySDR/wiki * librtl-sdr - http://sdr.osmocom.org/trac/wiki/rtl-sdr -##Documentation +## Documentation * https://github.com/pothosware/SoapyRTLSDR/wiki diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/SoapyRTLSDR.hpp new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/SoapyRTLSDR.hpp --- old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/SoapyRTLSDR.hpp 2017-04-30 00:04:25.000000000 +0200 +++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/SoapyRTLSDR.hpp 2018-05-06 03:40:27.000000000 +0200 @@ -252,7 +252,7 @@ std::atomic<bool> _overflowEvent; size_t _currentHandle; size_t bufferedElems; - bool resetBuffer; + std::atomic<bool> resetBuffer; static int rtl_count; static std::vector<SoapySDR::Kwargs> rtl_devices; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/Streaming.cpp new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Streaming.cpp --- old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/Streaming.cpp 2017-04-30 00:04:25.000000000 +0200 +++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Streaming.cpp 2018-05-06 03:40:27.000000000 +0200 @@ -132,8 +132,9 @@ //increment buffers available under lock //to avoid race in acquireReadBuffer wait { - std::lock_guard<std::mutex> lock(_buf_mutex); - _buf_count++; + std::lock_guard<std::mutex> lock(_buf_mutex); + _buf_count++; + } //notify readStream() @@ -220,11 +221,11 @@ } bufferLength = DEFAULT_BUFFER_LENGTH; - if (args.count("buflen") != 0) + if (args.count("bufflen") != 0) { try { - int bufferLength_in = std::stoi(args.at("buflen")); + int bufferLength_in = std::stoi(args.at("bufflen")); if (bufferLength_in > 0) { bufferLength = bufferLength_in; @@ -257,12 +258,11 @@ int asyncBuffs_in = std::stoi(args.at("asyncBuffs")); if (asyncBuffs_in > 0) { - asyncBuffs = asyncBuffs; + asyncBuffs = asyncBuffs_in; } } catch (const std::invalid_argument &){} } - if (tunerType == RTLSDR_TUNER_E4000) { IFGain[0] = 6; IFGain[1] = 9; @@ -292,6 +292,7 @@ void SoapyRTLSDR::closeStream(SoapySDR::Stream *stream) { + this->deactivateStream(stream, 0, 0); _buffs.clear(); } @@ -339,6 +340,13 @@ long long &timeNs, const long timeoutUs) { + //drop remainder buffer on reset + if (resetBuffer and bufferedElems != 0) + { + bufferedElems = 0; + this->releaseReadBuffer(stream, _currentHandle); + } + //this is the user's buffer for channel 0 void *buff0 = buffs[0]; @@ -406,16 +414,16 @@ { for (size_t i = 0; i < returnedElems; i++) { - itarget[i * 2] = _currentBuff[i * 2 + 1]-127; - itarget[i * 2 + 1] = _currentBuff[i * 2]-127; + itarget[i * 2] = _currentBuff[i * 2 + 1]-128; + itarget[i * 2 + 1] = _currentBuff[i * 2]-128; } } else { for (size_t i = 0; i < returnedElems; i++) { - itarget[i * 2] = _currentBuff[i * 2]-127; - itarget[i * 2 + 1] = _currentBuff[i * 2 + 1]-127; + itarget[i * 2] = _currentBuff[i * 2]-128; + itarget[i * 2 + 1] = _currentBuff[i * 2 + 1]-128; } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/debian/changelog new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/changelog --- old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/debian/changelog 2017-04-30 00:04:25.000000000 +0200 +++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/changelog 2018-05-06 03:40:27.000000000 +0200 @@ -1,3 +1,15 @@ +soapyrtlsdr (0.2.5-1) unstable; urgency=low + + * Release 0.2.5 (2018-05-05) + + -- Josh Blum <j...@pothosware.com> Sat, 05 May 2018 20:40:24 -0000 + +soapyrtlsdr (0.2.4-1) unstable; urgency=low + + * Release 0.2.4 (2017-06-15) + + -- Josh Blum <j...@pothosware.com> Thu, 15 Jun 2017 17:48:13 -0000 + soapyrtlsdr (0.2.3-1) unstable; urgency=low * Release 0.2.3 (2017-04-29) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/debian/control new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/control --- old/SoapyRTLSDR-soapy-rtlsdr-0.2.3/debian/control 2017-04-30 00:04:25.000000000 +0200 +++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/control 2018-05-06 03:40:27.000000000 +0200 @@ -8,7 +8,7 @@ cmake, libsoapysdr-dev, librtlsdr-dev -Standards-Version: 3.9.8 +Standards-Version: 4.1.1 Homepage: https://github.com/pothosware/SoapyRTLSDR/wiki Vcs-Git: https://github.com/pothosware/SoapyRTLSDR.git Vcs-Browser: https://github.com/pothosware/SoapyRTLSDR