Changeset 40736
- Timestamp:
- 08/07/17 00:03:35 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/frontenddev.h
r40735 r40736 1447 1447 } 1448 1448 1449 debug(200, " frequ=%d, inversion=%d, pilot=%d, rolloff=%d, fec=%d, sr=%d, modulation=%d, system=%d (%s)", node->feloffrequency, tpnode->inversion, pilot, rolloff, fec, tpnode->symbolrate, modulation, system, node->feshortname);1449 debug(200, "new dvbapi: frequ=%d, inversion=%d, pilot=%d, rolloff=%d, fec=%d, sr=%d, modulation=%d, system=%d (%s)", node->feloffrequency, tpnode->inversion, pilot, rolloff, fec, tpnode->symbolrate, modulation, system, node->feshortname); 1450 1450 #else 1451 1451 struct dvb_frontend_parameters tuneto; … … 1468 1468 tuneto.u.qpsk.fec_inner = fec; 1469 1469 1470 debug(200, " frequ=%d, inversion=%d, pilot=%d, rolloff=%d, fec=%d, sr=%d modulation=%d, system=%d (%s)", node->feloffrequency, inversion, tpnode->pilot, tpnode->rolloff, fec, tpnode->symbolrate, tpnode->modulation, tpnode->system, node->feshortname);1470 debug(200, "old dvbapi: frequ=%d, inversion=%d, pilot=%d, rolloff=%d, fec=%d, sr=%d modulation=%d, system=%d (%s)", node->feloffrequency, inversion, tpnode->pilot, tpnode->rolloff, fec, tpnode->symbolrate, tpnode->modulation, tpnode->system, node->feshortname); 1471 1471 #endif 1472 1472 … … 1556 1556 cmdseq.num = 8; 1557 1557 1558 debug(200, " frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d, system=%d (%s)", tpnode->frequency, tpnode->inversion, fec, tpnode->symbolrate, modulation, tpnode->system, node->feshortname);1558 debug(200, "new dvbapi: frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d, system=%d (%s)", tpnode->frequency, tpnode->inversion, fec, tpnode->symbolrate, modulation, tpnode->system, node->feshortname); 1559 1559 #else 1560 1560 struct dvb_frontend_parameters tuneto; … … 1566 1566 tuneto.u.qam.modulation = tpnode->modulation; 1567 1567 1568 debug(200, " frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d (%s)", tpnode->frequency, tpnode->inversion, fec, tpnode->symbolrate, modulation, node->feshortname);1568 debug(200, "old dvbapi: frequ=%d, inversion=%d, fec=%d, sr=%d, modulation=%d (%s)", tpnode->frequency, tpnode->inversion, fec, tpnode->symbolrate, modulation, node->feshortname); 1569 1569 #endif 1570 1570 … … 1590 1590 int fetunedvbt(struct dvbdev* node, struct transponder* tpnode) 1591 1591 { 1592 struct dvb_frontend_parameters tuneto;1593 1594 #if DVB_API_VERSION >= 51595 struct dtv_property p[12];1596 struct dtv_properties cmdseq;1597 cmdseq.props = p;1598 #endif1599 1600 1592 if(node == NULL || tpnode == NULL) 1601 1593 { … … 1603 1595 return 1; 1604 1596 } 1605 1597 1606 1598 int hp = tpnode->fec; //fec = hp on DVBT 1607 1599 switch(hp) … … 1680 1672 } 1681 1673 1682 tuneto.frequency = tpnode->frequency;1683 tuneto.inversion = tpnode->inversion;1684 tuneto.u.ofdm.bandwidth = bandwidth;1685 tuneto.u.ofdm.code_rate_HP = hp;1686 tuneto.u.ofdm.code_rate_LP = lp;1687 tuneto.u.ofdm.constellation = modulation;1688 tuneto.u.ofdm.transmission_mode = transmission;1689 tuneto.u.ofdm.guard_interval = guardinterval;1690 tuneto.u.ofdm.hierarchy_information = hierarchy;1691 1692 printf("frequ=%d, inversion=%d, modulation=%d system:%d (%s)\n", tpnode->frequency, tpnode->inversion, modulation, system, node->feshortname);1693 //debug(200, "frequ=%d, inversion=%d, modulation=%d system:%d (%s)", tpnode->frequency, tpnode->inversion, modulation, system, node->feshortname);1694 1695 1674 #if DVB_API_VERSION >= 5 1675 struct dtv_property p[12]; 1676 struct dtv_properties cmdseq; 1677 cmdseq.props = p; 1678 1696 1679 int system = tpnode->system; 1697 //switch(system) 1698 //{ 1699 // case 0: system = SYS_DVBT; break; 1700 // case 1: system = SYS_DVBT2; break; 1701 // default: system = SYS_DVBT2; break; 1702 //} 1703 printf("frequ=%d, inversion=%d, modulation=%d system:%d (%s)\n", tpnode->frequency, tpnode->inversion, modulation, system, node->feshortname); 1704 //debug(200, "frequ=%d, inversion=%d, modulation=%d system:%d (%s)", tpnode->frequency, tpnode->inversion, modulation, system, node->feshortname); 1680 1681 // suchlauf geht an nemesis mit system=0 1682 #if DREAMBOX 1683 switch(system) 1684 { 1685 case 0: system = SYS_DVBT; break; //3 1686 case 1: system = SYS_DVBT2; break; //16 1687 default: system = SYS_DVBT; break; 1688 } 1689 #endif 1690 1705 1691 p[0].cmd = DTV_CLEAR; 1706 //p[1].cmd = DTV_DELIVERY_SYSTEM, p[1].u.data = tpnode->system;1707 //p[1].cmd = DTV_DELIVERY_SYSTEM, p[1].u.data = SYS_DVBT2;1708 1692 p[1].cmd = DTV_DELIVERY_SYSTEM, p[1].u.data = system; 1709 1693 p[2].cmd = DTV_FREQUENCY, p[2].u.data = tpnode->frequency; … … 1718 1702 p[11].cmd = DTV_TUNE; 1719 1703 cmdseq.num = 12; 1704 1705 debug(200, "new dvbapi: 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, bandwidth, hp, lp, modulation, transmission, guardinterval, hierarchy, system, node->feshortname); 1706 1707 1708 #else 1709 struct dvb_frontend_parameters tuneto; 1710 1711 tuneto.frequency = tpnode->frequency; 1712 tuneto.inversion = tpnode->inversion; 1713 tuneto.u.ofdm.bandwidth = bandwidth; 1714 tuneto.u.ofdm.code_rate_HP = hp; 1715 tuneto.u.ofdm.code_rate_LP = lp; 1716 tuneto.u.ofdm.constellation = modulation; 1717 tuneto.u.ofdm.transmission_mode = transmission; 1718 tuneto.u.ofdm.guard_interval = guardinterval; 1719 tuneto.u.ofdm.hierarchy_information = hierarchy; 1720 1721 debug(200, "old dvbapi: 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, bandwidth, hp, lp, modulation, transmission, guardinterval, hierarchy, system, node->feshortname); 1722 1720 1723 #endif 1721 1724
Note: See TracChangeset
for help on using the changeset viewer.