Skip to content

Commit

Permalink
Set modulation system for DVB-T only tuner.
Browse files Browse the repository at this point in the history
For DVB-T2 capable tuners dtv_multiplex/mod_sys is set to DVB-T
or DVB-T2 but this was not done for DVB-T only tuners.

Refs #13432
  • Loading branch information
kmdewaal committed Mar 22, 2019
1 parent b8141c8 commit d020842
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mythtv/libs/libmythtv/channelscan/channelscan_sm.cpp
Expand Up @@ -953,6 +953,10 @@ bool ChannelScanSM::UpdateChannelInfo(bool wait_until_complete)
TransportScanItem &item = *m_current;
item.m_tuning.m_frequency = item.freq_offset(m_current.offset());

if (m_scanDTVTunerType == DTVTunerType::kTunerTypeDVBT)
{
item.m_tuning.m_mod_sys = DTVModulationSystem::kModulationSystem_DVBT;
}
if (m_scanDTVTunerType == DTVTunerType::kTunerTypeDVBT2)
{
if (m_dvbt2Tried)
Expand Down Expand Up @@ -1812,6 +1816,10 @@ bool ChannelScanSM::Tune(const transport_scan_items_it_t &transport)
DTVMultiplex tuning = item.m_tuning;
tuning.m_frequency = freq;

if (m_scanDTVTunerType == DTVTunerType::kTunerTypeDVBT)
{
tuning.m_mod_sys = DTVModulationSystem::kModulationSystem_DVBT;
}
if (m_scanDTVTunerType == DTVTunerType::kTunerTypeDVBT2)
{
if (m_dvbt2Tried)
Expand Down

0 comments on commit d020842

Please sign in to comment.