aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorignasj <ignas.jarusevicius@gmail.com>2017-06-13 23:37:46 +0300
committerHarald Welte <laforge@gnumonks.org>2017-07-10 11:45:06 +0200
commit28d8081e25abbf6151bee7fc325510545c9c799d (patch)
treed68689152ada503d1f474901eaa216e3d7209367
parent87ed77b9376c89c4f78e61425a4700de166f252e (diff)
LimeSDR: Fix sample value range
when "sc16" stream arg is passed to SoapyUHD sample value range is -32768 to 32767 Change-Id: I58b8b6b71648bd9cbc105ddaaa9a7cf0a31b3d47
-rw-r--r--Transceiver52M/UHDDevice.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Transceiver52M/UHDDevice.cpp b/Transceiver52M/UHDDevice.cpp
index a69d6c3..778c772 100644
--- a/Transceiver52M/UHDDevice.cpp
+++ b/Transceiver52M/UHDDevice.cpp
@@ -1185,7 +1185,7 @@ TIMESTAMP uhd_device::initialReadTimestamp()
double uhd_device::fullScaleInputValue()
{
if (dev_type == LIMESDR)
- return (double) 2047 * LIMESDR_TX_AMPL;
+ return (double) SHRT_MAX * LIMESDR_TX_AMPL;
if (dev_type == UMTRX)
return (double) SHRT_MAX * UMTRX_TX_AMPL;
else
@@ -1194,7 +1194,6 @@ double uhd_device::fullScaleInputValue()
double uhd_device::fullScaleOutputValue()
{
- if (dev_type == LIMESDR) return (double) 2047;
return (double) SHRT_MAX;
}