scan vs dvbscan
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
Signature · 3 lines
http://www.idi.ntnu.no/~nilsgri/ Why is this thus?
What is the reason of this thusness?
- Artemus Ward