Ticket #10712: mythtv-10712-use_OCUR_only_with_CableCARD.patch

File mythtv-10712-use_OCUR_only_with_CableCARD.patch, 1.8 KB (added by simon.sinister@…, 12 years ago)

This patch adds support for an HdHomerun? Prime without a Cable Card

  • mythtv/libs/libmythtv/dtvmultiplex.cpp

    diff --git a/mythtv/libs/libmythtv/dtvmultiplex.cpp b/mythtv/libs/libmythtv/dtvmultiplex.cpp
    index 69336ed..ec0ce66 100644
    a b bool DTVMultiplex::ParseTuningParams( 
    320320    if (DTVTunerType::kTunerTypeATSC == type)
    321321        return ParseATSC(_frequency, _modulation);
    322322
    323     LOG(VB_GENERAL, LOG_ERR, LOC + "ParseTuningParams -- Unknown tuner type");
     323    LOG(VB_GENERAL, LOG_ERR, LOC + QString("ParseTuningParams -- Unknown tuner type = 0x%1").arg(type, 8, 16, QChar('0')));
    324324
    325325    return false;
    326326}
  • mythtv/libs/libmythtv/hdhrstreamhandler.cpp

    diff --git a/mythtv/libs/libmythtv/hdhrstreamhandler.cpp b/mythtv/libs/libmythtv/hdhrstreamhandler.cpp
    index 1f23de8..1177da0 100644
    a b bool HDHRStreamHandler::Open(void) 
    271271        _tuner_types.clear();
    272272        if (QString(model).toLower().contains("cablecard"))
    273273        {
    274             _tuner_types.push_back(DTVTunerType::kTunerTypeOCUR);
     274            hdhomerun_tuner_status_t t_status;
     275
     276            hdhomerun_device_get_oob_status(_hdhomerun_device, NULL, &t_status);
     277            LOG(VB_GENERAL, LOG_DEBUG, LOC + QString("Cable card OOB channel is '%1'").arg(t_status.channel));
     278            if (strcmp(t_status.channel, "none") == 0)
     279            {
     280                LOG(VB_GENERAL, LOG_INFO, LOC + "Cable card is not present");
     281                _tuner_types.push_back(DTVTunerType::kTunerTypeATSC);
     282            }
     283            else
     284            {
     285                LOG(VB_GENERAL, LOG_INFO, LOC + "Cable card is present");
     286                _tuner_types.push_back(DTVTunerType::kTunerTypeOCUR);
     287            }
    275288        }
    276289        else if (QString(model).toLower().contains("dvb"))
    277290        {