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 <w...@ire.pw.edu.pl>
+
+- 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.txt    2018-05-06 
03:40:27.000000000 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/Changelog.txt    2018-12-08 
04:17:59.000000000 +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.000000000 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/Settings.cpp     2018-12-08 
04:17:59.000000000 +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 ? "true" : "false");
         rtlsdr_set_offset_tuning(dev, offsetMode ? 1 : 0);
     }
+    else if (key == "digital_agc")
+    {
+        digitalAGC = (value == "true") ? true : false;
+        SoapySDR_logf(SOAPY_SDR_DEBUG, "RTL-SDR digital agc mode: %s", 
digitalAGC ? "true" : "false");
+        rtlsdr_set_agc_mode(dev, digitalAGC ? 1 : 0);
+    }
 }
 
 std::string SoapyRTLSDR::readSetting(const std::string &key) const
@@ -563,6 +598,8 @@
         return iqSwap?"true":"false";
     } else if (key == "offset_tune") {
         return offsetMode?"true":"false";
+    } else if (key == "digital_agc") {
+        return digitalAGC?"true":"false";
     }
 
     SoapySDR_logf(SOAPY_SDR_WARNING, "Unknown setting '%s'", key.c_str());
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/SoapyRTLSDR.hpp 
new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/SoapyRTLSDR.hpp
--- old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/SoapyRTLSDR.hpp  2018-05-06 
03:40:27.000000000 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/SoapyRTLSDR.hpp  2018-12-08 
04:17:59.000000000 +0100
@@ -227,7 +227,7 @@
     uint32_t sampleRate, centerFrequency;
     int ppm, directSamplingMode;
     size_t numBuffers, bufferLength, asyncBuffs;
-    bool iqSwap, agcMode, offsetMode;
+    bool iqSwap, gainMode, offsetMode, digitalAGC;
     double IFGain[6], tunerGain;
 
     std::vector<std::complex<float> > _lut_32f;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/changelog 
new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/changelog
--- old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/changelog 2018-05-06 
03:40:27.000000000 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/changelog 2018-12-08 
04:17:59.000000000 +0100
@@ -1,3 +1,9 @@
+soapyrtlsdr (0.3.0-1) unstable; urgency=low
+
+  * Release 0.3.0 (2018-12-07)
+
+ -- Josh Blum <j...@pothosware.com>  Fri, 07 Dec 2018 21:17:42 -0000
+
 soapyrtlsdr (0.2.5-1) unstable; urgency=low
 
   * Release 0.2.5 (2018-05-05)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/control 
new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/control
--- old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/control   2018-05-06 
03:40:27.000000000 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/control   2018-12-08 
04:17:59.000000000 +0100
@@ -8,12 +8,12 @@
     cmake,
     libsoapysdr-dev,
     librtlsdr-dev
-Standards-Version: 4.1.1
+Standards-Version: 4.1.4
 Homepage: https://github.com/pothosware/SoapyRTLSDR/wiki
 Vcs-Git: https://github.com/pothosware/SoapyRTLSDR.git
 Vcs-Browser: https://github.com/pothosware/SoapyRTLSDR
 
-Package: soapysdr0.6-module-rtlsdr
+Package: soapysdr0.7-module-rtlsdr
 Architecture: any
 Multi-Arch: same
 Depends: ${shlibs:Depends}, ${misc:Depends}
@@ -25,7 +25,7 @@
 
 Package: soapysdr-module-rtlsdr
 Architecture: all
-Depends: soapysdr0.6-module-rtlsdr, ${misc:Depends}
+Depends: soapysdr0.7-module-rtlsdr, ${misc:Depends}
 Description: RTL-SDR device support for SoapySDR (default version)
  The Soapy RTL-SDR project provides a SoapySDR hardware support module.
  Using this, any program using SoapySDR to interface to software
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/soapysdr0.6-module-rtlsdr.install 
new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/soapysdr0.6-module-rtlsdr.install
--- old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/soapysdr0.6-module-rtlsdr.install 
2018-05-06 03:40:27.000000000 +0200
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/soapysdr0.6-module-rtlsdr.install 
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-usr/lib/*
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/soapysdr0.7-module-rtlsdr.install 
new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/soapysdr0.7-module-rtlsdr.install
--- old/SoapyRTLSDR-soapy-rtlsdr-0.2.5/debian/soapysdr0.7-module-rtlsdr.install 
1970-01-01 01:00:00.000000000 +0100
+++ new/SoapyRTLSDR-soapy-rtlsdr-0.3.0/debian/soapysdr0.7-module-rtlsdr.install 
2018-12-08 04:17:59.000000000 +0100
@@ -0,0 +1 @@
+usr/lib/*


Reply via email to