Changeset 41077 for titan/titan


Ignore:
Timestamp:
10/30/17 21:51:00 (6 years ago)
Author:
gost
Message:

fbc tuner test snr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r41076 r41077  
    13841384#if DVB_API_VERSION > 5 || DVB_API_VERSION == 5 && DVB_API_VERSION_MINOR >= 10
    13851385
     1386        int test1 = 0;
     1387        int test2 = 0;
    13861388        struct dtv_property prop[1];
    13871389        prop[0].cmd = DTV_STAT_CNR;
     
    13981400                for(unsigned int i=0; i<prop[0].u.st.len; i++)
    13991401                {
    1400                         if (prop[0].u.st.stat[i].scale == FE_SCALE_DECIBEL)
     1402                        if (prop[0].u.st.stat[i].scale == FE_SCALE_DECIBEL && test1 == 0)
     1403                        {
     1404                                test1 = 1;
    14011405                                signalqualitydb = prop[0].u.st.stat[i].svalue / 10;
    1402                         else if (prop[0].u.st.stat[i].scale == FE_SCALE_RELATIVE)
     1406                                printf("***** new snr signalqualitydb:%d\n", signalqualitydb);
     1407                        }
     1408                        else if (prop[0].u.st.stat[i].scale == FE_SCALE_RELATIVE && test2 == 0)
     1409                        {
     1410                                test2 = 1;
    14031411                                signalquality = prop[0].u.st.stat[i].svalue;
     1412                                printf("***** new snr signalquality:%d\n", signalquality);
     1413                        }
    14041414                }
    14051415        }
Note: See TracChangeset for help on using the changeset viewer.