X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/5472356361bab323ec1f3ef0db586c2402aeaaaa..72c8ba6c4d1cceadae9e12d79d3532258614a97e:/lib/dvb_ci/dvbci.cpp diff --git a/lib/dvb_ci/dvbci.cpp b/lib/dvb_ci/dvbci.cpp index c3f91482..7d96a296 100644 --- a/lib/dvb_ci/dvbci.cpp +++ b/lib/dvb_ci/dvbci.cpp @@ -85,7 +85,31 @@ int eDVBCIInterfaces::enableTS(int slotid, int enable) if( (slot = getSlot(slotid)) == 0 ) return -1; - return slot->enableTS(enable); + int tunernum = 0; + if (enable) + { + PMTHandlerList::iterator it = m_pmt_handlers.begin(); + while (it != m_pmt_handlers.end()) + { + if ( it->cislot == slot ) + { + eDVBServicePMTHandler *pmthandler = it->pmthandler; + eUsePtr channel; + if (!pmthandler->getChannel(channel)) + { + ePtr frontend; + if (!channel->getFrontend(frontend)) + { + eDVBFrontend *fe = (eDVBFrontend*) &(*frontend); + tunernum = fe->getID(); + } + } + break; + } + ++it; + } + } + return slot->enableTS(enable, tunernum); } int eDVBCIInterfaces::initialize(int slotid) @@ -456,6 +480,10 @@ int eDVBCISlot::getMMIState() int eDVBCISlot::answerEnq(char *value) { printf("edvbcislot: answerENQ(%s)\n", value); + + if(mmi_session) + mmi_session->answerEnq(value); + return 0; } @@ -537,20 +565,31 @@ int eDVBCISlot::sendCAPMT(eDVBServicePMTHandler *pmthandler, const std::vector