From c458f0647cf44f6749e957afe9cbdf41dc72692a Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 10 May 2018 14:33:17 +0200 Subject: [PATCH] Removed Fc pos references in Sample Sink side --- plugins/samplesink/bladerfoutput/bladerfoutputthread.cpp | 3 +-- plugins/samplesink/bladerfoutput/bladerfoutputthread.h | 1 - plugins/samplesink/limesdroutput/limesdroutputthread.cpp | 8 +------- plugins/samplesink/limesdroutput/limesdroutputthread.h | 2 -- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/plugins/samplesink/bladerfoutput/bladerfoutputthread.cpp b/plugins/samplesink/bladerfoutput/bladerfoutputthread.cpp index daa028e66..79f26f92d 100644 --- a/plugins/samplesink/bladerfoutput/bladerfoutputthread.cpp +++ b/plugins/samplesink/bladerfoutput/bladerfoutputthread.cpp @@ -26,8 +26,7 @@ BladerfOutputThread::BladerfOutputThread(struct bladerf* dev, SampleSourceFifo* m_running(false), m_dev(dev), m_sampleFifo(sampleFifo), - m_log2Interp(0), - m_fcPos(0) + m_log2Interp(0) { std::fill(m_buf, m_buf + 2*BLADERFOUTPUT_BLOCKSIZE, 0); } diff --git a/plugins/samplesink/bladerfoutput/bladerfoutputthread.h b/plugins/samplesink/bladerfoutput/bladerfoutputthread.h index 4a93140e0..434ccaf83 100644 --- a/plugins/samplesink/bladerfoutput/bladerfoutputthread.h +++ b/plugins/samplesink/bladerfoutput/bladerfoutputthread.h @@ -49,7 +49,6 @@ private: SampleSourceFifo* m_sampleFifo; unsigned int m_log2Interp; - int m_fcPos; Interpolators m_interpolators; diff --git a/plugins/samplesink/limesdroutput/limesdroutputthread.cpp b/plugins/samplesink/limesdroutput/limesdroutputthread.cpp index 3dac3cf8f..f16eb2c7c 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputthread.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutputthread.cpp @@ -25,8 +25,7 @@ LimeSDROutputThread::LimeSDROutputThread(lms_stream_t* stream, SampleSourceFifo* m_running(false), m_stream(stream), m_sampleFifo(sampleFifo), - m_log2Interp(0), - m_fcPos(LimeSDROutputSettings::FC_POS_CENTER) + m_log2Interp(0) { std::fill(m_buf, m_buf + 2*LIMESDROUTPUT_BLOCKSIZE, 0); } @@ -74,11 +73,6 @@ void LimeSDROutputThread::setLog2Interpolation(unsigned int log2_interp) m_log2Interp = log2_interp; } -void LimeSDROutputThread::setFcPos(int fcPos) -{ - m_fcPos = fcPos; -} - void LimeSDROutputThread::run() { int res; diff --git a/plugins/samplesink/limesdroutput/limesdroutputthread.h b/plugins/samplesink/limesdroutput/limesdroutputthread.h index e543d510c..2761f45d5 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputthread.h +++ b/plugins/samplesink/limesdroutput/limesdroutputthread.h @@ -42,7 +42,6 @@ public: virtual void setDeviceSampleRate(int __attribute__((unused)) sampleRate) {} virtual bool isRunning() { return m_running; } void setLog2Interpolation(unsigned int log2_ioterp); - void setFcPos(int fcPos); private: QMutex m_startWaitMutex; @@ -54,7 +53,6 @@ private: SampleSourceFifo* m_sampleFifo; unsigned int m_log2Interp; // soft decimation - int m_fcPos; Interpolators m_interpolators;