From f2c4af91695e0ef51c6a5630c0280ef45f0ad0b5 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sat, 9 Sep 2023 11:19:35 -0400 Subject: [PATCH] Adding SDRPlay High Dynamic Resolution (HDR) mode option. --- owrx/source/sdrplay.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/owrx/source/sdrplay.py b/owrx/source/sdrplay.py index a30186b8..dcf4717b 100644 --- a/owrx/source/sdrplay.py +++ b/owrx/source/sdrplay.py @@ -13,6 +13,7 @@ class SdrplaySource(SoapyConnectorSource): "bias_tee": "biasT_ctrl", "rf_notch": "rfnotch_ctrl", "dab_notch": "dabnotch_ctrl", + "hdr_mode": "hdr_ctrl", "if_mode": "if_mode", "external_reference": "extref_ctrl", "rfgain_sel": "rfgain_sel", @@ -50,6 +51,10 @@ class SdrplayDeviceDescription(SoapyConnectorDeviceDescription): "dab_notch", "Enable DAB notch filter", ), + CheckboxInput( + "hdr_mode", + "Enable HDR mode (RSPdx only)", + ), DropdownInput( "if_mode", "IF Mode", @@ -74,7 +79,7 @@ class SdrplayDeviceDescription(SoapyConnectorDeviceDescription): ] def getDeviceOptionalKeys(self): - return super().getDeviceOptionalKeys() + ["bias_tee", "rf_notch", "dab_notch", "if_mode", "rfgain_sel", "agc_setpoint"] + return super().getDeviceOptionalKeys() + ["bias_tee", "rf_notch", "dab_notch", "hdr_mode", "if_mode", "rfgain_sel", "agc_setpoint"] def getProfileOptionalKeys(self): - return super().getProfileOptionalKeys() + ["bias_tee", "rf_notch", "dab_notch", "if_mode", "rfgain_sel", "agc_setpoint"] + return super().getProfileOptionalKeys() + ["bias_tee", "rf_notch", "dab_notch", "hdr_mode", "if_mode", "rfgain_sel", "agc_setpoint"]