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

Jesper Sörensen jesper at datapartner.se
Mon Nov 15 23:17:25 UTC 2004


Marcus Metzler wrote:

>    >> 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;
>  }
>  else
>     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.
>  
>

I actually have an other patch in testing right now that I'm hoping 
should work. Thanks anyway!



More information about the mythtv-dev mailing list