Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration to Enable/Disable T2 modulations #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions HISTORY
Original file line number Diff line number Diff line change
Expand Up @@ -535,3 +535,4 @@ VDR Plugin 'wirbelscan' Revision History
controlling plugin.
* TP update on S19E2
* fixed the case when a language descriptor is empty (random incorrect lang)
* add support for configuring the use of gen2 modulations with DVB-T/T2 tuners
2 changes: 1 addition & 1 deletion common.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ class cMySetup {
int DVBC_Network_PID;
int CountryIndex;
int SatIndex;
int enable_s2;
int enable_s2; /* Includes S2 & T2 */
int ATSC_type;
uint32_t scanflags;
bool update;
Expand Down
6 changes: 4 additions & 2 deletions scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,12 +447,14 @@ void cScanner::Action(void) {
}
if (t2Support)
dlog(5, "DVB-T2 supported");
else
else {
wSetup.enable_s2 = false;
dlog(0, "WARN: you are using an outdated DVB device: no DVB-T2 support.");
}

// use mod as system T/T2 to avoid a further loop.
// min = T2, max = T
modulation_min = t2Support ? 0 : 1;
modulation_min = (t2Support && wSetup.enable_s2) ? 0 : 1;
modulation_max = 1;
sys_parm = 0;
// use srate as plp 0/1 to avoid a further loop.
Expand Down