Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: vdr with multiple cards...



Guido Fiala wrote:
> 
> > > Apr 14 11:34:53 wonderbox vdr[793]: probing /dev/ost/frontend0
> > > Apr 14 11:34:53 wonderbox vdr[795]: EIT processing thread started
> > > (pid=795) - master Apr 14 11:34:54 wonderbox vdr[793]: found 1 video
> > > device
> >
> > The lack of a "probing /dev/ost/frontend1" message can have only one of two
> > reasons: There is either a '-D 0' command line option (which you claim is
> > not the case), or there is no file named "/dev/ost/frontend1". I can't
> > think of anything else right now.
> 
> The file is there - it's generated by the makedev.napi script anyway.
> So i guess the file can not be opened, that's where the access() fails.
> Can that mean that the card is broken in a very specific way because szap is
> still able to use it?

bool cDvbApi::Probe(const char *FileName)
{
  if (access(FileName, F_OK) == 0) {
     dsyslog(LOG_INFO, "probing %s", FileName);
     int f = open(FileName, O_RDONLY);
     if (f >= 0) {
        close(f);
        return true;
        }
     else if (errno != ENODEV && errno != EINVAL)
        LOG_ERROR_STR(FileName);
     }
  else if (errno != ENOENT)
     LOG_ERROR_STR(FileName);
  return false;
}

The first thing VDR does when looking for DVB devices is to check
if it can access the file /dev/ost/frontend# (# = 0, 1, 2, 3).
If such a file can be accessed, the message "probing..." is written
to the log file. So in your case the only explanation is that there
is no such file, or that it can't be accessed. I'm still in doubt 
whether is can be absolutely, positively ruled out that there is
a '-D 0' option in the call to VDR...

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________



Home | Main Index | Thread Index