예제 #1
0
void coolapi_open(void)
{
	int32_t result = 0;
	device_open_arg_t devarg;

    if(!dmx_opened) {
		int32_t i;

		cs_debug_mask(D_DVBAPI, "Open Coolstream DMX API");
		cnxt_cbuf_init(NULL);
		cnxt_dmx_init(NULL);

		memset(&devarg, 0, sizeof(device_open_arg_t));

		devarg.unknown1 = 1;
		devarg.unknown3 = 3;
		devarg.unknown6 = 1;
		for(i = 0; i < MAX_COOL_DMX; i++) {
		        devarg.number = i;
		        result = cnxt_dmx_open (&dmx_device[i], &devarg, NULL, NULL);
		        coolapi_check_error("cnxt_dmx_open", result);
		}
		dmx_opened = 1;
    }
}
예제 #2
0
void coolapi_open()
{
	int32_t result = 0;
	device_open_arg_t devarg;

        if(!dmx_opened) { 
                int32_t i;

		cs_log("Open coolstream dmx api");
                cnxt_cbuf_init(NULL);
                cnxt_dmx_init(NULL);

                memset(&devarg, 0, sizeof(device_open_arg_t));

                devarg.unknown1 = 1;
                devarg.unknown3 = 3;
                devarg.unknown6 = 1;
                for(i = 0; i < MAX_DEMUX; i++) {
                        devarg.number = i;
                        result = cnxt_dmx_open (&dmx_device[i], &devarg, NULL, NULL);
                        check_error ("cnxt_dmx_open", result);
                }
                dmx_opened = true;
        }
}
예제 #3
0
static void coolapi_start_api(void)
{
	cnxt_kal_initialize();
	cnxt_css_drv_init();
	cnxt_cbuf_init(NULL);
	cnxt_dmx_init(NULL);
	cnxt_smc_init(NULL);
}