Ticket #1945: bandstacked-lnb.patch
File bandstacked-lnb.patch, 4.3 KB (added by , 19 years ago) |
---|
-
diseqc.cpp
382 382 } 383 383 384 384 // update capture card to point to tree, or 0 if there is no tree 385 VERBOSE(VB_IMPORTANT, "diseqcid: "<<devid);385 //VERBOSE(VB_IMPORTANT, "diseqcid: "<<devid); 386 386 query0.prepare( 387 387 "UPDATE capturecard " 388 388 "SET diseqcid = :DEVID " … … 1809 1809 * \brief LNB Class. 1810 1810 */ 1811 1811 1812 const TypeTable DiSEqCDevLNB::LNBTypeTable[ 4] =1812 const TypeTable DiSEqCDevLNB::LNBTypeTable[5] = 1813 1813 { 1814 1814 { "fixed", kTypeFixed }, 1815 1815 { "voltage", kTypeVoltageControl }, 1816 1816 { "voltage_tone", kTypeVoltageAndToneControl }, 1817 { "bandstacked", kTypeBandstacked }, 1817 1818 { QString::null, kTypeVoltageAndToneControl }, 1818 1819 }; 1819 1820 … … 1943 1944 { 1944 1945 (void) tuning; 1945 1946 #ifdef USING_DVB 1946 if (kTypeVoltageAndToneControl == m_type) 1947 return (tuning.params.frequency > m_lof_switch); 1947 switch (m_type) 1948 { 1949 case kTypeVoltageAndToneControl: 1950 return (tuning.params.frequency > m_lof_switch); 1951 case kTypeBandstacked: 1952 return IsHorizontal(tuning); 1953 default: 1954 return false; 1955 } 1948 1956 #endif // USING_DVB 1949 1957 1950 1958 return false; -
diseqc.h
343 343 kTypeFixed = 0, 344 344 kTypeVoltageControl = 1, 345 345 kTypeVoltageAndToneControl = 2, 346 kTypeBandstacked = 3, 346 347 }; 347 348 void SetType(dvbdev_lnb_t type) { m_type = type; } 348 349 void SetLOFSwitch(uint lof_switch) { m_lof_switch = lof_switch; } … … 373 374 uint m_lof_hi; 374 375 uint m_lof_lo; 375 376 376 static const TypeTable LNBTypeTable[ 4];377 static const TypeTable LNBTypeTable[5]; 377 378 }; 378 379 379 380 #endif // _DISEQC_H_ -
diseqcsettings.cpp
472 472 DiSEqCDevLNB::kTypeVoltageControl, 0, 10750000, 0 }, 473 473 { DeviceTree::tr("C Band"), 474 474 DiSEqCDevLNB::kTypeVoltageControl, 0, 5150000, 0 }, 475 { DeviceTree::tr("DishPro Bandstacked"), 476 DiSEqCDevLNB::kTypeBandstacked, 0, 11250000, 14350000 }, 475 477 { QString::null, 476 478 DiSEqCDevLNB::kTypeVoltageControl, 0, 0, 0 }, 477 479 }; … … 539 541 addSelection(DeviceTree::tr("Universal (Voltage & Tone)"), 540 542 QString::number((uint) DiSEqCDevLNB:: 541 543 kTypeVoltageAndToneControl)); 544 addSelection(DeviceTree::tr("Bandstacked"), 545 QString::number((uint) DiSEqCDevLNB:: 546 kTypeBandstacked)); 542 547 } 543 548 544 549 virtual void load(void) … … 593 598 setLabel(DeviceTree::tr("LNB LOF Low (MHz)")); 594 599 QString help = DeviceTree::tr( 595 600 "This defines the offset the frequency coming " 596 "from the LNB will be in low setting."); 601 "from the LNB will be in low setting. For bandstacked " 602 "LNBs this is the vertical/right polarization band."); 597 603 setHelpText(help); 598 604 } 599 605 … … 621 627 setLabel(DeviceTree::tr("LNB LOF High (MHz)")); 622 628 QString help = DeviceTree::tr( 623 629 "This defines the offset the frequency coming from " 624 "the LNB will be in high setting."); 630 "the LNB will be in high setting. For bandstacked " 631 "LNBs this is the horizontal/left polarization band."); 625 632 setHelpText(help); 626 633 } 627 634 … … 709 716 m_lof_hi->setEnabled(true); 710 717 m_lof_lo->setEnabled(true); 711 718 break; 719 case DiSEqCDevLNB::kTypeBandstacked: 720 m_lof_switch->setEnabled(false); 721 m_lof_hi->setEnabled(true); 722 m_lof_lo->setEnabled(true); 723 break; 712 724 } 713 725 } 714 726 715 727 //////////////////////////////////////// DeviceTree 716 728 717 718 729 DeviceTree::DeviceTree(DiSEqCDevTree &tree) : m_tree(tree) 719 730 { 720 731 connect(this, SIGNAL(editButtonPressed(int)), SLOT(edit(void)));