2 #include <lib/dvb/dvb.h>
3 #include <lib/base/eerror.h>
9 #ifndef I2C_SLAVE_FORCE
10 #define I2C_SLAVE_FORCE 0x0706
13 #if HAVE_DVB_API_VERSION < 3
14 #include <ost/frontend.h>
16 #define QAM_AUTO (Modulation)6
17 #define TRANSMISSION_MODE_AUTO (TransmitMode)2
18 #define BANDWIDTH_AUTO (BandWidth)3
19 #define GUARD_INTERVAL_AUTO (GuardInterval)4
20 #define HIERARCHY_AUTO (Hierarchy)4
21 #define constellation Constellation
22 #define guard_interval guardInterval
23 #define hierarchy_information HierarchyInformation
24 #define code_rate_HP HP_CodeRate
25 #define code_rate_LP LP_CodeRate
27 #include <linux/dvb/frontend.h>
30 #include <dvbsi++/satellite_delivery_system_descriptor.h>
31 #include <dvbsi++/cable_delivery_system_descriptor.h>
32 #include <dvbsi++/terrestrial_delivery_system_descriptor.h>
34 void eDVBFrontendParametersSatellite::set(const SatelliteDeliverySystemDescriptor &descriptor)
36 frequency = descriptor.getFrequency() * 10;
37 symbol_rate = descriptor.getSymbolRate() * 100;
38 switch (descriptor.getPolarization())
41 polarisation = Polarisation::Horizontal;
44 polarisation = Polarisation::Vertical;
47 polarisation = Polarisation::CircularLeft;
50 polarisation = Polarisation::CircularRight;
53 switch (descriptor.getFecInner())
77 inversion = Inversion::Unknown;
78 orbital_position = ((descriptor.getOrbitalPosition() >> 12) & 0xF) * 1000;
79 orbital_position += ((descriptor.getOrbitalPosition() >> 8) & 0xF) * 100;
80 orbital_position += ((descriptor.getOrbitalPosition() >> 4) & 0xF) * 10;
81 orbital_position += ((descriptor.getOrbitalPosition()) & 0xF);
82 if (orbital_position && (!descriptor.getWestEastFlag()))
83 orbital_position = 3600 - orbital_position;
86 void eDVBFrontendParametersCable::set(const CableDeliverySystemDescriptor &descriptor)
91 void eDVBFrontendParametersTerrestrial::set(const TerrestrialDeliverySystemDescriptor &)
96 eDVBFrontendParameters::eDVBFrontendParameters(): m_type(-1)
100 DEFINE_REF(eDVBFrontendParameters);
102 RESULT eDVBFrontendParameters::getSystem(int &t) const
110 RESULT eDVBFrontendParameters::getDVBS(eDVBFrontendParametersSatellite &p) const
112 if (m_type != iDVBFrontend::feSatellite)
118 RESULT eDVBFrontendParameters::getDVBC(eDVBFrontendParametersCable &p) const
120 if (m_type != iDVBFrontend::feCable)
126 RESULT eDVBFrontendParameters::getDVBT(eDVBFrontendParametersTerrestrial &p) const
128 if (m_type != iDVBFrontend::feTerrestrial)
134 RESULT eDVBFrontendParameters::setDVBS(const eDVBFrontendParametersSatellite &p)
137 m_type = iDVBFrontend::feSatellite;
141 RESULT eDVBFrontendParameters::setDVBC(const eDVBFrontendParametersCable &p)
144 m_type = iDVBFrontend::feCable;
148 RESULT eDVBFrontendParameters::setDVBT(const eDVBFrontendParametersTerrestrial &p)
151 m_type = iDVBFrontend::feTerrestrial;
155 RESULT eDVBFrontendParameters::calculateDifference(const iDVBFrontendParameters *parm, int &diff) const
160 if (parm->getSystem(type))
164 diff = 1<<30; // big difference
170 case iDVBFrontend::feSatellite:
172 eDVBFrontendParametersSatellite osat;
173 if (parm->getDVBS(osat))
176 if (sat.orbital_position != osat.orbital_position)
178 else if (sat.polarisation != osat.polarisation)
181 diff = abs(sat.frequency - osat.frequency);
184 case iDVBFrontend::feCable:
185 case iDVBFrontend::feTerrestrial:
192 RESULT eDVBFrontendParameters::getHash(unsigned long &hash) const
196 case iDVBFrontend::feSatellite:
198 hash = (sat.orbital_position << 16);
199 hash |= ((sat.frequency/1000)&0xFFFF)|((sat.polarisation&1) << 15);
202 case iDVBFrontend::feCable:
203 case iDVBFrontend::feTerrestrial:
209 DEFINE_REF(eDVBFrontend);
211 eDVBFrontend::eDVBFrontend(int adap, int fe, int &ok): m_type(-1), m_fe(fe), m_curVoltage(-1)
213 #if HAVE_DVB_API_VERSION < 3
214 char sec_filename[128];
223 #if HAVE_DVB_API_VERSION < 3
224 sprintf(sec_filename, "/dev/dvb/card%d/sec%d", adap, fe);
225 m_secfd = ::open(sec_filename, O_RDWR);
228 eWarning("failed! (%s) %m", sec_filename);
232 FrontendInfo fe_info;
233 sprintf(filename, "/dev/dvb/card%d/frontend%d", adap, fe);
235 dvb_frontend_info fe_info;
236 sprintf(filename, "/dev/dvb/adapter%d/frontend%d", adap, fe);
238 eDebug("opening frontend.");
239 m_fd = ::open(filename, O_RDWR|O_NONBLOCK);
242 eWarning("failed! (%s) %m", filename);
247 result = ::ioctl(m_fd, FE_GET_INFO, &fe_info);
250 eWarning("ioctl FE_GET_INFO failed");
257 switch (fe_info.type)
260 m_type = feSatellite;
266 m_type = feTerrestrial;
269 eWarning("unknown frontend type.");
275 eDebug("detected %s frontend", "satellite\0cable\0 terrestrial"+fe_info.type*10);
278 m_sn = new eSocketNotifier(eApp, m_fd, eSocketNotifier::Read);
279 CONNECT(m_sn->activated, eDVBFrontend::feEvent);
282 m_timeout = new eTimer(eApp);
283 CONNECT(m_timeout->timeout, eDVBFrontend::timeout);
285 m_tuneTimer = new eTimer(eApp);
286 CONNECT(m_tuneTimer->timeout, eDVBFrontend::tuneLoop);
288 int entries = sizeof(m_data) / sizeof(int);
289 for (int i=0; i<entries; ++i)
292 // m_data[7] = !m_fe;
294 // eDebug("m_data[7] = %d %d", m_data[7], m_fe);
299 eDVBFrontend::~eDVBFrontend()
309 void eDVBFrontend::feEvent(int w)
313 #if HAVE_DVB_API_VERSION < 3
316 dvb_frontend_event event;
320 res = ::ioctl(m_fd, FE_GET_EVENT, &event);
322 if (res && (errno == EAGAIN))
327 eWarning("FE_GET_EVENT failed! %m");
334 #if HAVE_DVB_API_VERSION < 3
335 if (event.type == FE_COMPLETION_EV)
337 eDebug("(%d)fe event: status %x, inversion %s", m_fe, event.status, (event.parameters.inversion == INVERSION_ON) ? "on" : "off");
338 if (event.status & FE_HAS_LOCK)
348 state = stateLostLock;
350 if (m_state != stateLostLock)
351 eDebug("FIXME: we lost lock, so we might have to retune.");
354 if (m_state != state)
357 m_stateChanged(this);
362 void eDVBFrontend::timeout()
365 if (m_state == stateTuning)
368 eDebug("DVBFrontend: timeout");
369 if (m_state != state)
372 m_stateChanged(this);
379 #ifndef FP_IOCTL_GET_ID
380 #define FP_IOCTL_GET_ID 0
382 int eDVBFrontend::readInputpower()
384 int power=m_fe; // this is needed for read inputpower from the correct tuner !
386 // open front prozessor
387 int fp=::open("/dev/dbox/fp0", O_RDWR);
390 eDebug("couldn't open fp");
393 static bool old_fp = (::ioctl(fp, FP_IOCTL_GET_ID) < 0);
394 if ( ioctl( fp, old_fp ? 9 : 0x100, &power ) < 0 )
396 eDebug("FP_IOCTL_GET_LNB_CURRENT failed (%m)");
404 bool eDVBFrontend::setSecSequencePos(int steps)
406 eDebug("set sequence pos %d", steps);
411 if (m_sec_sequence.current() != m_sec_sequence.end())
412 ++m_sec_sequence.current();
417 if (m_sec_sequence.current() != m_sec_sequence.begin() && m_sec_sequence.current() != m_sec_sequence.end())
418 --m_sec_sequence.current();
424 void eDVBFrontend::tuneLoop() // called by m_tuneTimer
427 if ( m_sec_sequence && m_sec_sequence.current() != m_sec_sequence.end() )
429 switch (m_sec_sequence.current()->cmd)
431 case eSecCommand::SLEEP:
432 delay = m_sec_sequence.current()++->msec;
433 eDebug("[SEC] sleep %dms", delay);
435 case eSecCommand::GOTO:
436 if ( !setSecSequencePos(m_sec_sequence.current()->steps) )
437 ++m_sec_sequence.current();
439 case eSecCommand::SET_VOLTAGE:
440 int voltage = m_sec_sequence.current()++->voltage;
441 eDebug("[SEC] setVoltage %d", voltage);
444 case eSecCommand::SET_TONE:
445 eDebug("[SEC] setTone %d", m_sec_sequence.current()->tone);
446 setTone(m_sec_sequence.current()++->tone);
448 case eSecCommand::SEND_DISEQC:
449 sendDiseqc(m_sec_sequence.current()->diseqc);
450 eDebugNoNewLine("[SEC] sendDiseqc: ");
451 for (int i=0; i < m_sec_sequence.current()->diseqc.len; ++i)
452 eDebugNoNewLine("%02x", m_sec_sequence.current()->diseqc.data[i]);
454 ++m_sec_sequence.current();
456 case eSecCommand::SEND_TONEBURST:
457 eDebug("[SEC] sendToneburst: %d", m_sec_sequence.current()->toneburst);
458 sendToneburst(m_sec_sequence.current()++->toneburst);
460 case eSecCommand::SET_FRONTEND:
461 eDebug("[SEC] setFrontend");
463 ++m_sec_sequence.current();
465 case eSecCommand::MEASURE_IDLE_INPUTPOWER:
467 int idx = m_sec_sequence.current()++->val;
468 if ( idx == 0 || idx == 1 )
470 m_idleInputpower[idx] = readInputpower();
471 eDebug("[SEC] idleInputpower[%d] is %d", idx, m_idleInputpower[idx]);
474 eDebug("[SEC] idleInputpower measure index(%d) out of bound !!!", idx);
477 case eSecCommand::MEASURE_RUNNING_INPUTPOWER:
478 m_runningInputpower = readInputpower();
479 eDebug("[SEC] runningInputpower is %d", m_runningInputpower);
480 ++m_sec_sequence.current();
482 case eSecCommand::SET_TIMEOUT:
483 m_timeoutCount = m_sec_sequence.current()++->val;
484 eDebug("[SEC] set timeout %d", m_timeoutCount);
486 case eSecCommand::UPDATE_CURRENT_ROTORPARAMS:
487 m_data[5] = m_data[3];
488 m_data[6] = m_data[4];
489 eDebug("[SEC] update current rotorparams %d %04x %d", m_timeoutCount, m_data[5], m_data[6]);
490 ++m_sec_sequence.current();
492 case eSecCommand::IF_TIMEOUT_GOTO:
495 eDebug("[SEC] rotor timout");
496 m_sec->setRotorMoving(false);
497 setSecSequencePos(m_sec_sequence.current()->steps);
500 ++m_sec_sequence.current();
502 case eSecCommand::SET_POWER_LIMITING_MODE:
505 ::open("/dev/i2c/1", O_RDWR) :
506 ::open("/dev/i2c/0", O_RDWR);
508 unsigned char data[2];
509 ::ioctl(fd, I2C_SLAVE_FORCE, 0x10 >> 1);
510 if(::read(fd, data, 1) != 1)
511 eDebug("[SEC] error read lnbp (%m)");
512 if ( m_sec_sequence.current()->mode == eSecCommand::modeStatic )
514 data[0] |= 0x90; // enable static current limiting
515 eDebug("[SEC] set static current limiting");
519 data[0] &= ~0x90; // enable dynamic current limiting
520 eDebug("[SEC] set dynamic current limiting");
522 if(::write(fd, data, 1) != 1)
523 eDebug("[SEC] error write lnbp (%m)");
525 ++m_sec_sequence.current();
528 case eSecCommand::IF_IDLE_INPUTPOWER_AVAIL_GOTO:
529 if (m_idleInputpower[0] && m_idleInputpower[1] && setSecSequencePos(m_sec_sequence.current()->steps))
531 ++m_sec_sequence.current();
533 case eSecCommand::IF_INPUTPOWER_DELTA_GOTO:
535 int idleInputpower = m_idleInputpower[m_curVoltage == iDVBFrontend::voltage13 ? 0 : 1];
536 eSecCommand::rotor &cmd = m_sec_sequence.current()->measure;
537 const char *txt = cmd.direction ? "running" : "stopped";
538 eDebug("[SEC] waiting for rotor %s %d, idle %d, delta %d",
543 if ( (cmd.direction && abs(m_runningInputpower - idleInputpower) >= cmd.deltaA)
544 || (!cmd.direction && abs(m_runningInputpower - idleInputpower) <= cmd.deltaA) )
547 eDebug("[SEC] rotor %s step %d ok", txt, cmd.okcount);
548 if ( cmd.okcount > 6 )
550 m_sec->setRotorMoving(cmd.direction);
551 eDebug("[SEC] rotor is %s", txt);
552 if (setSecSequencePos(cmd.steps))
558 eDebug("[SEC] rotor not %s... reset counter.. increase timeout", txt);
562 ++m_sec_sequence.current();
565 case eSecCommand::IF_VOLTAGE_GOTO:
567 eSecCommand::pair &compare = m_sec_sequence.current()->compare;
568 if ( compare.voltage == m_curVoltage && setSecSequencePos(compare.steps) )
570 ++m_sec_sequence.current();
574 ++m_sec_sequence.current();
575 eDebug("[SEC] unhandled sec command");
577 m_tuneTimer->start(delay,true);
581 void eDVBFrontend::setFrontend()
583 eDebug("setting frontend..\n");
584 if (ioctl(m_fd, FE_SET_FRONTEND, &parm) == -1)
586 perror("FE_SET_FRONTEND failed");
590 if (m_state != stateTuning)
593 m_state = stateTuning;
594 m_stateChanged(this);
596 m_timeout->start(5000, 1); // 5 sec timeout. TODO: symbolrate dependent
599 RESULT eDVBFrontend::getFrontendType(int &t)
607 RESULT eDVBFrontend::tune(const iDVBFrontendParameters &where)
609 eDebug("(%d)tune", m_fe);
616 m_sec_sequence.clear();
623 eDVBFrontendParametersSatellite feparm;
624 if (where.getDVBS(feparm))
626 eDebug("no dvbs data!");
631 eWarning("no SEC module active!");
635 res = m_sec->prepare(*this, parm, feparm, 1 << m_fe);
638 #if HAVE_DVB_API_VERSION < 3
639 eDebug("tuning to %d mhz", parm.Frequency/1000);
641 eDebug("tuning to %d mhz", parm.frequency/1000);
647 #if HAVE_DVB_API_VERSION >= 3
648 eDVBFrontendParametersCable feparm;
649 if (where.getDVBC(feparm))
651 #if HAVE_DVB_API_VERSION < 3
652 parm.Frequency = feparm.frequency * 1000;
653 parm.u.qam.SymbolRate = feparm.symbol_rate;
655 parm.frequency = feparm.frequency * 1000;
656 parm.u.qam.symbol_rate = feparm.symbol_rate;
659 switch (feparm.modulation)
661 case eDVBFrontendParametersCable::Modulation::QAM16:
664 case eDVBFrontendParametersCable::Modulation::QAM32:
667 case eDVBFrontendParametersCable::Modulation::QAM64:
670 case eDVBFrontendParametersCable::Modulation::QAM128:
673 case eDVBFrontendParametersCable::Modulation::QAM256:
676 case eDVBFrontendParametersCable::Modulation::Auto:
680 #if HAVE_DVB_API_VERSION < 3
681 parm.u.qam.QAM = mod;
683 parm.u.qam.modulation = mod;
685 switch (feparm.inversion)
687 case eDVBFrontendParametersCable::Inversion::On:
688 #if HAVE_DVB_API_VERSION < 3
695 case eDVBFrontendParametersCable::Inversion::Off:
696 #if HAVE_DVB_API_VERSION < 3
703 case eDVBFrontendParametersCable::Inversion::Unknown:
704 #if HAVE_DVB_API_VERSION < 3
713 fe_code_rate_t fec_inner;
714 switch (feparm.fec_inner)
716 case eDVBFrontendParametersCable::FEC::fNone:
717 fec_inner = FEC_NONE;
719 case eDVBFrontendParametersCable::FEC::f1_2:
722 case eDVBFrontendParametersCable::FEC::f2_3:
725 case eDVBFrontendParametersCable::FEC::f3_4:
728 case eDVBFrontendParametersCable::FEC::f4_5:
731 case eDVBFrontendParametersCable::FEC::f5_6:
734 case eDVBFrontendParametersCable::FEC::f6_7:
737 case eDVBFrontendParametersCable::FEC::f7_8:
740 case eDVBFrontendParametersCable::FEC::f8_9:
743 case eDVBFrontendParametersCable::FEC::fAuto:
744 fec_inner = FEC_AUTO;
747 #if HAVE_DVB_API_VERSION < 3
748 parm.u.qam.FEC_inner = fec_inner;
750 parm.u.qam.fec_inner = fec_inner;
753 eFatal("Old API not fully supported");
759 eDVBFrontendParametersTerrestrial feparm;
760 if (where.getDVBT(feparm))
762 eDebug("no -T data");
765 #if HAVE_DVB_API_VERSION < 3
766 parm.Frequency = feparm.frequency;
768 parm.frequency = feparm.frequency;
771 switch (feparm.bandwidth)
773 case eDVBFrontendParametersTerrestrial::Bandwidth::Bw8MHz:
774 #if HAVE_DVB_API_VERSION < 3
775 parm.u.ofdm.bandWidth =
777 parm.u.ofdm.bandwidth =
781 case eDVBFrontendParametersTerrestrial::Bandwidth::Bw7MHz:
782 #if HAVE_DVB_API_VERSION < 3
783 parm.u.ofdm.bandWidth =
785 parm.u.ofdm.bandwidth =
789 case eDVBFrontendParametersTerrestrial::Bandwidth::Bw6MHz:
790 #if HAVE_DVB_API_VERSION < 3
791 parm.u.ofdm.bandWidth =
793 parm.u.ofdm.bandwidth =
797 case eDVBFrontendParametersTerrestrial::Bandwidth::BwAuto:
798 #if HAVE_DVB_API_VERSION < 3
799 parm.u.ofdm.bandWidth =
801 parm.u.ofdm.bandwidth =
806 eWarning("invalid OFDM bandwith");
810 parm.u.ofdm.code_rate_HP = FEC_AUTO;
811 parm.u.ofdm.code_rate_LP = FEC_AUTO;
813 switch (feparm.modulation)
815 case eDVBFrontendParametersTerrestrial::Modulation::QPSK:
816 parm.u.ofdm.constellation = QPSK;
818 case eDVBFrontendParametersTerrestrial::Modulation::QAM16:
819 parm.u.ofdm.constellation = QAM_16;
821 case eDVBFrontendParametersTerrestrial::Modulation::Auto:
822 parm.u.ofdm.constellation = QAM_AUTO;
826 switch (feparm.transmission_mode)
828 case eDVBFrontendParametersTerrestrial::TransmissionMode::TM2k:
829 #if HAVE_DVB_API_VERSION < 3
830 parm.u.ofdm.TransmissionMode =
832 parm.u.ofdm.transmission_mode =
834 TRANSMISSION_MODE_2K;
836 case eDVBFrontendParametersTerrestrial::TransmissionMode::TM8k:
837 #if HAVE_DVB_API_VERSION < 3
838 parm.u.ofdm.TransmissionMode =
840 parm.u.ofdm.transmission_mode =
842 TRANSMISSION_MODE_8K;
844 case eDVBFrontendParametersTerrestrial::TransmissionMode::TMAuto:
845 #if HAVE_DVB_API_VERSION < 3
846 parm.u.ofdm.TransmissionMode =
848 parm.u.ofdm.transmission_mode =
850 TRANSMISSION_MODE_AUTO;
854 parm.u.ofdm.guard_interval = GUARD_INTERVAL_AUTO;
855 parm.u.ofdm.hierarchy_information = HIERARCHY_AUTO;
856 #if HAVE_DVB_API_VERSION < 3
866 m_sec_sequence.push_back( eSecCommand(eSecCommand::SET_FRONTEND) );
867 m_tuneTimer->start(0,true);
868 m_sec_sequence.current() = m_sec_sequence.begin();
873 RESULT eDVBFrontend::connectStateChange(const Slot1<void,iDVBFrontend*> &stateChange, ePtr<eConnection> &connection)
875 connection = new eConnection(this, m_stateChanged.connect(stateChange));
879 RESULT eDVBFrontend::setVoltage(int voltage)
881 #if HAVE_DVB_API_VERSION < 3
884 fe_sec_voltage_t vlt;
887 m_curVoltage=voltage;
891 vlt = SEC_VOLTAGE_OFF;
894 vlt = SEC_VOLTAGE_13;
897 vlt = SEC_VOLTAGE_18;
902 #if HAVE_DVB_API_VERSION < 3
903 return ::ioctl(m_secfd, SEC_SET_VOLTAGE, vlt);
905 return ::ioctl(m_fd, FE_SET_VOLTAGE, vlt);
909 RESULT eDVBFrontend::getState(int &state)
915 RESULT eDVBFrontend::setTone(int t)
917 #if HAVE_DVB_API_VERSION < 3
920 fe_sec_tone_mode_t tone;
934 #if HAVE_DVB_API_VERSION < 3
935 return ::ioctl(m_secfd, SEC_SET_TONE, tone);
937 return ::ioctl(m_fd, FE_SET_TONE, tone);
941 #if HAVE_DVB_API_VERSION < 3 && !defined(SEC_DISEQC_SEND_MASTER_CMD)
942 #define SEC_DISEQC_SEND_MASTER_CMD _IOW('o', 97, struct secCommand *)
945 RESULT eDVBFrontend::sendDiseqc(const eDVBDiseqcCommand &diseqc)
947 #if HAVE_DVB_API_VERSION < 3
948 struct secCommand cmd;
949 cmd.type = SEC_CMDTYPE_DISEQC_RAW;
950 cmd.u.diseqc.cmdtype = diseqc.data[0];
951 cmd.u.diseqc.addr = diseqc.data[1];
952 cmd.u.diseqc.cmd = diseqc.data[2];
953 cmd.u.diseqc.numParams = diseqc.len-3;
954 memcpy(cmd.u.diseqc.params, diseqc.data+3, diseqc.len-3);
955 if (::ioctl(m_secfd, SEC_DISEQC_SEND_MASTER_CMD, &cmd))
957 struct dvb_diseqc_master_cmd cmd;
958 memcpy(cmd.msg, diseqc.data, diseqc.len);
959 cmd.msg_len = diseqc.len;
960 if (::ioctl(m_fd, FE_DISEQC_SEND_MASTER_CMD, &cmd))
966 #if HAVE_DVB_API_VERSION < 3 && !defined(SEC_DISEQC_SEND_BURST)
967 #define SEC_DISEQC_SEND_BURST _IO('o', 96)
969 RESULT eDVBFrontend::sendToneburst(int burst)
971 #if HAVE_DVB_API_VERSION < 3
972 secMiniCmd cmd = SEC_MINI_NONE;
973 if ( burst == eDVBSatelliteDiseqcParameters::A )
975 else if ( burst == eDVBSatelliteDiseqcParameters::B )
977 if (::ioctl(m_secfd, SEC_DISEQC_SEND_BURST, cmd))
983 RESULT eDVBFrontend::setSEC(iDVBSatelliteEquipmentControl *sec)
989 RESULT eDVBFrontend::setSecSequence(const eSecCommandList &list)
991 m_sec_sequence = list;
995 RESULT eDVBFrontend::getData(int num, int &data)
997 if ( num < (int)(sizeof(m_data)/sizeof(int)) )
1005 RESULT eDVBFrontend::setData(int num, int val)
1007 if ( num < (int)(sizeof(m_data)/sizeof(int)) )
1015 int eDVBFrontend::isCompatibleWith(ePtr<iDVBFrontendParameters> &feparm)
1018 if (feparm->getSystem(type) || type != m_type)
1021 if (m_type == eDVBFrontend::feSatellite)
1024 eDVBFrontendParametersSatellite sat_parm;
1025 ASSERT(!feparm->getDVBS(sat_parm));
1026 return m_sec->canTune(sat_parm, this, 1 << m_fe);