MythTV  master
Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
DVBChannel Class Reference

Provides interface to the tuning hardware when using DVB drivers. More...

#include <dvbchannel.h>

Inheritance diagram for DVBChannel:
Inheritance graph
[legend]
Collaboration diagram for DVBChannel:
Collaboration graph
[legend]

Public Member Functions

 DVBChannel (const QString &device, TVRec *parent=nullptr)
 
 ~DVBChannel ()
 
bool Open (void) override
 Opens the channel changing hardware for use. More...
 
void Close (void) override
 Closes the channel changing hardware to use. More...
 
bool Init (QString &startchannel, bool setchan) override
 
void SetPMT (const ProgramMapTable *)
 Tells the Conditional Access Module which streams we wish to decode. More...
 
void SetTimeOffset (double offset)
 Tells the Conditional Access Module the offset from the computers utc time to dvb time. More...
 
void SetSlowTuning (uint how_slow_in_ms)
 
bool IsOpen (void) const override
 Reports whether channel is already open. More...
 
int GetFd (void) const override
 Returns file descriptor, -1 if it does not exist. More...
 
bool IsTuningParamsProbeSupported (void) const
 Returns true iff tuning info probing is working. More...
 
QString GetDevice (void) const override
 Returns String representing device, useful for debugging. More...
 
QString GetCardNum (void) const
 Returns DVB device number, used to construct filenames for DVB devices. More...
 
QString GetFrontendName (void) const
 Returns frontend name as reported by driver. More...
 
bool IsMaster (void) const override
 Returns true if this is the first of a number of multi-rec devs. More...
 
bool HasCRCBug (void) const
 Returns true iff we have a faulty DVB driver that munges PMT. More...
 
uint GetMinSignalMonitorDelay (void) const
 
const DiSEqCDevRotorGetRotor (void) const
 Returns rotor object if it exists, nullptr otherwise. More...
 
bool HasLock (bool *ok=nullptr) const
 Returns true iff we have a signal carrier lock. More...
 
double GetSignalStrength (bool *ok=nullptr) const
 Returns signal strength in the range [0.0..1.0] (non-calibrated). More...
 
double GetSNR (bool *ok=nullptr) const
 Returns signal/noise in the range [0..1.0]. More...
 
double GetBitErrorRate (bool *ok=nullptr) const
 Returns # of corrected bits since last call. First call undefined. More...
 
double GetUncorrectedBlockCount (bool *ok=nullptr) const
 Returns # of uncorrected blocks since last call. First call undefined. More...
 
bool SwitchToInput (int newcapchannel, bool setstarting)
 
bool Tune (const DTVMultiplex &tuning) override
 This performs the actual frequency tuning and in some cases input switching. More...
 
bool Tune (const DTVMultiplex &tuning, bool force_reset=false, bool same_input=false)
 Tunes the card to a frequency but does not deal with PIDs. More...
 
bool Retune (void) override
 
bool ProbeTuningParams (DTVMultiplex &tuning) const
 Fetches DTVMultiplex params from driver. More...
 
virtual bool Tune (const DTVMultiplex &tuning)=0
 This performs the actual frequency tuning and in some cases input switching. More...
 
virtual bool Tune (const IPTVTuningData &, bool)
 Performs IPTV Tuning. Only implemented by IPTVChannel. More...
 
virtual bool Tune (const QString &)
 Leave it up to the implementation to map the channnum appropriately. More...
 
bool Tune (const QString &freqid, int finetune) override
 This tunes on the frequency Identification parameter for hardware that supports it. More...
 
virtual bool Tune (uint64_t frequency)
 
- Public Member Functions inherited from DTVChannel
 DTVChannel (TVRec *parent)
 
virtual ~DTVChannel ()
 
bool SetChannelByString (const QString &chan) override
 
void SetFormat (const QString &format) override
 
QString GetFormat (void)
 
virtual bool TuneMultiplex (uint mplexid, QString inputname)
 To be used by the channel scanner and possibly the EIT scanner. More...
 
virtual bool Tune (const IPTVTuningData &, bool)
 Performs IPTV Tuning. Only implemented by IPTVChannel. More...
 
virtual bool Tune (const QString &)
 Leave it up to the implementation to map the channnum appropriately. More...
 
virtual bool EnterPowerSavingMode (void)
 Enters power saving mode if the card supports it. More...
 
bool Tune (const QString &freqid, int finetune) override
 This tunes on the frequency Identification parameter for hardware that supports it. More...
 
virtual bool Tune (uint64_t frequency)
 
int GetProgramNumber (void) const
 Returns program number in PAT, -1 if unknown. More...
 
uint GetMajorChannel (void) const
 Returns major channel, 0 if unknown. More...
 
uint GetMinorChannel (void) const
 Returns minor channel, 0 if unknown. More...
 
uint GetOriginalNetworkID (void) const
 Returns DVB original_network_id, 0 if unknown. More...
 
uint GetTransportID (void) const
 Returns DVB transport_stream_id, 0 if unknown. More...
 
QString GetSIStandard (void) const
 Returns PSIP table standard: MPEG, DVB, ATSC, or OpenCable. More...
 
QString GetSuggestedTuningMode (bool is_live_tv) const
 Returns suggested tuning mode: "mpeg", "dvb", or "atsc". More...
 
QString GetTuningMode (void) const
 Returns tuning mode last set by SetTuningMode(). More...
 
virtual vector< DTVTunerTypeGetTunerTypes (void) const
 Returns a vector of supported tuning types. More...
 
void GetCachedPids (pid_cache_t &pid_cache) const
 Returns cached MPEG PIDs for last tuned channel. More...
 
void RegisterForMaster (const QString &key)
 
void DeregisterForMaster (const QString &key)
 
virtual bool IsPIDTuningSupported (void) const
 
virtual bool IsIPTV (void) const
 
bool HasGeneratedPAT (void) const
 
bool HasGeneratedPMT (void) const
 
const ProgramAssociationTableGetGeneratedPAT (void) const
 
const ProgramMapTableGetGeneratedPMT (void) const
 
void SetTuningMode (const QString &tuningmode)
 Sets tuning mode: "mpeg", "dvb", "atsc", etc. More...
 
void SaveCachedPids (const pid_cache_t &pid_cache) const
 Saves MPEG PIDs to cache to database. More...
 
- Public Member Functions inherited from ChannelBase
 ChannelBase (TVRec *parent)
 
virtual ~ChannelBase (void)
 
virtual bool IsTunable (const QString &channum) const
 
virtual int SetFreqTable (const QString &)
 
virtual void SetFd (int fd)
 Sets file descriptor. More...
 
virtual bool IsExternalChannelChangeInUse (void)
 
virtual uint GetNextChannel (uint chanid, ChannelChangeDirection direction) const
 
virtual uint GetNextChannel (const QString &channum, ChannelChangeDirection direction) const
 
virtual QString GetChannelName (void) const
 
virtual int GetInputID (void) const
 
virtual QString GetInputName (void) const
 
virtual uint GetSourceID (void) const
 
bool IsCommercialFree (void) const
 Returns true iff commercial detection is not required. More...
 
virtual void Renumber (uint srcid, const QString &oldChanNum, const QString &newChanNum)
 Changes a channum if we have it cached anywhere. More...
 
virtual bool InitializeInput (void)
 Fills in input map from DB. More...
 
virtual void StoreInputChannels (void)
 Saves current channel as the default channel for the current input. More...
 
virtual bool InitPictureAttributes (void)
 
virtual int GetPictureAttribute (PictureAttribute) const
 
virtual int ChangePictureAttribute (PictureAdjustType, PictureAttribute, bool)
 
bool CheckChannel (const QString &channum) const
 
void SetInputID (uint _inputid)
 
int GetMajorID (void)
 

Private Types

typedef DVBChannelDVBChannelP
 
typedef const DVBChannelDVBChannelCP
 

Private Member Functions

bool Open (DVBChannel *)
 
void Close (DVBChannel *)
 
int GetChanID (void) const override
 Returns Channel ID. More...
 
void CheckOptions (DTVMultiplex &t) const override
 Checks tuning for problems, and tries to fix them. More...
 
void CheckFrequency (uint64_t frequency) const
 Checks tuning frequency. More...
 
bool CheckModulation (DTVModulation modulation) const
 Return true iff modulation is supported modulation on the frontend. More...
 
bool CheckCodeRate (DTVCodeRate rate) const
 Return true iff rate is supported rate on the frontend. More...
 
DVBChannelGetMasterLock (void)
 
const DVBChannelGetMasterLock (void) const
 
double GetSignalStrengthDVBv5 (bool *ok) const
 Get Signal strength from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB. More...
 
double GetSNRDVBv5 (bool *ok) const
 Get SNR from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB. More...
 
double GetBitErrorRateDVBv5 (bool *ok) const
 Get Bit Error Rate from the DVBv5 interface. More...
 
double GetUncorrectedBlockCountDVBv5 (bool *ok) const
 Get Uncorrected Block Count from the DVBv5 interface. More...
 

Static Private Member Functions

static void ReturnMasterLock (DVBChannelP &dvbm)
 
static void ReturnMasterLock (DVBChannelCP &dvbm)
 

Private Attributes

IsOpenMap is_open
 
DiSEqCDev diseqc_dev
 
DiSEqCDevSettings diseqc_settings
 
DiSEqCDevTreediseqc_tree
 
DVBCamdvbcam
 Used to decrypt encrypted streams. More...
 
QString frontend_name
 
uint64_t capabilities
 
uint64_t ext_modulations
 
uint64_t frequency_minimum
 
uint64_t frequency_maximum
 
uint symbol_rate_minimum
 
uint symbol_rate_maximum
 
QMutex tune_lock
 
QMutex hw_lock
 
DTVMultiplex desired_tuning
 Last tuning options Tune() attempted to send to hardware. More...
 
DTVMultiplex prev_tuning
 Last tuning options Tune() succesfully sent to hardware. More...
 
uint last_lnb_dev_id
 
uint tuning_delay
 Extra delay to add for broken drivers. More...
 
uint sigmon_delay
 Minimum delay between FE_LOCK checks. More...
 
bool first_tune
 Used to force hardware reset. More...
 
int fd_frontend
 File descriptor for tuning hardware. More...
 
QString device
 DVB Device. More...
 
bool has_crc_bug
 true iff our driver munges PMT More...
 
QMutex tune_delay_lock
 

Static Private Attributes

static QDateTime last_tuning = QDateTime::currentDateTime()
 

Additional Inherited Members

- Public Types inherited from DTVChannel
typedef DTVChannelDTVChannelP
 
- Static Public Member Functions inherited from DTVChannel
static DTVChannelGetMasterLock (const QString &key)
 
static void ReturnMasterLock (DTVChannelP &)
 
- Static Public Member Functions inherited from ChannelBase
static ChannelBaseCreateChannel (TVRec *tv_rec, const GeneralDBOptions &genOpt, const DVBDBOptions &dvbOpt, const FireWireDBOptions &fwOpt, const QString &startchannel, bool enter_power_save_mode, QString &rbFileExt, bool setchan)
 
- Protected Types inherited from DTVChannel
typedef QMap< QString, QList< DTVChannel * > > MasterMap
 
- Protected Member Functions inherited from DTVChannel
void SetSIStandard (const QString &)
 Sets PSIP table standard: MPEG, DVB, ATSC, or OpenCable. More...
 
void SetDTVInfo (uint atsc_major, uint atsc_minor, uint dvb_orig_netid, uint mpeg_tsid, int mpeg_pnum)
 
void ClearDTVInfo (void)
 
void HandleScriptEnd (bool ok) override
 
- Protected Member Functions inherited from ChannelBase
virtual bool IsInputAvailable (uint &mplexid_restriction, uint &chanid_restrtiction) const
 Switches to another input on hardware, and sets the channel is setstarting is true. More...
 
virtual bool IsExternalChannelChangeSupported (void)
 
bool KillScript (void)
 
void HandleScript (const QString &freqid)
 
uint GetScriptStatus (bool holding_lock=false)
 
bool ChangeExternalChannel (const QString &changer, const QString &newchan)
 
bool ChangeInternalChannel (const QString &newchan, uint cardinputid)
 
- Protected Attributes inherited from DTVChannel
QMutex dtvinfo_lock
 
DTVTunerType tunerType
 
QString sistandard
 PSIP table standard: MPEG, DVB, ATSC, OpenCable. More...
 
QString tuningMode
 
QString m_tvFormat
 
int currentProgramNum
 
uint currentATSCMajorChannel
 
uint currentATSCMinorChannel
 
uint currentTransportID
 
uint currentOriginalNetworkID
 
ProgramAssociationTablegenPAT
 This is a generated PAT for RAW pid tuning. More...
 
ProgramMapTablegenPMT
 This is a generated PMT for RAW pid tuning. More...
 
- Protected Attributes inherited from ChannelBase
TVRecm_pParent
 
QString m_curchannelname
 
bool m_commfree
 
uint m_inputid
 
uint m_sourceid
 
QString m_name
 
QString m_startChanNum
 
QString m_externalChanger
 
QString m_tuneToChannel
 
ChannelInfoList m_channels
 channels across all inputs More...
 
QMutex m_system_lock
 
MythSystemLegacym_system
 
uint m_system_status
 These get mapped from the GENERIC_EXIT_* to these values for use with the signalmonitor code. More...
 
- Static Protected Attributes inherited from DTVChannel
static QReadWriteLock master_map_lock
 
static MasterMap master_map
 

Detailed Description

Provides interface to the tuning hardware when using DVB drivers.

Bug:
Only supports single input cards.

Definition at line 29 of file dvbchannel.h.

Member Typedef Documentation

◆ DVBChannelP

Definition at line 105 of file dvbchannel.h.

◆ DVBChannelCP

typedef const DVBChannel* DVBChannel::DVBChannelCP
private

Definition at line 109 of file dvbchannel.h.

Constructor & Destructor Documentation

◆ DVBChannel()

DVBChannel::DVBChannel ( const QString &  device,
TVRec parent = nullptr 
)

Definition at line 69 of file dvbchannel.cpp.

◆ ~DVBChannel()

DVBChannel::~DVBChannel ( )

Definition at line 108 of file dvbchannel.cpp.

Member Function Documentation

◆ Open() [1/2]

bool DVBChannel::Open ( void  )
inlineoverridevirtual

Opens the channel changing hardware for use.

Implements ChannelBase.

Definition at line 35 of file dvbchannel.h.

Referenced by Init(), and Open().

◆ Close() [1/2]

void DVBChannel::Close ( void  )
inlineoverridevirtual

Closes the channel changing hardware to use.

Implements ChannelBase.

Definition at line 37 of file dvbchannel.h.

Referenced by Close(), Open(), and ~DVBChannel().

◆ Init()

bool DVBChannel::Init ( QString &  startchannel,
bool  setchan 
)
overridevirtual

Reimplemented from ChannelBase.

Definition at line 384 of file dvbchannel.cpp.

◆ SetPMT()

void DVBChannel::SetPMT ( const ProgramMapTable pmt)

Tells the Conditional Access Module which streams we wish to decode.

Definition at line 557 of file dvbchannel.cpp.

Referenced by DVBSignalMonitor::HandlePMT(), DVBRecorder::SetCAMPMT(), and ChannelScanSM::TestNextProgramEncryption().

◆ SetTimeOffset()

void DVBChannel::SetTimeOffset ( double  offset)

Tells the Conditional Access Module the offset from the computers utc time to dvb time.

Definition at line 569 of file dvbchannel.cpp.

Referenced by DVBSignalMonitor::HandleSTT(), DVBSignalMonitor::HandleTDT(), and DVBRecorder::UpdateCAMTimeOffset().

◆ SetSlowTuning()

void DVBChannel::SetSlowTuning ( uint  how_slow_in_ms)
inline

Definition at line 45 of file dvbchannel.h.

◆ IsOpen()

bool DVBChannel::IsOpen ( void  ) const
overridevirtual

Reports whether channel is already open.

Implements ChannelBase.

Definition at line 376 of file dvbchannel.cpp.

Referenced by Init().

◆ GetFd()

int DVBChannel::GetFd ( void  ) const
inlineoverridevirtual

Returns file descriptor, -1 if it does not exist.

Reimplemented from ChannelBase.

Definition at line 50 of file dvbchannel.h.

◆ IsTuningParamsProbeSupported()

bool DVBChannel::IsTuningParamsProbeSupported ( void  ) const

Returns true iff tuning info probing is working.

Definition at line 918 of file dvbchannel.cpp.

Referenced by IsTuningParamsProbeSupported().

◆ GetDevice()

QString DVBChannel::GetDevice ( void  ) const
inlineoverridevirtual

Returns String representing device, useful for debugging.

Reimplemented from ChannelBase.

Definition at line 54 of file dvbchannel.h.

◆ GetCardNum()

QString DVBChannel::GetCardNum ( void  ) const
inline

Returns DVB device number, used to construct filenames for DVB devices.

Definition at line 57 of file dvbchannel.h.

Referenced by DVBSignalMonitor::DVBSignalMonitor().

◆ GetFrontendName()

QString DVBChannel::GetFrontendName ( void  ) const
inline

Returns frontend name as reported by driver.

Definition at line 59 of file dvbchannel.h.

◆ IsMaster()

bool DVBChannel::IsMaster ( void  ) const
overridevirtual

Returns true if this is the first of a number of multi-rec devs.

Reimplemented from DTVChannel.

Definition at line 1455 of file dvbchannel.cpp.

◆ HasCRCBug()

bool DVBChannel::HasCRCBug ( void  ) const
inline

Returns true iff we have a faulty DVB driver that munges PMT.

Definition at line 62 of file dvbchannel.h.

◆ GetMinSignalMonitorDelay()

uint DVBChannel::GetMinSignalMonitorDelay ( void  ) const
inline

Definition at line 63 of file dvbchannel.h.

Referenced by DVBSignalMonitor::DVBSignalMonitor().

◆ GetRotor()

const DiSEqCDevRotor * DVBChannel::GetRotor ( void  ) const

◆ HasLock()

bool DVBChannel::HasLock ( bool ok = nullptr) const

Returns true iff we have a signal carrier lock.

Definition at line 1076 of file dvbchannel.cpp.

Referenced by DVBSignalMonitor::DVBSignalMonitor(), HasLock(), and DVBSignalMonitor::UpdateValues().

◆ GetSignalStrength()

double DVBChannel::GetSignalStrength ( bool ok = nullptr) const

Returns signal strength in the range [0.0..1.0] (non-calibrated).

Definition at line 1157 of file dvbchannel.cpp.

Referenced by GetSignalStrength(), and DVBSignalMonitor::UpdateValues().

◆ GetSNR()

double DVBChannel::GetSNR ( bool ok = nullptr) const

Returns signal/noise in the range [0..1.0].

Some drivers report the actual ratio, while others report the dB, but in this case some weak signals may report a very high S/N since negative dB are not supported by MythTV or the 4.0 version of the DVB API due to the large number of drivers that ignored the fact that this was a signed number in the 3.0 API.

Definition at line 1245 of file dvbchannel.cpp.

Referenced by GetSNR(), and DVBSignalMonitor::UpdateValues().

◆ GetBitErrorRate()

double DVBChannel::GetBitErrorRate ( bool ok = nullptr) const

Returns # of corrected bits since last call. First call undefined.

Definition at line 1319 of file dvbchannel.cpp.

Referenced by GetBitErrorRate(), and DVBSignalMonitor::UpdateValues().

◆ GetUncorrectedBlockCount()

double DVBChannel::GetUncorrectedBlockCount ( bool ok = nullptr) const

Returns # of uncorrected blocks since last call. First call undefined.

Definition at line 1383 of file dvbchannel.cpp.

Referenced by GetUncorrectedBlockCount(), and DVBSignalMonitor::UpdateValues().

◆ SwitchToInput()

bool DVBChannel::SwitchToInput ( int  newcapchannel,
bool  setstarting 
)

◆ Tune() [1/7]

bool DVBChannel::Tune ( const DTVMultiplex tuning)
overridevirtual

This performs the actual frequency tuning and in some cases input switching.

In rare cases such as ASI this does nothing since all the channels are in the same MPTS stream on the same input. But generally you will need to implement this when adding support for new hardware.

Implements DTVChannel.

Definition at line 576 of file dvbchannel.cpp.

Referenced by Retune(), and Tune().

◆ Tune() [2/7]

bool DVBChannel::Tune ( const DTVMultiplex tuning,
bool  force_reset = false,
bool  same_input = false 
)

Tunes the card to a frequency but does not deal with PIDs.

This is used by DVB Channel Scanner, the EIT Parser, and by TVRec.

Parameters
tuningInfo on transport to tune to
force_resetIf true, frequency tuning is done even if it should not be needed.
same_inputOptional, doesn't change input (for retuning).
Returns
true on success, false on failure

Definition at line 708 of file dvbchannel.cpp.

◆ Retune()

bool DVBChannel::Retune ( void  )
overridevirtual

Reimplemented from ChannelBase.

Definition at line 910 of file dvbchannel.cpp.

Referenced by DVBStreamHandler::RetuneMonitor().

◆ ProbeTuningParams()

bool DVBChannel::ProbeTuningParams ( DTVMultiplex tuning) const

Fetches DTVMultiplex params from driver.

Note: Only updates tuning on success.

Returns
true on success, false on failure

Definition at line 964 of file dvbchannel.cpp.

Referenced by ProbeTuningParams().

◆ Open() [2/2]

bool DVBChannel::Open ( DVBChannel who)
private

Definition at line 189 of file dvbchannel.cpp.

◆ Close() [2/2]

void DVBChannel::Close ( DVBChannel who)
private

Definition at line 150 of file dvbchannel.cpp.

◆ GetChanID()

int DVBChannel::GetChanID ( void  ) const
overrideprivatevirtual

Returns Channel ID.

Bug:
This only works if there is only one input on the card.

Reimplemented from ChannelBase.

Definition at line 1022 of file dvbchannel.cpp.

◆ CheckOptions()

void DVBChannel::CheckOptions ( DTVMultiplex ) const
overrideprivatevirtual

Checks tuning for problems, and tries to fix them.

Reimplemented from DTVChannel.

Definition at line 408 of file dvbchannel.cpp.

◆ CheckFrequency()

void DVBChannel::CheckFrequency ( uint64_t  frequency) const
private

Checks tuning frequency.

Definition at line 395 of file dvbchannel.cpp.

Referenced by CheckOptions(), and Tune().

◆ CheckModulation()

bool DVBChannel::CheckModulation ( DTVModulation  modulation) const
private

Return true iff modulation is supported modulation on the frontend.

Definition at line 532 of file dvbchannel.cpp.

Referenced by CheckOptions().

◆ CheckCodeRate()

bool DVBChannel::CheckCodeRate ( DTVCodeRate  rate) const
private

Return true iff rate is supported rate on the frontend.

Definition at line 513 of file dvbchannel.cpp.

Referenced by CheckOptions().

◆ GetMasterLock() [1/2]

DVBChannel * DVBChannel::GetMasterLock ( void  )
private

◆ ReturnMasterLock() [1/2]

void DVBChannel::ReturnMasterLock ( DVBChannelP dvbm)
staticprivate

◆ GetMasterLock() [2/2]

const DVBChannel * DVBChannel::GetMasterLock ( void  ) const
private

Definition at line 1434 of file dvbchannel.cpp.

◆ ReturnMasterLock() [2/2]

static void DVBChannel::ReturnMasterLock ( DVBChannelCP dvbm)
staticprivate

◆ GetSignalStrengthDVBv5()

double DVBChannel::GetSignalStrengthDVBv5 ( bool ok) const
private

Get Signal strength from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB.

Parameters
okset to true if provided and value exists
Returns
linear signal strength in [0.0-1.0]

Referenced by GetSignalStrength().

◆ GetSNRDVBv5()

double DVBChannel::GetSNRDVBv5 ( bool ok) const
private

Get SNR from the DVBv5 interface [0-1.0] It is transformed to a linear relative scale if provided in dB.

Parameters
okset to true if provided and value exists
Returns
linear SNR in [0.0-1.0]

Referenced by GetSNR().

◆ GetBitErrorRateDVBv5()

double DVBChannel::GetBitErrorRateDVBv5 ( bool ok) const
private

Get Bit Error Rate from the DVBv5 interface.

Parameters
okset to true if provided and value exists
Returns
bit error rate

Referenced by GetBitErrorRate().

◆ GetUncorrectedBlockCountDVBv5()

double DVBChannel::GetUncorrectedBlockCountDVBv5 ( bool ok) const
private

Get Uncorrected Block Count from the DVBv5 interface.

Parameters
okset to true if provided and value exists
Returns
block count

Referenced by GetUncorrectedBlockCount().

◆ Tune() [3/7]

virtual bool DTVChannel::Tune

This performs the actual frequency tuning and in some cases input switching.

In rare cases such as ASI this does nothing since all the channels are in the same MPTS stream on the same input. But generally you will need to implement this when adding support for new hardware.

◆ Tune() [4/7]

virtual bool DTVChannel::Tune
inline

Performs IPTV Tuning. Only implemented by IPTVChannel.

Definition at line 59 of file dtvchannel.h.

◆ Tune() [5/7]

virtual bool DTVChannel::Tune
inline

Leave it up to the implementation to map the channnum appropriately.

Used by the ExternalRecorder.

Definition at line 64 of file dtvchannel.h.

◆ Tune() [6/7]

bool DTVChannel::Tune
inlineoverride

This tunes on the frequency Identification parameter for hardware that supports it.

This is only called when there is no frequency set. This is used to implement "Channel Numbers" in analog tuning scenarios and to implement "Virtual Channels" in the OCUR and Firewire tuners.

Definition at line 76 of file dtvchannel.h.

◆ Tune() [7/7]

virtual bool DTVChannel::Tune
inline

Definition at line 82 of file dtvchannel.h.

Member Data Documentation

◆ is_open

IsOpenMap DVBChannel::is_open
private

Definition at line 133 of file dvbchannel.h.

Referenced by Close(), IsOpen(), Open(), and ~DVBChannel().

◆ diseqc_dev

DiSEqCDev DVBChannel::diseqc_dev
private

Definition at line 136 of file dvbchannel.h.

Referenced by Open().

◆ diseqc_settings

DiSEqCDevSettings DVBChannel::diseqc_settings
private

Definition at line 137 of file dvbchannel.h.

Referenced by GetRotor(), Open(), and Tune().

◆ diseqc_tree

DiSEqCDevTree* DVBChannel::diseqc_tree
private

◆ dvbcam

DVBCam* DVBChannel::dvbcam
private

Used to decrypt encrypted streams.

Definition at line 139 of file dvbchannel.h.

Referenced by Close(), DVBChannel(), SetPMT(), SetTimeOffset(), and ~DVBChannel().

◆ frontend_name

QString DVBChannel::frontend_name
private

Definition at line 142 of file dvbchannel.h.

Referenced by GetFrontendName(), and Open().

◆ capabilities

uint64_t DVBChannel::capabilities
private

Definition at line 143 of file dvbchannel.h.

Referenced by CheckCodeRate(), CheckModulation(), CheckOptions(), Open(), and Tune().

◆ ext_modulations

uint64_t DVBChannel::ext_modulations
private

Definition at line 144 of file dvbchannel.h.

Referenced by Open().

◆ frequency_minimum

uint64_t DVBChannel::frequency_minimum
private

Definition at line 145 of file dvbchannel.h.

Referenced by CheckFrequency(), and Open().

◆ frequency_maximum

uint64_t DVBChannel::frequency_maximum
private

Definition at line 146 of file dvbchannel.h.

Referenced by CheckFrequency(), and Open().

◆ symbol_rate_minimum

uint DVBChannel::symbol_rate_minimum
private

Definition at line 147 of file dvbchannel.h.

Referenced by CheckOptions(), and Open().

◆ symbol_rate_maximum

uint DVBChannel::symbol_rate_maximum
private

Definition at line 148 of file dvbchannel.h.

Referenced by CheckOptions(), and Open().

◆ tune_lock

QMutex DVBChannel::tune_lock
mutableprivate

Definition at line 151 of file dvbchannel.h.

Referenced by Tune().

◆ hw_lock

QMutex DVBChannel::hw_lock
mutableprivate

◆ desired_tuning

DTVMultiplex DVBChannel::desired_tuning
private

Last tuning options Tune() attempted to send to hardware.

Definition at line 154 of file dvbchannel.h.

Referenced by Retune(), and Tune().

◆ prev_tuning

DTVMultiplex DVBChannel::prev_tuning
private

Last tuning options Tune() succesfully sent to hardware.

Definition at line 156 of file dvbchannel.h.

Referenced by Tune().

◆ last_lnb_dev_id

uint DVBChannel::last_lnb_dev_id
private

Definition at line 158 of file dvbchannel.h.

Referenced by Tune().

◆ tuning_delay

uint DVBChannel::tuning_delay
private

Extra delay to add for broken drivers.

Definition at line 160 of file dvbchannel.h.

Referenced by SetSlowTuning(), and Tune().

◆ sigmon_delay

uint DVBChannel::sigmon_delay
private

Minimum delay between FE_LOCK checks.

Definition at line 161 of file dvbchannel.h.

Referenced by DVBChannel(), and GetMinSignalMonitorDelay().

◆ first_tune

bool DVBChannel::first_tune
private

Used to force hardware reset.

Definition at line 162 of file dvbchannel.h.

Referenced by Open(), and Tune().

◆ fd_frontend

int DVBChannel::fd_frontend
private

◆ device

QString DVBChannel::device
private

DVB Device.

Definition at line 166 of file dvbchannel.h.

Referenced by DVBChannel(), GetCardNum(), GetDevice(), GetMasterLock(), Open(), and ~DVBChannel().

◆ has_crc_bug

bool DVBChannel::has_crc_bug
private

true iff our driver munges PMT

Definition at line 167 of file dvbchannel.h.

Referenced by DVBChannel(), and HasCRCBug().

◆ last_tuning

QDateTime DVBChannel::last_tuning = QDateTime::currentDateTime()
staticprivate

Definition at line 169 of file dvbchannel.h.

Referenced by Tune().

◆ tune_delay_lock

QMutex DVBChannel::tune_delay_lock
private

Definition at line 170 of file dvbchannel.h.

Referenced by Tune().


The documentation for this class was generated from the following files: