Ticket #1330: 8psk.diff
File 8psk.diff, 6.4 KB (added by , 20 years ago) |
---|
-
libs/libmythtv/dvbtypes.cpp
old new 156 156 {"QAM_128",QAM_128}, 157 157 {"QAM_256",QAM_256}, 158 158 {"QPSK",QPSK}, 159 {"QPSK_8",QPSK_8}, 159 160 {NULL,QAM_AUTO}, 160 161 }; 161 162 … … 180 181 {"qam_128",QAM_128}, 181 182 {"qam_256",QAM_256}, 182 183 {"qpsk",QPSK}, 184 {"qpsk_8",QPSK_8}, 183 185 {"8vsb",VSB_8}, 184 186 {"16vsb",VSB_16}, 185 187 {NULL,QAM_AUTO}, … … 195 197 "qam_256", //QAM_256, 196 198 "auto", //QAM_AUTO, 197 199 "8vsb", //VSB_8, 198 "16vsb" //VSB_16 200 "16vsb", //VSB_16 201 "qpsk_8", //QPSK_8 199 202 }; 200 203 201 204 DVBParamHelper<fe_transmit_mode_t>::Table DVBTransmitMode::confTable[] = … … 315 318 p.frequency <= op.frequency + range && 316 319 p.inversion == op.inversion && 317 320 p.u.qpsk.symbol_rate == op.u.qpsk.symbol_rate && 321 p.u.qpsk.modulation == op.u.qpsk.modulation && 318 322 p.u.qpsk.fec_inner == op.u.qpsk.fec_inner; 319 323 } 320 324 … … 662 666 const QString& _diseqc_pos, 663 667 const QString& _lnb_lof_switch, 664 668 const QString& _lnb_lof_hi, 665 const QString& _lnb_lof_lo )669 const QString& _lnb_lof_lo, const QString &modulation) 666 670 { 667 671 bool ok = true; 668 672 … … 692 696 } 693 697 694 698 p.fec_inner = parseCodeRate(fec_inner, ok); 699 p.modulation = parseModulation(modulation, ok); 695 700 696 701 diseqc_type = _diseqc_type.toInt(); 697 702 diseqc_port = _diseqc_port.toInt(); … … 872 877 QString modulation = mod.lower(); 873 878 ok = true; 874 879 if ( modulation == "qpsk") return QPSK; 880 else if (modulation =="qpsk_8") return QPSK_8; 875 881 else if (modulation == "auto") return QAM_AUTO; 876 882 else if (modulation == "a") return QAM_AUTO; 877 883 else if (modulation =="qam_auto") return QAM_AUTO; … … 915 921 ok = tuning.parseQPSK( 916 922 frequency, inversion, symbolrate, fec, polarity, 917 923 dvb_diseqc_type, diseqc_port, diseqc_pos, 918 lnb_lof_switch, lnb_lof_hi, lnb_lof_lo );924 lnb_lof_switch, lnb_lof_hi, lnb_lof_lo, modulation); 919 925 else if (FE_QAM == type) 920 926 ok = tuning.parseQAM( 921 927 frequency, inversion, symbolrate, fec, modulation); … … 939 945 switch (mod) 940 946 { 941 947 case QPSK: return "QPSK"; 948 case QPSK_8: return "QPSK_8"; 942 949 case QAM_AUTO: return "Auto"; 943 950 case QAM_256: return "QAM-256"; 944 951 case QAM_128: return "QAM-128"; … … 957 964 switch (mod) 958 965 { 959 966 case QPSK: return "qpsk"; 967 case QPSK_8: return "qpsk_8"; 960 968 case QAM_AUTO: return "auto"; 961 969 case QAM_16: return "qam_16"; 962 970 case QAM_32: return "qam_32"; -
libs/libmythtv/scanwizardhelpers.h
old new 410 410 { 411 411 addSelection(QObject::tr("Auto"),"auto",true); 412 412 addSelection("QPSK","qpsk"); 413 addSelection("QPSK_8","qpsk"); 413 414 addSelection("QAM 16","qam_16"); 414 415 addSelection("QAM 32","qam_32"); 415 416 addSelection("QAM 64","qam_64"); … … 606 607 QString inversion() { return pinversion->getValue(); } 607 608 QString fec() { return pfec->getValue(); } 608 609 QString polarity() { return ppolarity->getValue(); } 610 QString modulation() { return pmodulation->getValue(); } 609 611 610 612 protected: 611 613 ScanFrequency *pfrequency; … … 613 615 ScanInversion *pinversion; 614 616 ScanFec *pfec; 615 617 ScanPolarity *ppolarity; 618 ScanModulation *pmodulation; 616 619 }; 617 620 618 621 class QAMPane : public HorizontalConfigurationGroup -
libs/libmythtv/dvbchannel.cpp
old new 488 488 case FE_QPSK: 489 489 symbol_rate = t.QPSKSymbolRate(); 490 490 491 if (!CheckModulation(t.params.u.qpsk.modulation)) 492 WARNING("Unsupported modulation parameter."); 493 491 494 if (!CheckCodeRate(t.params.u.qpsk.fec_inner)) 492 495 WARNING("Unsupported fec_inner parameter."); 493 496 break; … … 572 575 switch (modulation) 573 576 { 574 577 case QPSK: if (info.caps & FE_CAN_QPSK) return true; 578 case QPSK_8: if (info.caps & FE_CAN_QPSK_8) return true; 575 579 case QAM_16: if (info.caps & FE_CAN_QAM_16) return true; 576 580 case QAM_32: if (info.caps & FE_CAN_QAM_32) return true; 577 581 case QAM_64: if (info.caps & FE_CAN_QAM_64) return true; -
libs/libmythtv/scanwizard.cpp
old new 536 536 query.value(2).toString(), // diseqc_pos 537 537 query.value(3).toString(), // lnb_lof_switch 538 538 query.value(4).toString(), // lnb_lof_hi 539 query.value(5).toString() // lnb_lof_lo 539 query.value(5).toString(), // lnb_lof_lo 540 pane->modulation () 540 541 )) 541 542 fParseError = true; 542 543 } -
libs/libmythtv/dvbtypes.h
old new 379 379 const QString& pol, const QString& diseqc_type, 380 380 const QString& diseqc_port, const QString& diseqc_pos, 381 381 const QString& lnb_lof_switch, const QString& lnb_lof_hi, 382 const QString& lnb_lof_lo );382 const QString& lnb_lof_lo, const QString& modulation); 383 383 384 384 bool parseQAM(const TransportObject&); 385 385