diff --git a/plugins/samplesource/airspyhf/airspyhfgui.cpp b/plugins/samplesource/airspyhf/airspyhfgui.cpp
index e5763fb9a..f0a91765d 100644
--- a/plugins/samplesource/airspyhf/airspyhfgui.cpp
+++ b/plugins/samplesource/airspyhf/airspyhfgui.cpp
@@ -219,7 +219,6 @@ void AirspyHFGui::displaySettings()
ui->sampleRate->setCurrentIndex(m_settings.m_devSampleRateIndex);
ui->decim->setCurrentIndex(m_settings.m_log2Decim);
- ui->fcPos->setCurrentIndex((int) m_settings.m_fcPos);
blockApplySettings(false);
}
@@ -277,20 +276,6 @@ void AirspyHFGui::on_decim_currentIndexChanged(int index)
sendSettings();
}
-void AirspyHFGui::on_fcPos_currentIndexChanged(int index)
-{
- if (index == 0) {
- m_settings.m_fcPos = AirspyHFSettings::FC_POS_INFRA;
- sendSettings();
- } else if (index == 1) {
- m_settings.m_fcPos = AirspyHFSettings::FC_POS_SUPRA;
- sendSettings();
- } else if (index == 2) {
- m_settings.m_fcPos = AirspyHFSettings::FC_POS_CENTER;
- sendSettings();
- }
-}
-
void AirspyHFGui::on_startStop_toggled(bool checked)
{
if (m_doApplySettings)
diff --git a/plugins/samplesource/airspyhf/airspyhfgui.h b/plugins/samplesource/airspyhf/airspyhfgui.h
index 32a477b21..435f438c4 100644
--- a/plugins/samplesource/airspyhf/airspyhfgui.h
+++ b/plugins/samplesource/airspyhf/airspyhfgui.h
@@ -79,7 +79,6 @@ private slots:
void on_centerFrequency_changed(quint64 value);
void on_sampleRate_currentIndexChanged(int index);
void on_decim_currentIndexChanged(int index);
- void on_fcPos_currentIndexChanged(int index);
void on_startStop_toggled(bool checked);
void on_record_toggled(bool checked);
void on_transverter_clicked();
diff --git a/plugins/samplesource/airspyhf/airspyhfgui.ui b/plugins/samplesource/airspyhf/airspyhfgui.ui
index e5022f2a9..621332be4 100644
--- a/plugins/samplesource/airspyhf/airspyhfgui.ui
+++ b/plugins/samplesource/airspyhf/airspyhfgui.ui
@@ -7,7 +7,7 @@
0
0
324
- 180
+ 120
@@ -19,7 +19,7 @@
320
- 180
+ 120
@@ -180,44 +180,15 @@
-
-
-
-
+
+
-
Band
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
- -
-
-
-
- 24
- 24
-
-
-
- Transverter frequency translation dialog
-
-
- X
-
-
-
- -
+
-
@@ -240,14 +211,7 @@
-
-
- -
-
-
- 3
-
-
-
+
-
@@ -256,11 +220,11 @@
- Rate
+ S/R
- -
+
-
@@ -284,28 +248,34 @@
- -
-
-
- Dec
-
-
-
- -
+
-
k
- -
-
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
+ -
+
- Fp
+ Dec
- -
+
-
@@ -356,50 +326,22 @@
- -
-
+
-
+
- 55
- 16777215
+ 24
+ 24
- Relative position of device center frequency
+ Transverter frequency translation dialog
-
- 2
+
+ X
-
-
-
- Inf
-
-
- -
-
- Sup
-
-
- -
-
- Cen
-
-
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
diff --git a/plugins/samplesource/airspyhf/airspyhfinput.cpp b/plugins/samplesource/airspyhf/airspyhfinput.cpp
index 184289286..7d5e7c1eb 100644
--- a/plugins/samplesource/airspyhf/airspyhfinput.cpp
+++ b/plugins/samplesource/airspyhf/airspyhfinput.cpp
@@ -163,7 +163,6 @@ bool AirspyHFInput::start()
m_airspyHFThread->setSamplerate(m_sampleRates[m_settings.m_devSampleRateIndex]);
m_airspyHFThread->setLog2Decimation(m_settings.m_log2Decim);
- m_airspyHFThread->setFcPos((int) m_settings.m_fcPos);
m_airspyHFThread->startWork();
@@ -386,7 +385,6 @@ bool AirspyHFInput::applySettings(const AirspyHFSettings& settings, bool force)
}
if (force || (m_settings.m_centerFrequency != settings.m_centerFrequency)
- || (m_settings.m_fcPos != settings.m_fcPos)
|| (m_settings.m_transverterMode != settings.m_transverterMode)
|| (m_settings.m_transverterDeltaFrequency != settings.m_transverterDeltaFrequency))
{
@@ -396,24 +394,6 @@ bool AirspyHFInput::applySettings(const AirspyHFSettings& settings, bool force)
qint64 f_img = deviceCenterFrequency;
quint32 devSampleRate = m_sampleRates[sampleRateIndex];
- if ((settings.m_log2Decim == 0) || (settings.m_fcPos == AirspyHFSettings::FC_POS_CENTER))
- {
- f_img = deviceCenterFrequency;
- }
- else
- {
- if (settings.m_fcPos == AirspyHFSettings::FC_POS_INFRA)
- {
- deviceCenterFrequency += (devSampleRate / 4);
- f_img = deviceCenterFrequency + devSampleRate/2;
- }
- else if (settings.m_fcPos == AirspyHFSettings::FC_POS_SUPRA)
- {
- deviceCenterFrequency -= (devSampleRate / 4);
- f_img = deviceCenterFrequency - devSampleRate/2;
- }
- }
-
if (m_dev != 0)
{
setDeviceCenterFrequency(deviceCenterFrequency, settings);
@@ -428,15 +408,6 @@ bool AirspyHFInput::applySettings(const AirspyHFSettings& settings, bool force)
forwardChange = true;
}
- if ((m_settings.m_fcPos != settings.m_fcPos) || force)
- {
- if (m_airspyHFThread != 0)
- {
- m_airspyHFThread->setFcPos((int) settings.m_fcPos);
- qDebug() << "AirspyInput: set fc pos (enum) to " << (int) settings.m_fcPos;
- }
- }
-
if (forwardChange)
{
int sampleRate = m_sampleRates[sampleRateIndex]/(1<write(m_convertBuffer.begin(), it);
}
diff --git a/plugins/samplesource/airspyhf/airspyhfthread.h b/plugins/samplesource/airspyhf/airspyhfthread.h
index 63e78e9c9..0056f5f87 100644
--- a/plugins/samplesource/airspyhf/airspyhfthread.h
+++ b/plugins/samplesource/airspyhf/airspyhfthread.h
@@ -38,7 +38,6 @@ public:
void stopWork();
void setSamplerate(uint32_t samplerate);
void setLog2Decimation(unsigned int log2_decim);
- void setFcPos(int fcPos);
private:
QMutex m_startWaitMutex;
@@ -52,7 +51,6 @@ private:
int m_samplerate;
unsigned int m_log2Decim;
- int m_fcPos;
static AirspyHFThread *m_this;
Decimators m_decimators;