armbox: add dvbci (thx DboxOldie)

Origin commit data
------------------
Branch: master
Commit: 8886015bac
Author: max_10 <max_10@gmx.de>
Date: 2017-11-05 (Sun, 05 Nov 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
max_10
2017-11-05 16:02:44 +01:00
parent d05c5f387b
commit d5fa88c7cd
11 changed files with 845 additions and 386 deletions

View File

@@ -1347,6 +1347,38 @@ void eDVBCIContentControlManagerSession::resendKey(eDVBCISlot *tslot)
*/
if (!tslot->SidBlackListed && (tslot->recordUse[0] || tslot->liveUse[0]))
{
#if HAVE_ARM_HARDWARE
if (slot->newPids)
{
if (slot->pids.size())
{
if (descrambler_open())
{
for (unsigned int i = 0; i < slot->pids.size(); i++)
descrambler_set_pid((int)tslot->slot, 1, (int) slot->pids[i]);
descrambler_close();
}
}
slot->newPids = false;
}
descrambler_set_key((int)tslot->slot, tslot->lastParity, tslot->lastKey);
#else
if (slot->newPids)
{
if (slot->pids.size())
{
if (descrambler_open())
{
for (unsigned int i = 0; i < slot->pids.size(); i++)
descrambler_set_pid((int)tslot->slot, 1, (int) slot->pids[i]);
descrambler_close();
}
}
slot->newPids = false;
}
descrambler_set_key((int)tslot->source, tslot->lastParity, tslot->lastKey);
#endif
}
}