|
From: <lin...@us...> - 2002-07-06 07:07:34
|
Update of /cvsroot/dvbtools/dvbtune
In directory usw-pr-cvs1:/tmp/cvs-serv11582
Modified Files:
tune.c
Log Message:
added DVB_T_LOCATION display when tuning
Index: tune.c
===================================================================
RCS file: /cvsroot/dvbtools/dvbtune/tune.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** tune.c 29 Jun 2002 10:07:21 -0000 1.7
--- tune.c 6 Jul 2002 07:07:31 -0000 1.8
***************
*** 154,157 ****
--- 154,170 ----
FrontendInfo fe_info;
+ /* discard stale frontend events */
+ /*
+ pfd[0].fd = fd_frontend;
+ pfd[0].events = POLLIN;
+
+ if (poll(pfd,1,500)){
+ if (pfd[0].revents & POLLIN){
+ while (1) {
+ if (ioctl (fd_frontend, FE_GET_EVENT, &event) == -1) { break; }
+ }
+ }
+ }
+ */
if ( (res = ioctl(fd_frontend,FE_GET_INFO, &fe_info) < 0)){
perror("FE_GET_INFO: ");
***************
*** 165,169 ****
switch(fe_info.type) {
case FE_OFDM:
! fprintf(stderr,"tuning DVB-T to %d\n",freq);
feparams.Frequency=freq;
feparams.Inversion=INVERSION_OFF;
--- 178,182 ----
switch(fe_info.type) {
case FE_OFDM:
! fprintf(stderr,"tuning DVB-T (%s) to %d\n",DVB_T_LOCATION,freq);
feparams.Frequency=freq;
feparams.Inversion=INVERSION_OFF;
|