11#include "libmythbase/mythconfig.h"
15#if CONFIG_FIREWIRE_OSX
20#define LOC QString("FireChan[%1](%2): ").arg(m_inputId).arg(FirewireChannel::GetDevice())
25 m_videodevice(
std::move(_videodevice)),
26 m_fwOpts(
std::move(firewire_opts))
31#if CONFIG_FIREWIRE_LINUX
37#if CONFIG_FIREWIRE_OSX
50 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Open()");
67 LOG(VB_GENERAL, LOG_ERR,
LOC +
83 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Close()");
100 LOG(VB_GENERAL, LOG_ERR,
LOC +
101 "SetPowerState() called on closed FirewireChannel.");
113 LOG(VB_GENERAL, LOG_ERR,
LOC +
114 "GetPowerState() called on closed FirewireChannel.");
124 LOG(VB_CHANNEL, LOG_INFO,
LOC +
"Retune()");
128 LOG(VB_GENERAL, LOG_ERR,
LOC +
129 "STB is turned off, must be on to retune.");
137 return Tune(freqid, 0);
145 LOG(VB_CHANNEL, LOG_INFO, QString(
"Tune(%1)").arg(freqid));
148 uint channel = freqid.toUInt(&ok);
154 LOG(VB_GENERAL, LOG_WARNING,
LOC +
155 "STB is turned off, must be on to set channel.");
static uint64_t string_to_guid(const QString &guid)
virtual bool IsExternalChannelChangeInUse(void)
virtual bool InitializeInput(void)
Fills in input map from DB.
Class providing a generic interface to digital tuning hardware.
FirewireDevice * m_device
FirewireChannel(TVRec *parent, QString videodevice, FireWireDBOptions firewire_opts)
virtual bool SetPowerState(bool on)
virtual FirewireDevice::PowerState GetPowerState(void) const
QString GetDevice(void) const override
Returns String representing device, useful for debugging.
void Close(void) override
Closes the channel changing hardware to use.
bool Retune(void) override
FireWireDBOptions m_fwOpts
bool Open(void) override
Opens the channel changing hardware for use.
bool Tune(const DTVMultiplex &) override
This performs the actual frequency tuning and in some cases input switching.
~FirewireChannel() override
virtual PowerState GetPowerState(void)
virtual bool OpenPort(void)=0
virtual bool SetChannel(const QString &panel_model, uint alt_method, uint channel)
static bool IsSTBSupported(const QString &model)
virtual bool ClosePort(void)=0
virtual bool SetPowerState(bool on)
static const uint kConnectionP2P
This is the coordinating class of the Recorder Subsystem.
#define LOC
FirewireChannel Copyright (c) 2005 by Jim Westfall, Dave Abrahams Copyright (c) 2006 by Daniel Kristj...
#define LOG(_MASK_, _LEVEL_, _QSTRING_)