static int broadcast_tdmb_detect_sync(void __user *arg)
{
	int rc = ERROR;
	int udata;
	int __user* puser = (int __user*)arg;
	udata = *puser;

	rc = broadcast_drv_if_detect_sync(udata);

	return rc;
}
Ejemplo n.º 2
0
static int broadcast_tdmb_detect_sync(void __user *arg)
{
	int rc = ERROR;
	int udata;
	int __user* puser = (int __user*)arg;
	udata = *puser;

//20130516_wonhee.jeong Code for revision separation [START]
#if defined (CONFIG_MACH_MSM8974_Z_KR)
	if(lge_get_board_revno() == HW_REV_A){
		rc = broadcast_drv_if_detect_sync_fci(udata);
		return rc;
	}
#endif
//20130516_wonhee.jeong Code for revision separation [END]
	rc = broadcast_drv_if_detect_sync(udata);

	return rc;
}
static int broadcast_tdmb_detect_sync(void __user *arg)
{
	int rc = ERROR;
	int udata;
	int __user* puser = (int __user*)arg;
	udata = *puser;

//                                                          
#if defined (CONFIG_MACH_MSM8974_Z_KR)
	if(lge_get_board_revno() == HW_REV_A){
		rc = broadcast_drv_if_detect_sync_fci(udata);
		return rc;
	}
#endif
//                                                        
	rc = broadcast_drv_if_detect_sync(udata);

	return rc;
}
static int broadcast_dmb_detect_sync(void __user *arg)
{
	int rc = ERROR;	
	struct broadcast_dmb_sync_info udata;

	printk(KERN_DEBUG"[1seg]broadcast_dmb_detect_sync\n");

	if(arg==NULL) {
		printk(KERN_ERR"broadcast_dmb_detect_sync arg is Null\n");
		return ERROR;
	}

	if(copy_from_user(&udata, arg, sizeof(struct broadcast_dmb_sync_info)))
	{
		printk(KERN_ERR"broadcast_dmb_detect_sync copy_from_user fail!!! \n");
		rc = ERROR;
	}
	else
	{
		rc = broadcast_drv_if_detect_sync(&udata);

		if(rc == ERROR)	
			return ERROR;

		if(copy_to_user((void *)arg, &udata, sizeof(struct broadcast_dmb_sync_info)))
		{
			printk(KERN_ERR"[1seg]broadcast_dmb_detect_sync copy_to_user error!!! \n");
			rc = ERROR;
		}
		else
		{
			rc = OK;
		}
	}

	return rc;
}