rk hdmi sysfs: only plug in hdmi use screen scale
authoryxj <yxj@rock-chips.com>
Sat, 1 Dec 2012 07:14:35 +0000 (15:14 +0800)
committeryxj <yxj@rock-chips.com>
Fri, 7 Dec 2012 09:28:49 +0000 (17:28 +0800)
drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c

index ed0d2e09762cb24c1eacb2975b5e849bf1ecd098..e0e6bf4b67ff6c01484f0dc72591cbd7241d7d06 100755 (executable)
@@ -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)