/*void AVL_DVBSx_Error_Dispose(AVL_DVBSx_ErrorCode r)
{
    switch(r)
	{
	    case AVL_DVBSx_EC_OK:
		    printf("AVL_DVBSx_EC_OK !\n");
			break;
	    case AVL_DVBSx_EC_GeneralFail:
			printf("AVL_DVBSx_EC_GeneralFail !\n");
			break;
		case AVL_DVBSx_EC_I2CFail:
			printf("AVL_DVBSx_EC_I2CFail !\n");
			break;
		case AVL_DVBSx_EC_TimeOut:
			printf("AVL_DVBSx_EC_TimeOut !\n");
			break;
		case AVL_DVBSx_EC_Running:
			printf("AVL_DVBSx_EC_Running !\n");
			break;
		case AVL_DVBSx_EC_InSleepMode:
			printf("AVL_DVBSx_EC_InSleepMode !\n");
			break; 		
		case AVL_DVBSx_EC_MemoryRunout:
			printf("AVL_DVBSx_EC_MemoryRunout !\n");
			break;
		case AVL_DVBSx_EC_BSP_ERROR1:
			printf("AVL_DVBSx_EC_BSP_ERROR1 !\n");
			break;
		case AVL_DVBSx_EC_BSP_ERROR2:
			printf("AVL_DVBSx_EC_BSP_ERROR2 !\n");
			break;
	}
}*/
AVL_DVBSx_ErrorCode AVL6211_22K_Control(AVL_uchar OnOff)
{
	AVL_DVBSx_ErrorCode r=AVL_DVBSx_EC_OK;
	struct  AVL_DVBSx_Chip * pAVLChip  = &AVL_DVBSxChip;  
	if(OnOff)
	{
		r=AVL_DVBSx_IDiseqc_StartContinuous(pAVLChip);
	}else{
		r=AVL_DVBSx_IDiseqc_StopContinuous(pAVLChip);
	}
	if(r!=AVL_DVBSx_EC_OK)
	{
		printf("[AVL6211_22K_Control] Err:0x%x\n",r);
	}	
	return r;
}
static int	AVL6211_Set_Tone(struct dvb_frontend* fe, fe_sec_tone_mode_t tone)
{
	AVL_DVBSx_ErrorCode r = AVL_DVBSx_EC_OK;
	AVL_uchar  uc22kOn = 0;
	if(SEC_TONE_ON == tone)
		uc22kOn = 1;
	else if(SEC_TONE_OFF == tone)
		uc22kOn = 0;
	else ;
	if(uc22kOn)
	{
		r=AVL_DVBSx_IDiseqc_StartContinuous(pAVLChip_all);
	}else{
		r=AVL_DVBSx_IDiseqc_StopContinuous(pAVLChip_all);
	}
	if(r!=AVL_DVBSx_EC_OK)
	{
		pr_dbg("[AVL6211_22K_Control] Err:0x%x\n",r);
	}	
	
	return r;
	
}