From f48dd4d935c269371c12976ccbe4a25e7f76149a Mon Sep 17 00:00:00 2001 From: yxj Date: Sat, 1 Dec 2012 15:14:35 +0800 Subject: [PATCH] rk hdmi sysfs: only plug in hdmi use screen scale --- drivers/video/rockchip/hdmi/rk_hdmi_sysfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.34.1