Example #1
0
int broadcast_drv_if_power_on(void)
{
	int8 res = ERROR;
	boolean retval = FALSE;

	if(gpMPI_Buffer == NULL)
	{
		gpMPI_Buffer = kmalloc(TDMB_MPI_BUF_SIZE*TDMB_MPI_BUF_CHUNK_NUM, GFP_KERNEL);
	}
//LGE_BROADCAST_I_0907
	retval = tunerbb_drv_fc8050_stop();

	retval = tunerbb_drv_fc8050_power_off();

	if(retval == TRUE)
	{
		res = OK;
	}
//LGE_BROADCAST_I_0907
	retval = tunerbb_drv_fc8050_power_on();

	if(retval == TRUE)
	{
		res = OK;
	}
	tunerbb_drv_fc8050_set_userstop();
	
	return res;
}
Example #2
0
int broadcast_drv_if_power_on(void)
{
	int8 res = ERROR;
	boolean retval = FALSE;

	if(gpMPI_Buffer == NULL)
	{
#ifndef FC8050_USES_STATIC_BUFFER
		gpMPI_Buffer = kmalloc(TDMB_MPI_BUF_SIZE*TDMB_MPI_BUF_CHUNK_NUM, GFP_KERNEL);
#else // FC8050_USES_STATIC_BUFFER
		gpMPI_Buffer = (uint8*)&gpMPI_Array[0];
#endif // FC8050_USES_STATIC_BUFFER
	}
//                    
	if(tunerbb_drv_fc8050_is_on() == TRUE)
	{
		printk("tdmb_fc8050_power_on state true\n");
		tunerbb_drv_fc8050_stop();

		tunerbb_drv_fc8050_power_off();

	}	
//                    
	retval = tunerbb_drv_fc8050_power_on();

	if(retval == TRUE)
	{
		res = OK;
	}
	tunerbb_drv_fc8050_set_userstop();
	
	return res;
}
int broadcast_drv_if_power_off(void)
{
	int8 res = ERROR;
	boolean retval = FALSE;
	
	retval = tunerbb_drv_fc8050_power_off();

	if(retval == TRUE)
	{
		res = OK;
	}
	//tunerbb_drv_fc8050_set_userstop(0);

	return res;
}