From: yxj Date: Sat, 1 Dec 2012 07:14:35 +0000 (+0800) Subject: rk hdmi sysfs: only plug in hdmi use screen scale X-Git-Tag: firefly_0821_release~8122 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f48dd4d935c269371c12976ccbe4a25e7f76149a;p=firefly-linux-kernel-4.4.55.git rk hdmi sysfs: only plug in hdmi use screen scale --- diff --git a/drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c b/drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c index ed0d2e09762c..e0e6bf4b67ff 100755 --- 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)