projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bac773
)
fix bug of rk_fb_set_par in hdmi mode
author
yxj
<yxj@rock-chips.com>
Thu, 18 Apr 2013 07:33:06 +0000
(15:33 +0800)
committer
yxj
<yxj@rock-chips.com>
Thu, 18 Apr 2013 07:33:22 +0000
(15:33 +0800)
drivers/video/rockchip/rk_fb.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/rk_fb.c
b/drivers/video/rockchip/rk_fb.c
index 6a2cd20dd428101723fed99b0997b485f64e957e..4fd861dd15e30ea52cf152709e650f3ee02598f0 100644
(file)
--- a/
drivers/video/rockchip/rk_fb.c
+++ b/
drivers/video/rockchip/rk_fb.c
@@
-607,12
+607,18
@@
static int rk_fb_set_par(struct fb_info *info)
par2->xact = par->yact;
par2->yact = par->xact;
par2->xvir = par->yact;
+ info2->var.xres = var->yres;
+ info2->var.yres = var->xres;
+ info2->var.xres_virtual = var->yres;
}
else
{
par2->xact = par->xact;
par2->yact = par->yact;
par2->xvir = par->xvir;
+ info2->var.xres = var->xres;
+ info2->var.yres = var->yres;
+ info2->var.xres_virtual = var->xres_virtual;
}
par2->format = par->format;
info2->var.nonstd &= 0xffffff00;