From bf4a4b574c178c836079dcfe34c2dec16643e16c Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Fri, 19 May 2023 06:42:55 -0400 Subject: [PATCH] RTL Misc; Disable Offset and Double BW; #125 --- src/dsd_main.c | 4 ++++ src/dsd_ncurses.c | 2 +- src/rtl_sdr_fm.cpp | 7 +++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/dsd_main.c b/src/dsd_main.c index 983a3cd..5874e09 100644 --- a/src/dsd_main.c +++ b/src/dsd_main.c @@ -1342,7 +1342,11 @@ main (int argc, char **argv) fprintf (stderr,"%s\n", FM_banner[i]); } + #ifdef AERO_BUILD + fprintf (stderr, "Build Version: v2.0.1-7 Win32 \n"); + #else fprintf (stderr, "Build Version: %s \n", GIT_TAG); + #endif fprintf (stderr,"MBElib Version: %s\n", versionstr); initOpts (&opts); diff --git a/src/dsd_ncurses.c b/src/dsd_ncurses.c index 1d8f03e..b090a1b 100644 --- a/src/dsd_ncurses.c +++ b/src/dsd_ncurses.c @@ -2059,7 +2059,7 @@ ncursesPrinter (dsd_opts * opts, dsd_state * state) { printw ("------------------------------------------------------------------------------\n"); // printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", GIT_TAG); - printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", "v2.0.1-6 Win32"); + printw ("| Digital Speech Decoder: Florida Man Edition - Aero %s \n", "v2.0.1-7 Win32"); printw ("------------------------------------------------------------------------------\n"); } #elif LIMAZULUTWEAKS diff --git a/src/rtl_sdr_fm.cpp b/src/rtl_sdr_fm.cpp index ffcd00e..23705f5 100644 --- a/src/rtl_sdr_fm.cpp +++ b/src/rtl_sdr_fm.cpp @@ -805,7 +805,7 @@ void dongle_init(struct dongle_state *s) s->gain = AUTO_GAIN; // tenths of a dB s->mute = 0; s->direct_sampling = 0; - s->offset_tuning = 1; // initial tests show this works better enabled + s->offset_tuning = 0; //E4000 tuners only s->demod_target = &demod; } @@ -964,7 +964,7 @@ void open_rtlsdr_stream(dsd_opts *opts) { struct sigaction sigact; int r; - rtl_bandwidth = opts->rtl_bandwidth * 1000; + rtl_bandwidth = opts->rtl_bandwidth * 1000 * 2; //going to double the value -- may clear up issue with user specified BW not what it seems bandwidth_multiplier = (bandwidth_divisor / rtl_bandwidth); //this needs to be initted first, then we set the parameters @@ -1087,10 +1087,9 @@ void get_rtlsdr_sample(int16_t *sample, dsd_opts * opts, dsd_state * state) pthread_rwlock_unlock(&output.rw); } -void rtl_dev_tune(dsd_opts * opts, long int frequency) +void rtl_dev_tune(dsd_opts * opts, long int frequency) { int r; - uint32_t freq; dongle.freq = opts->rtlsdr_center_freq = frequency; optimal_settings(dongle.freq, demod.rate_in); r = verbose_set_frequency(dongle.dev, dongle.freq);