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:
bdee11d
)
rk hdmi sysfs: only plug in hdmi use screen scale
author
yxj
<yxj@rock-chips.com>
Sat, 1 Dec 2012 07:14:35 +0000
(15:14 +0800)
committer
yxj
<yxj@rock-chips.com>
Fri, 7 Dec 2012 09:28:49 +0000
(17:28 +0800)
drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c
b/drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c
index ed0d2e09762cb24c1eacb2975b5e849bf1ecd098..e0e6bf4b67ff6c01484f0dc72591cbd7241d7d06 100755
(executable)
--- a/
drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c
+++ b/
drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c
@@
-110,7
+110,10
@@
static int hdmi_set_scale(struct rk_display_device *device, int direction, int v
if(!hdmi || value < 0 || value > 100)
return -1;
-
+
+ if(!hdmi->hotplug)
+ return 0;
+
if(direction == DISPLAY_SCALE_X)
hdmi->xscale = value;
else if(direction == DISPLAY_SCALE_Y)