rk hdmi sysfs: only plug in hdmi use screen scale

This commit is contained in:
yxj
2012-12-01 15:14:35 +08:00
parent bdee11ddee
commit f48dd4d935

View File

@@ -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)