Example #1
0
int fc8050_channel_select(HANDLE hDevice, u8 subChId,u8 svcChId)
{
	u16 cuSize = 0;

	bbm_write(hDevice, BBM_DIDP_CH0_SUBCH + svcChId, 0x40 | subChId);	
	
	if(fc8050_cu_size_check(hDevice, svcChId, &cuSize)) {
		fc8050_power_save_off(hDevice);
		return BBM_OK;
	}
	
	if(cuSize >= 672) {
		fc8050_power_save_off(hDevice);
		return BBM_OK;
	}

	fc8050_power_save_on(hDevice);

	return BBM_OK;
}
int fc8050_channel_select(HANDLE hDevice, fci_u8 subChId,fci_u8 svcChId)
{
//    fci_u16 cuSize = 0; //LGE_BROADCAST_I

    bbm_write(hDevice, BBM_DIDP_CH0_SUBCH + svcChId, 0x40 | subChId);

#if 0 //it only works on test stream so we block this routine to reduce delay time when setting channel
    if(fc8050_cu_size_check(hDevice, svcChId, &cuSize)) {
        fc8050_power_save_off(hDevice);
        return BBM_OK;
    }

    if(cuSize >= 672) {
        fc8050_power_save_off(hDevice);
        return BBM_OK;
    }

    fc8050_power_save_on(hDevice);
#endif
    return BBM_OK;
}