Changeset 10801


Ignore:
Timestamp:
10/29/11 03:34:06 (11 years ago)
Author:
nit
Message:

[titan] change fec9 to fec11 if system=1 and dvbapi5 used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r10791 r10801  
    11271127
    11281128        //convert transponderlist for dvbapi5
     1129        int fec = tpnode->fec;
    11291130        int system = tpnode->system;
    11301131        if(system == 0) system = SYS_DVBS;
    1131         if(system == 1) system = SYS_DVBS2;
     1132        if(system == 1)
     1133        {
     1134                system = SYS_DVBS2;
     1135                if(fec == 9) fec = 11;
     1136        }
    11321137
    11331138        int modulation = tpnode->modulation;
     
    11421147        p[3].cmd = DTV_MODULATION,      p[3].u.data = modulation;
    11431148        p[4].cmd = DTV_SYMBOL_RATE,     p[4].u.data = tpnode->symbolrate;
    1144         p[5].cmd = DTV_INNER_FEC,       p[5].u.data = tpnode->fec;
     1149        p[5].cmd = DTV_INNER_FEC,       p[5].u.data = fec;
    11451150        p[6].cmd = DTV_INVERSION,       p[6].u.data = (fe_spectral_inversion_t) tpnode->inversion;
    11461151        if(system == SYS_DVBS2)
     
    11571162        }
    11581163
    1159         debug(200, "frequ=%d, inversion=%d, pilot=%d, rolloff=%d, fec=%d, sr=%d, modulation=%d, system=%d", node->feloffrequency, tpnode->inversion, tpnode->pilot, tpnode->rolloff, tpnode->fec, tpnode->symbolrate, modulation, system);
     1164        debug(200, "frequ=%d, inversion=%d, pilot=%d, rolloff=%d, fec=%d, sr=%d, modulation=%d, system=%d", node->feloffrequency, tpnode->inversion, tpnode->pilot, tpnode->rolloff, fec, tpnode->symbolrate, modulation, system);
    11601165#else
    11611166        struct dvb_frontend_parameters tuneto;
Note: See TracChangeset for help on using the changeset viewer.