Commit 6db314c1 authored by Marian Ďurkovič's avatar Marian Ďurkovič

en50221: Provide compile-time option for slow CAMs

parent 8bfd4061
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
#undef DEBUG_TPDU #undef DEBUG_TPDU
#define HLCI_WAIT_CAM_READY 0 #define HLCI_WAIT_CAM_READY 0
#define CAM_PROG_MAX MAX_PROGRAMS #define CAM_PROG_MAX MAX_PROGRAMS
//#define CAPMT_WAIT 100 /* uncomment this for slow CAMs */
static void ResourceManagerOpen( access_t * p_access, int i_session_id ); static void ResourceManagerOpen( access_t * p_access, int i_session_id );
static void ApplicationInformationOpen( access_t * p_access, int i_session_id ); static void ApplicationInformationOpen( access_t * p_access, int i_session_id );
...@@ -973,7 +974,7 @@ typedef struct ...@@ -973,7 +974,7 @@ typedef struct
static bool CheckSystemID( system_ids_t *p_ids, uint16_t i_id ) static bool CheckSystemID( system_ids_t *p_ids, uint16_t i_id )
{ {
int i = 0; int i = 0;
if( !p_ids ) return false; if( !p_ids ) return true; /* dummy session for high-level CI intf */
while ( p_ids->pi_system_ids[i] ) while ( p_ids->pi_system_ids[i] )
{ {
...@@ -1243,6 +1244,9 @@ static void CAPMTAdd( access_t * p_access, int i_session_id, ...@@ -1243,6 +1244,9 @@ static void CAPMTAdd( access_t * p_access, int i_session_id,
return; return;
} }
#ifdef CAPMT_WAIT
msleep( CAPMT_WAIT * 1000 );
#endif
msg_Dbg( p_access, "adding CAPMT for SID %d on session %d", msg_Dbg( p_access, "adding CAPMT for SID %d on session %d",
p_pmt->i_program_number, i_session_id ); p_pmt->i_program_number, i_session_id );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment