Ignore:
Timestamp:
08/23/17 21:12:43 (6 years ago)
Author:
gost
Message:

[titan] add new dvb-t2 test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r40788 r40798  
    488488        //struct dvb_frontend_event ev;
    489489        fe_status_t status;
     490        fe_status_t status_m = 0;
    490491
    491492        int count = 0;
     
    505506#ifdef MIPSEL
    506507        timer = 2000;
    507 #endif
    508 #ifdef DREAMBOX
    509         timer = 4000;
    510508#endif
    511509
     
    521519                ioctl(node->fd, FE_READ_STATUS, &status);
    522520                if(status != 0)
    523                         debug(200, "status=%d, fe_lock=%d", status, FE_HAS_LOCK);
     521                {
     522                        if(status_m != status)
     523                        {
     524                                debug(200, "status=%d, fe_lock=%d", status, FE_HAS_LOCK);
     525                                status_m = status;
     526                        }
     527                }
    524528
    525529                if(errno == ERANGE)
     
    17001704       
    17011705        int hierarchy = tpnode->system; //system = hierarchy on DVBT
     1706       
     1707        if(tpnode->system == 1) //system = DVB-T2 then hierarchy = HIERARCHY_AUTO
     1708                hierarchy = 4;
     1709       
    17021710        //switch(guardinterval)
    17031711        switch(hierarchy)
     
    19841992                        //to do set voltage --> wenn der Tuner es kann
    19851993                        //fesetvoltage(tuner, SEC_VOLTAGE_13, 10);
    1986                         p[1].u.data = SYS_DVBT2;
     1994                        if(realname != NULL && ostrstr(realname, "DVB-T2") != NULL)
     1995                                p[1].u.data = SYS_DVBT2;
     1996                        else
     1997                                p[1].u.data = SYS_DVBT;
    19871998                        break;
    19881999                }
Note: See TracChangeset for help on using the changeset viewer.