Changeset 41085


Ignore:
Timestamp:
10/31/17 14:24:23 (6 years ago)
Author:
gost
Message:

[titan] extension signalstrength

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r41083 r41085  
    14731473        }
    14741474       
    1475 #ifdef ARM             
     1475#if DVB_API_VERSION >= 5
    14761476        struct dtv_property prop[1];
    14771477        prop[0].cmd = DTV_STAT_SIGNAL_STRENGTH;
     
    14801480        props.num = 1;
    14811481        ioctl(node->fd, FE_GET_PROPERTY, &props);
     1482       
    14821483        for(unsigned int i=0; i<prop[0].u.st.len; i++)
    14831484        {
     
    14921493                debug(200, "frontend signal = %02x", (signal * 100) / 0xffff);
    14931494        }
    1494         return signal;
    1495 #else   
     1495        if (!signal)
     1496                return signal;
     1497        // fallback to old DVB API
     1498#endif 
    14961499        ioctl(node->fd, FE_READ_SIGNAL_STRENGTH, &signal);
    14971500        debug(200, "frontend signal = %02x", (signal * 100) / 0xffff);
    14981501        return signal;
    1499 #endif
    15001502}
    15011503
Note: See TracChangeset for help on using the changeset viewer.