HI_S32 SAMPLE_AD_CfgV_D1(VIDEO_NORM_E enVideoMode,VI_WORK_MODE_E enWorkMode)
{
#if defined(NVP1918C) || defined(NVP1918)
printf("\n this is test 0011;");
return 0;
#else
printf("\n this is test 0012;");
#ifdef DEMO
    return SAMPLE_CX26828_CfgV(enVideoMode, 0, enWorkMode);
#else
    return SAMPLE_TW2865_CfgV(enVideoMode, enWorkMode);
#endif
#endif
}
/*****************************************************************************
 * function : get vi parameter, according to vi type
 *****************************************************************************/
HI_S32 SAMPLE_COMM_VI_ADStart(SAMPLE_VI_MODE_E enViMode, VIDEO_NORM_E enNorm) {
	VI_WORK_MODE_E enWorkMode;
	HI_S32 s32Ret;

	switch (enViMode) {
	case SAMPLE_VI_MODE_1_D1:
		enWorkMode = VI_WORK_MODE_1Multiplex;
		s32Ret = SAMPLE_TW2865_CfgV(enNorm, enWorkMode);
		if (s32Ret != HI_SUCCESS) {
			SAMPLE_PRT("SAMPLE_TW2865_CfgV failed with %#x!\n", s32Ret);
			return HI_FAILURE;
		}
		break;

	default:
		SAMPLE_PRT("AD not support!\n");
		return HI_FAILURE;
	}

	return HI_SUCCESS;
}