mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-19 12:17:21 -05:00
Disable RTL RMS Function on ARM Devices (RPi);
This commit is contained in:
@@ -1305,6 +1305,12 @@ if (opts->audio_in_type == 1)
|
|||||||
|
|
||||||
open_rtlsdr_stream(opts);
|
open_rtlsdr_stream(opts);
|
||||||
opts->rtl_started = 1; //set here so ncurses terminal doesn't attempt to open it again
|
opts->rtl_started = 1; //set here so ncurses terminal doesn't attempt to open it again
|
||||||
|
#ifdef __arm__
|
||||||
|
fprintf (stderr, "WARNING: RMS Function is Disabled on ARM Devices (Raspberry Pi) due to High CPU use. \n");
|
||||||
|
fprintf (stderr, "RMS/Squelch Functionality for NXDN, dPMR, EDACS Analog, M17 and Raw Audio Monitor are unavailable and these modes will not function properly. \n");
|
||||||
|
if (opts->monitor_input_audio == 1) opts->monitor_input_audio = 0;
|
||||||
|
opts->rtl_squelch_level = 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -604,6 +604,11 @@ void edacs(dsd_opts * opts, dsd_state * state)
|
|||||||
else
|
else
|
||||||
fprintf (stderr, " Digital");
|
fprintf (stderr, " Digital");
|
||||||
|
|
||||||
|
//disable analog calls on RTL Input on ARM devices due to High CPU usage from RTL RMS function
|
||||||
|
#ifdef __arm__
|
||||||
|
if (command == 0xEE && opts->audio_in_type == 3)
|
||||||
|
command = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
//this is working now with the new import setup
|
//this is working now with the new import setup
|
||||||
if (opts->p25_trunk == 1 && (strcmp(mode, "DE") != 0) && (strcmp(mode, "B") != 0) ) //DE is digital encrypted, B is block
|
if (opts->p25_trunk == 1 && (strcmp(mode, "DE") != 0) && (strcmp(mode, "B") != 0) ) //DE is digital encrypted, B is block
|
||||||
|
|||||||
@@ -1117,7 +1117,11 @@ void rtl_dev_tune(dsd_opts * opts, long int frequency)
|
|||||||
long int rtl_return_rms()
|
long int rtl_return_rms()
|
||||||
{
|
{
|
||||||
long int sr = 0;
|
long int sr = 0;
|
||||||
|
#ifdef __arm__
|
||||||
|
sr = 100;
|
||||||
|
#else
|
||||||
sr = rms(demod.lowpassed, demod.lp_len, 1);
|
sr = rms(demod.lowpassed, demod.lp_len, 1);
|
||||||
|
#endif
|
||||||
return (sr);
|
return (sr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user