Changeset 28129


Ignore:
Timestamp:
03/31/14 04:05:25 (10 years ago)
Author:
obi
Message:

cleanup

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r28126 r28129  
    16281628{
    16291629        int i, y, fd = -1, count = 0;
    1630         char *buf = NULL, *buf1 = NULL, *frontenddev = NULL, *hypridtuner = NULL, *fehyprid = NULL;
     1630        char *buf = NULL, *frontenddev = NULL, *fehyprid = NULL;
    16311631        struct dvb_frontend_info* feinfo = NULL;
    16321632        struct dvbdev* dvbnode = NULL;
     
    16451645                return count;
    16461646        }
    1647 /*
    1648         hypridtuner = getconfig("hypridtuner", NULL);
    1649        
    1650         if(hypridtuner != NULL)
    1651         {
    1652                 buf1 = malloc(MINMALLOC);
    1653                 if(buf1 == NULL)
    1654                 {
    1655                         err("no memory");
    1656                         return count;
    1657                 }
    1658         }
    1659 */
     1647
    16601648        for(i = 0; i < MAXDVBADAPTER; i++)
    16611649        {
     
    16661654                        if(fd >= 0)
    16671655                        {
    1668 //                              sprintf(buf1, hypridtuner, y);
    1669 //                              fehyprid = readsys(buf1, 1);
    16701656                                fehyprid = gethypridtunerchoicesvalue(y);                               
    16711657                                feinfo = fegetinfo(NULL, fd);
    16721658                                if(feinfo != NULL)
    16731659                                {
    1674                                         printf("add fehyprid: %s i=%d, y=%d\n",fehyprid,i, y);
    16751660                                        count++;
    16761661                                        dvbnode = adddvbdev(buf, i, y, fd, FRONTENDDEV, feinfo, NULL, fehyprid, 0);
     
    16821667        }
    16831668
    1684 //      free(buf1);
    16851669        free(buf);
    16861670        return count;
  • titan/titan/global.h

    r28127 r28129  
    68096809        free(hypridlist), hypridlist = NULL;
    68106810
    6811         printf("gethypridtunerchoicesvalue value: %s\n",value);
    68126811        return value;
    68136812}
     
    68496848        free(start), start = NULL;
    68506849
    6851         printf("gethypridtunerchoicesvaluename value: %s\n",value);
    6852         return value;
    6853 }
    6854 
    6855 char* gethypridtuner()
    6856 {
    6857         char* hypridtuner = NULL, *value = NULL;
    6858 
    6859         hypridtuner = getconfig("hypridtuner", NULL);
    6860 
    6861         if(hypridtuner == NULL)
    6862         {
    6863                 err("NULL detect");
    6864                 return NULL;
    6865         }
    6866 
    6867         value = readsys(hypridtuner, 1);
    6868         if(value == NULL)
    6869         {
    6870                 err("NULL detect");
    6871                 return NULL;
    6872         }
    6873 
    68746850        return value;
    68756851}
     
    68796855        char* buf = NULL, *hypridtuner = NULL, *tmpstr = NULL;
    68806856        int ret = 0;
    6881 printf("1sethypridtuner dev %d to %s\n", dev, value);
     6857
    68826858        hypridtuner = getconfig("hypridtuner", NULL);
    68836859       
     
    68916867                }
    68926868        }
    6893 printf("2hypridtuner %s\n",hypridtuner);
     6869
    68946870        sprintf(buf, hypridtuner, dev);
    6895 printf("3sethypridtuner buf %s\n", buf);
    68966871        if(buf != NULL)
    68976872        {
    6898                 debug(100, "set %s to %s\n", buf, value);
    6899                 printf("4set %s to %s\n", buf, value);
    6900 //              tmpstr = oitoa(value);
    6901 //              printf("tmpstr %s", tmpstr);
    69026873                ret = writesys(buf, value, 0);
    69036874                free(tmpstr); tmpstr = NULL;
    69046875                return ret;
    69056876        }
    6906 printf("5sethypridtuner dev %d to %d\n", dev, value);
     6877
    69076878        return 0;
    69086879}
Note: See TracChangeset for help on using the changeset viewer.