Skip to content

Commit

Permalink
Increase default tuning timeout values
Browse files Browse the repository at this point in the history
For DVB-T/T2/C devices, increase the default signal timeout values from 1000ms
to 3000ms and the default tuning timeout values from 3000ms to 6000ms.
For ATSC devices, increase the default signal timeout value from 500ms to
2000ms and the default tuning timeout value from 2000ms to 4000ms.
This does increase the chance of getting good signal especially on DVB-T/T2.
This does increase the channel scanning time when there is no signal
on the frequency that is tuned to, which happens when doing a "Full Scan"
in which a list of frequencies is tried just to see if there
is something present there.
Note that this are the default values for new capture cards.
The timeout values of existing capture cards is not changed.
It is always possible to change the timeout values in the Capture Card settings page.

Refs #13472
  • Loading branch information
kmdewaal committed Dec 21, 2019
1 parent b4a1b83 commit f9eadca
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mythtv/libs/libmythtv/videosource.cpp
Expand Up @@ -3784,21 +3784,21 @@ void DVBConfigurationGroup::probeCard(const QString &videodevice)
case CardUtil::QAM:
m_cardType->setValue("DVB-C");
m_cardName->setValue(frontend_name);
m_signalTimeout->setValue(1000);
m_channelTimeout->setValue(3000);
m_signalTimeout->setValue(3000);
m_channelTimeout->setValue(6000);
break;
case CardUtil::DVBT2:
m_cardType->setValue("DVB-T2");
m_cardName->setValue(frontend_name);
m_signalTimeout->setValue(1000);
m_channelTimeout->setValue(3000);
m_signalTimeout->setValue(3000);
m_channelTimeout->setValue(6000);
break;
case CardUtil::OFDM:
{
m_cardType->setValue("DVB-T");
m_cardName->setValue(frontend_name);
m_signalTimeout->setValue(1000);
m_channelTimeout->setValue(3000);
m_signalTimeout->setValue(3000);
m_channelTimeout->setValue(6000);
if (frontend_name.toLower().indexOf("usb") >= 0)
{
m_signalTimeout->setValue(40000);
Expand Down Expand Up @@ -3830,8 +3830,8 @@ void DVBConfigurationGroup::probeCard(const QString &videodevice)
QString short_name = remove_chaff(frontend_name);
m_cardType->setValue("ATSC");
m_cardName->setValue(short_name);
m_signalTimeout->setValue(500);
m_channelTimeout->setValue(3000);
m_signalTimeout->setValue(2000);
m_channelTimeout->setValue(4000);

// According to #1779 and #1935 the AverMedia 180 needs
// a 3000 ms signal timeout, at least for QAM tuning.
Expand Down

0 comments on commit f9eadca

Please sign in to comment.