Changeset 41368


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

test hd51... DVB-T Tuner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/frontenddev.h

    r41355 r41368  
    19431943        debug(200, "transponder:frequ=%d, inversion=%d, bandwidth=%d, hp=%d, lp=%d, modulation=%d transmission=%d guardinterval=%d hierarchy=%d system=%d (%s)", tpnode->frequency, tpnode->inversion, tpnode->symbolrate, tpnode->fec, tpnode->polarization, tpnode->modulation, tpnode->pilot, tpnode->rolloff, tpnode->system, tpnode->system, node->feshortname);
    19441944       
    1945         int system = tpnode->system;
    1946        
    1947         int hp = tpnode->fec; //fec = hp on DVBT
     1945        fe_delivery_system_t system = SYS_DVBT;
     1946       
     1947        int code_rate hp = tpnode->fec; //fec = hp on DVBT
    19481948        switch(hp)
    19491949        {
     
    20382038                default: hierarchy = HIERARCHY_AUTO; break;
    20392039        }
     2040       
     2041        int inversion = tpnode->inversion;
     2042        switch(inversion)
     2043        {
     2044                case T_Inversion_Off: inversion = INVERSION_OFF;
     2045                case T_Inversion_ON: inversion = INVERSION_ON;
     2046                default: inversion = INVERSION_AUTO; break;
     2047        }
    20402048
    20412049        int ret = 0;
     2050#ifndef ARM
    20422051        fediscard(node);
     2052#endif
    20432053
    20442054#if DVB_API_VERSION >= 5
     
    20552065                default: system = SYS_DVBT; break;
    20562066        }
     2067#else
     2068        switch(tpnode->system)
     2069        {
     2070                default:
     2071                case System_DVB_T: system = SYS_DVBT; break; //3
     2072                case System_DVB_T2: system = SYS_DVBT2; break; //16
     2073        }
    20572074#endif
    20582075
     
    20602077        p[1].cmd = DTV_DELIVERY_SYSTEM, p[1].u.data = system;
    20612078        p[2].cmd = DTV_FREQUENCY,       p[2].u.data = tpnode->frequency;
    2062         p[3].cmd = DTV_INVERSION,       p[3].u.data = (fe_spectral_inversion_t) tpnode->inversion;
     2079        p[3].cmd = DTV_INVERSION,       p[3].u.data = (fe_spectral_inversion_t) inversion;
    20632080        p[4].cmd = DTV_BANDWIDTH_HZ, p[4].u.data = bandwidth;
    2064         p[5].cmd = DTV_CODE_RATE_LP, p[5].u.data = lp;
    2065         p[6].cmd = DTV_CODE_RATE_HP, p[6].u.data = hp;
    2066         p[7].cmd = DTV_MODULATION, p[7].u.data = modulation;
    2067         p[8].cmd = DTV_TRANSMISSION_MODE,       p[8].u.data = transmission;
    2068         p[9].cmd = DTV_GUARD_INTERVAL, p[9].u.data = guardinterval;
    2069         p[10].cmd = DTV_HIERARCHY, p[10].u.data = hierarchy;
     2081        p[5].cmd = DTV_CODE_RATE_LP, p[5].u.data = (fe_code_rate_t) lp;
     2082        p[6].cmd = DTV_CODE_RATE_HP, p[6].u.data = (fe_code_rate_t) hp;
     2083        p[7].cmd = DTV_MODULATION, p[7].u.data = (fe_modulation_t) modulation;
     2084        p[8].cmd = DTV_TRANSMISSION_MODE,       p[8].u.data = (fe_transmit_mode_t) transmission;
     2085        p[9].cmd = DTV_GUARD_INTERVAL, p[9].u.data = (fe_guard_interval_t) guardinterval;
     2086        p[10].cmd = DTV_HIERARCHY, p[10].u.data = (fe_hierarchy_t) hierarchy;
    20702087        p[11].cmd = DTV_TUNE;
    20712088        cmdseq.num = 12;
Note: See TracChangeset for help on using the changeset viewer.