SHA256
1
0
forked from pool/rtl-sdr
rtl-sdr/rtl-sdr-0021-rtl_fm-add-option-for-2nd-direct-sampling-mode.patch
Martin Pluskal a674f05f89 Accepting request 950287 from home:wkazubski:test:science
- new patch rtl-sdr-0021-add-option-for-2nd-direct-sampling-mode.patch
  adding extra option to rtl_fm (borrowed from git tree)
- patches:
    rtl-sdr-0003-disable-zerocopy-by-default.patch
    rtl-sdr-0007-allow-build-rtlsdr-as-subroject.patch
    rtl-sdr-0008-add-CMP0075-policy.patch
    rtl-sdr-0016-add-missing-rtlsdrConfig.patch
    rtl-sdr-0017-add-rtl_biast-as-install-target.patch
    rtl-sdr-0018-fix-for-older-cmake.patch
    rtl-sdr-0020-populate-pkgconfig-with-prefix.patch
  merged into rtl-sdr-0015-modernize-cmake-usage.patch
- patch rtl-sdr-0005-add-rtlsdr_set_bias_tee_gpio.patch
  merged into rtl-sdr-0006-add-rtl_biast.patch
- Added patches to upgrade to latest git head (only significant
  changes), including:
    + rtl-sdr-0001-mmap-bug-arm.patch
    + rtl-sdr-0002-fix-rtlsdr_open-memory-leak.patch
    + rtl-sdr-0003-disable-zerocopy-by-default.patch
    + rtl-sdr-0004-fix-rtl_eeprom-warnings.patch
    + rtl-sdr-0005-add-rtlsdr_set_bias_tee_gpio.patch
    + rtl-sdr-0006-add-rtl_biast.patch
    + rtl-sdr-0007-allow-build-rtlsdr-as-subroject.patch
    + rtl-sdr-0008-add-CMP0075-policy.patch
    + rtl-sdr-0009-fix-FC0013-UHF-reception.patch
    + rtl-sdr-0010-improve-librtlsdr_pc.patch
    + rtl-sdr-0011-improve-rtl_power--scanning-range-parsing.patch
    + rtl-sdr-0012-use-udev-uaccess_rules.patch (not used)
    + rtl-sdr-0013-add-IPV6-for-rtl_tcp.patch
    + rtl-sdr-0014-initialize-listensocket_in-rtl_tcp.patch
    + rtl-sdr-0015-modernize-cmake-usage.patch
    + rtl-sdr-0016-add-missing-rtlsdrConfig.patch
    + rtl-sdr-0017-add-rtl_biast-as-install-target.patch
    + rtl-sdr-0018-fix-for-older-cmake.patch
    + rtl-sdr-0019-fix-short-write-in-r82xx_read.patch
    + rtl-sdr-0020-populate-pkgconfig-with-prefix.patch
  * Full bias tee support for RTL-SDR v3 dongle
  * Command line utility rtl_biast for controlling bias tee
  * IPV-6 support for rtl_tcp
  * Fixed some bugs and compile time issues
- Use more of cmake macros
- Disable developer output from cmake
- Update to version 0.6.0
  * Fix inline functions to use 'static inline'
  * tuner_r82xx: turn off loop-through, remove dead code
  * rtl_adsb: fix hanging upon a signal in Fedora 27
  * lib: use USB zero-copy transfers if possible
- Update to 0.5.4
  * No change log found in source or wiki
  * Drop git-requirement
- Update to version 0.5.3+git.20170919:
  * fix for msvc14
  * Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp)
  * rtl_tcp: add command for bias tee control
  * lib: Use GPIO P0 to toggle an (optional) bias-t
  * lib: fix direction bit in GPIO code
- Update to version 0.5.3+git.20170612:
  * lib: use GPIO0 to control bias tee
  * rtl_(adsb|fm|power|tcp): add option -T for activating bias tee
- Use package-meta for tar_scm service and add git-core
  to BuildRequires
- Update group handling
- Add patch: 0001-Better-udev-handling.patch
- Use proper cmake options
- Use group rtlsdr in the udev-rules
- RPM group fix
- Update to version 0.5.3+git.20161127:
  * lib: change default number of transfers to 15
  * rtl_tcp: make all global variables static
  * cmake: include resource file for MSVC builds
  * Correct return code of e4k_reg_write().
  * Allow setting bandwidth for R820T
  * New functions rtlsdr_set_tuner_bandwidth()
  * tools: allow built-in functions for newer versions of MSVC
  * lib: check for libusb init failure
  * lib: add new HanfTek dongle
- Packaging changes:
  * Add _service for easier updating of package
  * Split udev rules to separate package
  * Run spec-cleaner
- Use cmake macros
- update to version 0.5.3_13_ge3e6ee2
  add new HanfTek dongle
- update to version 0.5.3_12_ge3c03f7
  check for libusb init failure
- update to version 0.5.3_10_g8b4d755
  Allow setting bandwidth for R820T
- update to version 0.5.3_6_gd447a2e
- update to version 0.5.2_2_g5f38c05
- Changes to spec file:
  * Update udev paths for openSUSE 13.1 and ensure udev rules are
    updated when package is installed / updated / uninstalled.
  * Define %libname to ease reuse of %post(un) macros
- update to version 0.5.1 
- update to version 0.5.0_git20130915 
- update to version 0.5.git
  * adds support for ASUS U3100MINI_PLUS_V2 
  * set DETACH_KERNEL_DRIVER=ON to allow detaching of kernel driver
- update to version git20130608
  minor enhancements 
- update to version git20130417.
  minor enhancements 
- small changes to the spec file:
  * pass %optflags to cmake according to 
    http://en.opensuse.org/openSUSE:Build_system_recipes 
  * use config(noreplace) for udev rules file
- import into the hamradio repository

OBS-URL: https://build.opensuse.org/request/show/950287
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/rtl-sdr?expand=0&rev=22
2022-02-01 10:28:36 +00:00

50 lines
1.9 KiB
Diff

From a4eab76c8cafc6f3ebed8b6757b0643df9453bec Mon Sep 17 00:00:00 2001
From: Doug Hammond <doug@lon.dev>
Date: Thu, 29 Jul 2021 18:27:17 +0100
Subject: [PATCH] rtl_fm: add a new option to select 2nd direct sampling mode
---
src/rtl_fm.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/rtl_fm.c b/src/rtl_fm.c
index 283542d..7c84332 100644
--- a/src/rtl_fm.c
+++ b/src/rtl_fm.c
@@ -201,11 +201,12 @@ void usage(void)
"\t[-p ppm_error (default: 0)]\n"
"\t[-E enable_option (default: none)]\n"
"\t use multiple -E to enable multiple options\n"
- "\t edge: enable lower edge tuning\n"
- "\t dc: enable dc blocking filter\n"
- "\t deemp: enable de-emphasis filter\n"
- "\t direct: enable direct sampling\n"
- "\t offset: enable offset tuning\n"
+ "\t edge: enable lower edge tuning\n"
+ "\t dc: enable dc blocking filter\n"
+ "\t deemp: enable de-emphasis filter\n"
+ "\t direct: enable direct sampling 1 (usually I)\n"
+ "\t direct2: enable direct sampling 2 (usually Q)\n"
+ "\t offset: enable offset tuning\n"
"\tfilename ('-' means stdout)\n"
"\t omitting the filename also uses stdout\n\n"
"Experimental options:\n"
@@ -892,7 +893,7 @@ static void *controller_thread_fn(void *arg)
/* set up primary channel */
optimal_settings(s->freqs[0], demod.rate_in);
if (dongle.direct_sampling) {
- verbose_direct_sampling(dongle.dev, 1);}
+ verbose_direct_sampling(dongle.dev, dongle.direct_sampling);}
if (dongle.offset_tuning) {
verbose_offset_tuning(dongle.dev);}
@@ -1119,6 +1120,8 @@ int main(int argc, char **argv)
demod.deemph = 1;}
if (strcmp("direct", optarg) == 0) {
dongle.direct_sampling = 1;}
+ if (strcmp("direct2", optarg) == 0) {
+ dongle.direct_sampling = 2;}
if (strcmp("offset", optarg) == 0) {
dongle.offset_tuning = 1;}
break;