mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
rk610:fix bug DVI and HDMI mode switch err
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user