rk610:fix bug DVI and HDMI mode switch err

This commit is contained in:
yzq
2012-05-07 16:06:24 +08:00
parent e2d078b5a6
commit d2face3ace
2 changed files with 5 additions and 2 deletions

View File

@@ -955,7 +955,10 @@ static int Rk610_hdmi_Display_switch(struct i2c_client *client)
int mode;
mode = (g_edid.HDMI_Sink == TRUE)? DISPLAY_HDMI:DISPLAY_DVI;
ret = Rk610_hdmi_i2c_read_p0_reg(client, 0x52, &c);
c &= ((~(1<<1))| mode<<1);
if(mode == DISPLAY_HDMI)
c |= DISPLAY_MODE;
else
c &= ~DISPLAY_MODE;
ret = Rk610_hdmi_i2c_write_p0_reg(client, 0x52, &c);
RK610_DBG(&client->dev,">>>%s mode=%d,c=%x",__func__,mode,c);
return ret;

View File

@@ -97,7 +97,7 @@ enum{
//output mode 0x52
#define DISPLAY_DVI 0
#define DISPLAY_HDMI 1
#define DISPLAY_MODE (1<<1)
//0x00
#define RK610_INT_POL 1
#define RK610_SYS_PWR_ON 0