AnsweredAssumed Answered

ADV7481 HDMI IN with interlaced(480i) input

Question asked by SainC on May 31, 2018
Latest reply on Jun 1, 2018 by PoornimaSubramani

Hi,

I have a question about ADV7481 HDMI IN feature, my input data is a 480i DV, when I try to use the below setting to detect if it's interlaced, but no matter I try 480P or 480i or other resolutions, it cann't tell which one is interlaced and which is not, in below code, the vid_params->intrlcd is always 0.

could you help to check the code below? thanks a lot.

 

#define ADV_REG_GETFIELD(val, field) \
(((val) & (field##_BMSK)) >> (field##_SHFT))

 

#define HDMI_REG_FIELD1_HEIGHT1_ADDR 0x0B
#define HDMI_REG_DEEP_COLOR_MODE_BMSK 0x00C0
#define HDMI_REG_DEEP_COLOR_MODE_SHFT 6
#define HDMI_REG_HDMI_INTERLACED_BMSK 0x0020
#define HDMI_REG_HDMI_INTERLACED_SHFT 5

 

/* Check HDMI Parameters */
temp1 = adv7481_rd_byte(&state->i2c_client, state->i2c_hdmi_addr,
HDMI_REG_FIELD1_HEIGHT1_ADDR);


/* Check Interlaced and Field Factor */
vid_params->intrlcd = ADV_REG_GETFIELD(temp1,
HDMI_REG_HDMI_INTERLACED);

Outcomes