scan vs dvbscan

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

 



Hello,

both in the Ubuntu package dvb-apps, and in the source from
http://linuxtv.org/hg/dvb-apps , there is both a program scan and dvbscan,
which are not the same.  Which should be used when?  I have a TechnoTrend
C-1501 DVB-C card, and only `scan` worked.  `dvbscan
/usr/local/share/dvb/dvb-c/no-Oslo-CanalDigital` gave the output "Unable
to query frontend status".  

Could the --help in the programs say something about which should work
when?

In util/dvbscan/dvbscan.c main():

  if (dvbfe_get_info(fe, DVBFE_INFO_LOCKSTATUS, &feinfo,
      DVBFE_INFO_QUERYTYPE_IMMEDIATE, 0) !=
      DVBFE_INFO_QUERYTYPE_IMMEDIATE) {
    fprintf(stderr, "Unable to query frontend status\n");
    exit(1);
  }

In lib/libdvbapi/dvbfe.c dvbfe_get_info():

  switch(querytype) {
  case DVBFE_INFO_QUERYTYPE_IMMEDIATE:
    if (querymask & DVBFE_INFO_LOCKSTATUS) {
      if (!ioctl(fehandle->fd, FE_READ_STATUS, &kevent.status)) {
        returnval |= DVBFE_INFO_LOCKSTATUS;
      }
    }       
  ...
  return returnval;

I do not really understand this.  If the call to ioctl *suceeds*,
DVBFE_INFO_LOCKSTATUS is returned, and exit(1) is called in main().  I do
not really understand this.  


Klem fra Nils

-- 
http://www.idi.ntnu.no/~nilsgri/                Why is this thus?
                             What is the reason of this thusness?
                                                  - Artemus Ward
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux