[mythtv-commits] Ticket #10712: HD Homerun Prime in Digital Cable mode fails Live TV and recording

MythTV noreply at mythtv.org
Sun May 13 16:40:04 UTC 2012


#10712: HD Homerun Prime in Digital Cable mode fails Live TV and recording
--------------------------------------+----------------------------
 Reporter:  Gern Blanston <mythtv@…>  |          Owner:  danielk
     Type:  Bug Report - General      |         Status:  new
 Priority:  minor                     |      Milestone:  unknown
Component:  MythTV - Recording        |        Version:  0.25-fixes
 Severity:  medium                    |     Resolution:
 Keywords:  hdhomerun tuning          |  Ticket locked:  0
--------------------------------------+----------------------------

Comment (by captainbaldric@…):

 I ran into the same issue. In my backend log, I found ...

 mythbackend.20120413210155.15620.log:2012-04-13 21:05:55.865706 E
 [15620/15630] TVRecEventdtvmultiplex.cpp:323 (ParseTuningParams) - DTVMux:
 ParseTuningParams -- Unknown tuner type

 which I found disappointly vague, so I made the following change.


 {{{
 mythtv-0.25/libs/libmythtv/dtvmultiplex.cpp
 323c323
 <     LOG(VB_GENERAL, LOG_ERR, LOC + "ParseTuningParams -- Unknown tuner
 type");
 ---
 >     LOG(VB_GENERAL, LOG_ERR, LOC + QString("ParseTuningParams -- Unknown
 tuner type = 0x%1").arg(type, 8, 16, QChar('0')));
 }}}


 After rebuilding and restarting the backend, the updated log file showed
 ...

 mythbackend.20120413212337.15926.log:2012-04-13 21:23:38.034919 E
 [15926/15926] CoreContext dtvmultiplex.cpp:324 (ParseTuningParams) -
 DTVMux: ParseTuningParams -- Unknown tuner type = 0x00002000

   I tracked down this tuner type value to be kTunerTypeOCUR.

   When running the HDHomerun Prime with a CableCard, the OCUR tuner type
 would be appropriate, but when running without a CableCard, it operates as
 an ATSC tuner (and supports multiplexing).

   To fix the problem, I made the following change ...


 {{{
 diff mythtv-0.25.orig/libs/libmythtv/hdhrstreamhandler.cpp
 mythtv-0.25/libs/libmythtv/hdhrstreamhandler.cpp.new
 274c274,287
 <             _tuner_types.push_back(DTVTunerType::kTunerTypeOCUR);
 ---
 >             hdhomerun_tuner_status_t t_status;
 >
 >             hdhomerun_device_get_oob_status(_hdhomerun_device, NULL,
 &t_status);
 >             LOG(VB_GENERAL, LOG_ERR, LOC + QString("Cable card OOB
 channel is '%1'").arg(t_status.channel));
 >             if (strcmp(t_status.channel, "none") == 0)
 >             {
 >                 _tuner_types.push_back(DTVTunerType::kTunerTypeATSC);
 >                 LOG(VB_GENERAL, LOG_ERR, LOC + "Cable card is not
 present");
 >             }
 >             else
 >             {
 >                 _tuner_types.push_back(DTVTunerType::kTunerTypeOCUR);
 >                 LOG(VB_GENERAL, LOG_ERR, LOC + "Cable card is present");
 >             }
 }}}


 Note: I added several log messages to help debug my change. LOG_ERR may
 not be the right logging level, since these are not really errors. It's
 perfectly valid to run the HDHomerun Prime with or without a CableCard.

   I briefly had access to a CableCard, and verified that the tuner type
 would be set to OCUR by the above code, but I never got the CableCard to
 work (due to incompentence at Comcast customer service). The HDHomerun
 Prime is working very well as an ATSC tuner.

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10712#comment:3>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list