From 083e11379f6bf9ea867061dd79320c06585951a9 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 22 Oct 2020 14:24:48 +0200 Subject: [PATCH] zapit/frontend: re-add cst specific stuff Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/6479eaa36e13040f58a3113e68ae98f08d4da1bc Author: vanhofen Date: 2020-10-22 (Thu, 22 Oct 2020) Origin message was: ------------------ - zapit/frontend: re-add cst specific stuff --- src/zapit/src/frontend.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/zapit/src/frontend.cpp b/src/zapit/src/frontend.cpp index c13757725..bd6d1b415 100644 --- a/src/zapit/src/frontend.cpp +++ b/src/zapit/src/frontend.cpp @@ -80,7 +80,11 @@ extern int zapit_debug; #define FE_COMMON_PROPS 2 #define FE_DVBS_PROPS 6 +#if HAVE_CST_HARDWARE +#define FE_DVBS2_PROPS 8 +#else #define FE_DVBS2_PROPS 10 +#endif #define FE_DVBS2X_PROPS 10 #define FE_DVBC_PROPS 6 #define FE_DVBT_PROPS 10 @@ -98,6 +102,20 @@ static const struct dtv_property dvbs_cmdargs[] = { { DTV_TUNE, {} , { 0 }, 0 } }; +#if HAVE_CST_HARDWARE +static const struct dtv_property dvbs2_cmdargs[] = { + { DTV_CLEAR, {0,0,0}, { 0 }, 0 }, + { DTV_FREQUENCY, {} , { 0 }, 0 }, + { DTV_MODULATION, {} , { PSK_8 }, 0 }, + { DTV_INVERSION, {} , { INVERSION_AUTO }, 0 }, + { DTV_SYMBOL_RATE, {} , { 27500000 }, 0 }, + { DTV_DELIVERY_SYSTEM, {} , { SYS_DVBS2 }, 0 }, + { DTV_INNER_FEC, {} , { FEC_AUTO }, 0 }, + { DTV_PILOT, {} , { PILOT_AUTO }, 0 }, + { DTV_ROLLOFF, {} , { ROLLOFF_AUTO }, 0 }, + { DTV_TUNE, {} , { 0 }, 0 } +}; +#else static const struct dtv_property dvbs2_cmdargs[] = { { DTV_CLEAR, {0,0,0}, { 0 }, 0 }, { DTV_FREQUENCY, {} , { 0 }, 0 }, @@ -112,6 +130,7 @@ static const struct dtv_property dvbs2_cmdargs[] = { { DTV_STREAM_ID, {} , { NO_STREAM_ID_FILTER }, 0 }, // twice for BCM45308X { DTV_TUNE, {} , { 0 }, 0 } }; +#endif static const struct dtv_property dvbs2x_cmdargs[] = { { DTV_CLEAR, {0,0,0}, { 0 }, 0 },