Beispiel #1
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_close(void)
{
	int8 res = ERROR;
	boolean retval = FALSE;

	if(tunerbb_drv_fc8050_is_on() == TRUE)
	{
		printk("tdmb_fc8050_power_on state close-->stop\n");
		retval = tunerbb_drv_fc8050_stop();
	
		if(retval == TRUE)
		{
			res = OK;
		}
	}

	return res;
}