Go to the documentation of this file.
5 #include <QMutexLocker>
16 #define LOC QString("SatIPChan[%1]: ").arg(m_inputId)
19 DTVChannel(parent), m_device(std::move(device))
33 bool is_master = (master ==
this);
40 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Open(%1)").arg(
m_device));
51 LOG(VB_CHANNEL, LOG_DEBUG,
LOC + QString(
"Open(%1) m_tunerType:%2 %3")
56 LOG(VB_CHANNEL, LOG_ERR,
LOC +
"InitializeInput() failed");
68 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Close(%1)").arg(
m_device));
83 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Tune(channum=%1) TODO").arg(channum));
86 LOG(VB_CHANNEL, LOG_ERR,
LOC +
"Tune failed, not open");
101 LOG(VB_CHANNEL, LOG_DEBUG,
LOC + QString(
"IsOpen:%1").arg(result));
109 LOG(VB_CHANNEL, LOG_INFO,
LOC + QString(
"Tune freq=%1,src=%2").arg(tuning.
m_frequency).arg(satipsrc));
117 LOG(VB_GENERAL, LOG_ERR,
LOC + QString(
"Tune failed"));
bool EnterPowerSavingMode(void) override
Enters power saving mode if the card supports it.
void RegisterForMaster(const QString &key)
static void ReturnMasterLock(DTVChannelP &chan)
SatIPChannel(TVRec *parent, QString device)
bool IsOpen(void) const override
Reports whether channel is already open.
void DeregisterForMaster(const QString &key)
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
static DTVChannel * GetMasterLock(const QString &key)
~SatIPChannel(void) override
MPEGStreamData * m_streamData
bool IsMaster(void) const override
Returns true if this is the first of a number of multi-rec devs.
virtual void RemoveListener(MPEGStreamData *data)
bool Tune(const DTVMultiplex &tuning) override
This performs the actual frequency tuning and in some cases input switching.
static void Return(SatIPStreamHandler *&ref, int inputid)
void SetSIStandard(const QString &si_std)
Sets PSIP table standard: MPEG, DVB, ATSC, or OpenCable.
static int toTunerType(const QString &deviceid)
void Close(void) override
Closes the channel changing hardware to use.
static eu8 clamp(eu8 value, eu8 low, eu8 high)
This is the coordinating class of the Recorder Subsystem.
virtual int GetInputID(void) const
bool Open(void) override
Opens the channel changing hardware for use.
static SatIPStreamHandler * Get(const QString &devname, int inputid)
Class providing a generic interface to digital tuning hardware.
static QString GetDiSEqCPosition(uint inputid)
bool Tune(const DTVMultiplex &tuning)
virtual bool InitializeInput(void)
Fills in input map from DB.
SatIPStreamHandler * m_streamHandler