Changeset 40824


Ignore:
Timestamp:
08/26/17 21:52:15 (5 years ago)
Author:
gost
Message:

[titan] fix snr for some tuner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r40813 r40824  
    12431243                return 0;
    12441244        }
    1245        
    1246 #ifdef ARM
    1247 //#ifdef MIPSEL
    12481245        int signalquality = 0;
    12491246        int signalqualitydb = 0;
    1250        
     1247//#ifdef ARM
     1248//#ifdef MIPSEL
     1249#if DVB_API_VERSION > 5 || DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 10
     1250
    12511251        struct dtv_property prop[1];
    12521252        prop[0].cmd = DTV_STAT_CNR;
     
    12661266                        signalquality = prop[0].u.st.stat[i].svalue;
    12671267        }
     1268#endif 
    12681269        if(!signalquality && !signalqualitydb)
    12691270        {
     
    13061307        debug(200, "frontend snr = %02x", (signalquality * 100) / 0xffff);
    13071308        return signalquality;
    1308 #else   
    1309         ioctl(node->fd, FE_READ_SNR, &snr);
    1310         debug(200, "frontend snr = %02x", (snr * 100) / 0xffff);
    1311         return snr;
    1312 #endif
    1313        
    13141309}
    13151310
Note: See TracChangeset for help on using the changeset viewer.