diff options
author | Leo Currie <leo.currie@bbc.co.uk> | 2020-01-24 20:34:31 +0000 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2020-01-25 18:59:24 +0100 |
commit | 35ccf805ab80df0f3ac67a50cc1694fbe2e1140d (patch) | |
tree | 4a08c81328c1c0900e8721f69a83663b833529d7 /src/output/Soapy.cpp | |
parent | 6c02271b0050dbb2808bb55272b438576d937d4a (diff) | |
download | dabmod-35ccf805ab80df0f3ac67a50cc1694fbe2e1140d.tar.gz dabmod-35ccf805ab80df0f3ac67a50cc1694fbe2e1140d.tar.bz2 dabmod-35ccf805ab80df0f3ac67a50cc1694fbe2e1140d.zip |
Soapy: set RX samplerate which is required by LimeSDR
Pull request 40
(cherry picked from commit 8aef8ca39f3a73ba3411876a7abd58204b2f6fe6)
Diffstat (limited to 'src/output/Soapy.cpp')
-rw-r--r-- | src/output/Soapy.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/output/Soapy.cpp b/src/output/Soapy.cpp index 4846279..084591f 100644 --- a/src/output/Soapy.cpp +++ b/src/output/Soapy.cpp @@ -79,6 +79,7 @@ Soapy::Soapy(SDRDeviceConfig& config) : m_device->getMasterClockRate()/1000.0 << " kHz"; m_device->setSampleRate(SOAPY_SDR_TX, 0, m_conf.sampleRate); + m_device->setSampleRate(SOAPY_SDR_RX, 0, m_conf.sampleRate); etiLog.level(info) << "SoapySDR:Actual TX rate: " << std::fixed << std::setprecision(4) << m_device->getSampleRate(SOAPY_SDR_TX, 0) / 1000.0 << |