__s32 video_config(__u32 vic) { int ret = 0; isHDMI = GetIsHdmi(); YCbCr444_Support = GetIsYUV(); __inf("video_config, vic:%d,cts_enable:%d,isHDMI:%d,YCbCr444_Support:%d,hdcp_enable:%d\n", vic,cts_enable,isHDMI,YCbCr444_Support,hdcp_enable); glb_video_para.vic = vic; if((cts_enable==1) && (isHDMI == 0)) glb_video_para.is_hdmi = 0; else glb_video_para.is_hdmi = 1; glb_video_para.is_yuv = get_csc_type(); if(hdcp_enable) { glb_video_para.is_hcts = 1; bsp_hdmi_hrst(); __inf("hdmi full function\n"); } else { glb_video_para.is_hcts = 0; __inf("hdmi video + audio\n"); } __inf("video_on @ video_config = %d!\n",video_on); return ret; }
//0:rgb, 1:yuv __s32 Hmdi_hal_get_input_csc(void) { if((get_cts_enable() == 1) &&(GetIsYUV() == 0)) return 0; else return 1; }
__u32 get_csc_type(void) { int csc = 1; if((get_cts_enable() == 1) &&(GetIsYUV() == 0)) csc = 0; if((is_exp == 1) && ((glb_video_para.vic == HDMI1080P_24) || (glb_video_para.vic == HDMI1080P_24_3D_FP) || (glb_video_para.vic == HDMI3840_2160P_24) || (glb_video_para.vic == HDMI3840_2160P_30) || (glb_video_para.vic == HDMI3840_2160P_25)) ) { csc = 0; } return csc; }