commit soapy-rtlsdr for openSUSE:Factory

2018-12-14 Thread root
Hello community,

here is the log from the commit of package soapy-rtlsdr for openSUSE:Factory 
checked in at 2018-12-14 20:54:46

Comparing /work/SRC/openSUSE:Factory/soapy-rtlsdr (Old)
 and  /work/SRC/openSUSE:Factory/.soapy-rtlsdr.new.28833 (New)


Package is "soapy-rtlsdr"

Fri Dec 14 20:54:46 2018 rev:4 rq:657891 version:0.3.0

Changes:

--- /work/SRC/openSUSE:Factory/soapy-rtlsdr/soapy-rtlsdr.changes
2018-11-12 09:44:59.160867767 +0100
+++ /work/SRC/openSUSE:Factory/.soapy-rtlsdr.new.28833/soapy-rtlsdr.changes 
2018-12-14 20:56:59.624755836 +0100
@@ -1,0 +2,8 @@
+Thu Dec 13 12:18:10 UTC 2018 - Wojciech Kazubski 
+
+- Update to version 0.3.0
+  * Digital AGC now available through "digital_agc" setting
+  * Gain mode now affects rtlsdr_set_tuner_gain_mode()
+  * GetHardwareKey() returns the actual tuner type
+
+---

Old:

  soapy-rtlsdr-0.2.5.tar.gz

New:

  soapy-rtlsdr-0.3.0.tar.gz



Other differences:
--
++ soapy-rtlsdr.spec ++
--- /var/tmp/diff_new_pack.X9th7c/_old  2018-12-14 20:57:00.156755175 +0100
+++ /var/tmp/diff_new_pack.X9th7c/_new  2018-12-14 20:57:00.160755171 +0100
@@ -20,7 +20,7 @@
 %define soapy_modname soapysdr%{soapy_modver}-module-rtlsdr
 
 Name:   soapy-rtlsdr
-Version:0.2.5
+Version:0.3.0
 Release:0
 Summary:SoapySDR RTL-SDR support module
 License:MIT

++ soapy-rtlsdr-0.2.5.tar.gz -> soapy-rtlsdr-0.3.0.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Changelog.txt 
new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/Changelog.txt
--- old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Changelog.txt2018-05-06 
03:40:27.0 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/Changelog.txt2018-12-08 
04:17:59.0 +0100
@@ -1,3 +1,10 @@
+Release 0.3.0 (2018-12-07)
+==
+
+- digital AGC now available through "digital_agc" setting
+- gain mode now affects rtlsdr_set_tuner_gain_mode()
+- getHardwareKey() returns the actual tuner type
+
 Release 0.2.5 (2018-05-05)
 ==
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Settings.cpp 
new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/Settings.cpp
--- old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Settings.cpp 2018-05-06 
03:40:27.0 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/Settings.cpp 2018-12-08 
04:17:59.0 +0100
@@ -52,8 +52,9 @@
 bufferLength = DEFAULT_BUFFER_LENGTH;
 
 iqSwap = false;
-agcMode = false;
+gainMode = false;
 offsetMode = false;
+digitalAGC = false;
 
 bufferedElems = 0;
 resetBuffer = false;
@@ -141,7 +142,25 @@
 
 std::string SoapyRTLSDR::getHardwareKey(void) const
 {
-return "RTLSDR";
+switch (rtlsdr_get_tuner_type(dev))
+{
+case RTLSDR_TUNER_UNKNOWN:
+return "UNKNOWN";
+case RTLSDR_TUNER_E4000:
+return "E4000";
+case RTLSDR_TUNER_FC0012:
+return "FC0012";
+case RTLSDR_TUNER_FC0013:
+return "FC0013";
+case RTLSDR_TUNER_FC2580:
+return "FC2580";
+case RTLSDR_TUNER_R820T:
+return "R820T";
+case RTLSDR_TUNER_R828D:
+return "R828D";
+default:
+return "OTHER";
+}
 }
 
 SoapySDR::Kwargs SoapyRTLSDR::getHardwareInfo(void) const
@@ -245,14 +264,14 @@
 
 void SoapyRTLSDR::setGainMode(const int direction, const size_t channel, const 
bool automatic)
 {
-agcMode = automatic;
-SoapySDR_logf(SOAPY_SDR_DEBUG, "Setting RTL-SDR AGC: %s", automatic ? 
"Automatic" : "Manual");
-rtlsdr_set_agc_mode(dev, agcMode ? 1 : 0);
+gainMode = automatic;
+SoapySDR_logf(SOAPY_SDR_DEBUG, "Setting RTL-SDR gain mode: %s", automatic 
? "Automatic" : "Manual");
+rtlsdr_set_tuner_gain_mode(dev, gainMode ? 0 : 1);
 }
 
 bool SoapyRTLSDR::getGainMode(const int direction, const size_t channel) const
 {
-return SoapySDR::Device::getGainMode(direction, channel);
+return gainMode;
 }
 
 void SoapyRTLSDR::setGain(const int direction, const size_t channel, const 
double value)
@@ -522,6 +541,16 @@
 
 setArgs.push_back(iqSwapArg);
 
+SoapySDR::ArgInfo digitalAGCArg;
+
+digitalAGCArg.key = "digital_agc";
+digitalAGCArg.value = "false";
+digitalAGCArg.name = "Digital AGC";
+digitalAGCArg.description = "RTL-SDR digital AGC Mode";
+digitalAGCArg.type = SoapySDR::ArgInfo::BOOL;
+
+setArgs.push_back(digitalAGCArg);
+
 SoapySDR_logf(SOAPY_SDR_DEBUG, "SETARGS?");
 
 return setArgs;
@@ -553,6 +582,12 @@
 SoapySDR_logf(SOAPY_SDR_DEBUG, "RTL-SDR offset_tune mode: %s", 
offsetMode ? 

commit soapy-rtlsdr for openSUSE:Factory

2018-11-12 Thread root
Hello community,

here is the log from the commit of package soapy-rtlsdr for openSUSE:Factory 
checked in at 2018-11-12 09:44:06

Comparing /work/SRC/openSUSE:Factory/soapy-rtlsdr (Old)
 and  /work/SRC/openSUSE:Factory/.soapy-rtlsdr.new (New)


Package is "soapy-rtlsdr"

Mon Nov 12 09:44:06 2018 rev:3 rq:648167 version:0.2.5

Changes:

--- /work/SRC/openSUSE:Factory/soapy-rtlsdr/soapy-rtlsdr.changes
2018-06-19 12:02:25.400794688 +0200
+++ /work/SRC/openSUSE:Factory/.soapy-rtlsdr.new/soapy-rtlsdr.changes   
2018-11-12 09:44:59.160867767 +0100
@@ -1,0 +2,5 @@
+Sat Nov 10 13:02:16 UTC 2018 - Wojciech Kazubski 
+
+- Update soapy-module version 0.6 -> 0.7
+
+---



Other differences:
--
++ soapy-rtlsdr.spec ++
--- /var/tmp/diff_new_pack.WFUfY8/_old  2018-11-12 09:44:59.764866847 +0100
+++ /var/tmp/diff_new_pack.WFUfY8/_new  2018-11-12 09:44:59.768866841 +0100
@@ -16,7 +16,7 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-%define soapy_modver 0.6
+%define soapy_modver 0.7
 %define soapy_modname soapysdr%{soapy_modver}-module-rtlsdr
 
 Name:   soapy-rtlsdr
@@ -33,7 +33,6 @@
 BuildRequires:  pkg-config
 BuildRequires:  pkgconfig(SoapySDR)
 BuildRequires:  pkgconfig(librtlsdr)
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 
 %description
 Soapy RTL-SDR - RTL-SDR device support for Soapy SDR.
@@ -58,8 +57,8 @@
 %cmake_install
 
 %files -n %{soapy_modname}
-%defattr(-,root,root)
-%doc LICENSE.txt README.md
+%license LICENSE.txt
+%doc Changelog.txt README.md
 %dir %{_libdir}/SoapySDR
 %dir %{_libdir}/SoapySDR/modules%{soapy_modver}
 %{_libdir}/SoapySDR/modules%{soapy_modver}/librtlsdrSupport.so




commit soapy-rtlsdr for openSUSE:Factory

2018-06-19 Thread root
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 
 #
 # 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.txt2017-04-30 
00:04:25.0 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Changelog.txt2018-05-06 
03:40:27.0 +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.md2017-04-30 
00:04:25.0 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/README.md2018-05-06 
03:40:27.0 +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.0 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/SoapyRTLSDR.hpp  2018-05-06 
03:40:27.0 +0200
@@ -252,7 +252,7 @@
 std::atomic _overflowEvent;
 size_t _currentHandle;
 size_t bufferedElems;
-bool resetBuffer;
+std::atomic resetBuffer;
 
 static int rtl_count;
 static std::vector 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.cpp2017-04-30 
00:04:25.0 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.2.5/Streaming.cpp2018-05-06 
03:40:27.0 +0200
@@ -132,8 +132,9 @@
 //increment buffers available under lock
 //to avoid race in acquireReadBuffer wait
 {
-std::lock_guard lock(_buf_mutex);
-_buf_count++;
+std::lock_guard lock(_buf_mutex);
+_buf_count++;
+
 }
 
 //notify readStream()
@@ -220,11 +221,11 @@
 }
 
 bufferLength = DEFAULT_BUFFER_LENGTH;
-