#include "../dvbsddevice/dvbsdffdevice.h"
#define SCDEVICE cScDvbSdFfDevice
#define DVBDEVICE cDvbSdFfDevice
+#define OWN_FULLTS
#define OWN_SETCA
#define OWN_DUMPAV
#include "device-tmpl.c"
-#undef SCDEVICE
-#undef DVBDEVICE
-#undef OWN_SETCA
-#undef OWN_DUMPAV
+
+bool cScDvbSdFfDevice::CheckFullTs(void)
+{
+ return IsPrimaryDevice() && HasDecoder();
+}
bool cScDvbSdFfDevice::SetCaDescr(ca_descr_t *ca_descr, bool initial)
{
virtual bool HasCi(void);
void LateInit(void);
void EarlyShutdown(void);
+ bool CheckFullTs(void);
#else
cCam *Cam(void) { return cam; }
#endif //!SASC
delete hwciadapter; hwciadapter=0;
}
+#ifndef OWN_FULLTS
+bool SCDEVICE::CheckFullTs(void)
+{
+ return false;
+}
+#endif //!OWN_FULLTS
+
void SCDEVICE::LateInit(void)
{
int n=CardIndex();
softcsa=true;
}
if(softcsa) {
- if(IsPrimaryDevice() && HasDecoder()) {
- PRINTF(L_GEN_INFO,"Enabling hybrid full-ts mode on card %s",devId);
- fullts=true;
- }
+ fullts=CheckFullTs();
+ if(fullts) PRINTF(L_GEN_INFO,"Enabling hybrid full-ts mode on card %s",devId);
else PRINTF(L_GEN_INFO,"Using software decryption on card %s",devId);
}
if(fd_ca2>=0) hwciadapter=cDvbCiAdapter::CreateCiAdapter(this,fd_ca2);
}
#endif // !SASC
+
+#undef SCDEVICE
+#undef DVBDEVICE
+#undef OWN_SETCA
+#undef OWN_DUMPAV
+#undef OWN_FULLTS
#define SCDEVICE cScDvbDevice
#define DVBDEVICE cDvbDevice
#if APIVERSNUM < 10711
+#define OWN_FULLTS
#define OWN_SETCA
#endif
#include "device-tmpl.c"
-#undef SCDEVICE
-#undef DVBDEVICE
-#undef OWN_SETCA
#if APIVERSNUM < 10711
+bool cScDvbDevice::CheckFullTs(void)
+{
+ return IsPrimaryDevice() && HasDecoder();
+}
+
bool cScDvbDevice::SetCaDescr(ca_descr_t *ca_descr, bool initial)
{
cMutexLock lock(&cafdMutex);