From 79403355865a09037f505fb50d90695c28906f0e Mon Sep 17 00:00:00 2001 From: Thomas Tsou Date: Sat, 9 Nov 2013 17:04:29 -0500 Subject: Transceiver52M: Default to 1 sample-per-symbol low powered devices This includes ARM Cortex A8 and A15 powered device such as Beagle Board, Gumstix driven E100 USRP, and Arndale board. Set the reduced SPS value automatically for the user. For x86, if we don't support SSE3, then the architecture is probably ancient and not with using. Drop the sampling down anyways to at least make an attempt. Non floating point SIMD devices (e.g. Raspberry Pi) also fall in this category Signed-off-by: Thomas Tsou --- Transceiver52M/runTransceiver.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Transceiver52M/runTransceiver.cpp b/Transceiver52M/runTransceiver.cpp index 395908c..e85ce56 100644 --- a/Transceiver52M/runTransceiver.cpp +++ b/Transceiver52M/runTransceiver.cpp @@ -23,7 +23,9 @@ */ - +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "Transceiver.h" #include "radioDevice.h" @@ -42,9 +44,14 @@ * 1 - Uses minimized modulator (less computation, more distortion) * * Other values are invalid. Receive path (uplink) is always - * downsampled to 1 sps + * downsampled to 1 sps. Default to 4 sps for all cases except for + * ARM and non-SIMD enabled architectures. */ -#define SPS 4 +#if defined(HAVE_NEON) || !defined(HAVE_SSE3) +#define SPS 1 +#else +#define SPS 4 +#endif ConfigurationTable gConfig(CONFIGDB); -- cgit v1.2.3