AW: [mythtv] [Experimental PATCH] BIG DVB PATCH V2.0 Released

Marcus Metzler mocm at
Mon Nov 15 22:53:27 UTC 2004

>>>>> "Taylor" == Taylor Jacob <rtjacob at> writes:

    >> Just started a test run with the new patch version: * Startup
    >> Runs into a timeout waiting for a non - existing CAM Module -
    >> while my Hauppauge Nexus-s supports CAMs, I don't have any
    >> installed (yet).  If possible, it would be nice to only wait
    >> for CAM initialisation if such a module actually exists.

    Taylor> Jesper? Care to fix this?

You could start in libs/libmythtv/dvbdev/dvbci.cpp with
adding a query for the presence of a CAM

bool cCiTransportLayer::ModuleReady(int Slot)
  ca_slot_info_t sinfo;
  sinfo.num = Slot;
  if (ioctl(fd, CA_GET_SLOT_INFO, &sinfo) != -1){
    if (sinfo.flags & CA_CI_MODULE_PRESENT)
     return sinfo.flags & CA_CI_MODULE_READY;
    else return false;
     esyslog("ERROR: can't get info on CAM slot %d: %m", Slot);
  return false;

But that does not fix it. I have to see where else the presence is
just assumed, but this is the only place where the slot info is
called. Maybe it should be added to cCiHandler
*cCiHandler::CreateCiHandler(const char *FileName) as well. Or you
could just add a call to CA_GET_CAP before you try to create a CiHandler.

Too tired to look at that right now.


| Dr. Marcus O.C. Metzler        |                                   |
| mocm at            |        |
 |>>>             Quis custodiet ipsos custodies                 <<<|

More information about the mythtv-dev mailing list