LED Brightness Setup : setLED is moved in eDBoxLCD, fix integer to slider.
[vuplus_dvbapp] / lib / gdi / lcd.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 518ee1b..931d41c
@@ -107,6 +107,12 @@ eDBoxLCD::eDBoxLCD()
                }
        }
 #endif
+#ifdef SET_RIGHT_HALF_VFD_SKIN
+       fprintf(stdout,"SET RIGHT HALF VFD SKIN\n");
+       FILE *f = fopen("/proc/stb/lcd/right_half", "w");
+       fprintf(f,"skin");
+       fclose(f);
+#endif
        instance=this;
 
        setSize(xres, yres, bpp);
@@ -118,6 +124,23 @@ void eDBoxLCD::setInverted(unsigned char inv)
        update();
 }
 
+int eDBoxLCD::setLED(int value, int option)
+{
+       switch(option)
+       {
+               case LED_BRIGHTNESS:
+                       ioctl(lcdfd, LED_IOCTL_BRIGHTNESS_NORMAL, (unsigned char)value);
+                       break;
+               case LED_DEEPSTANDBY:
+                       ioctl(lcdfd, LED_IOCTL_BRIGHTNESS_DEEPSTANDBY, (unsigned char)value);
+                       break;
+               case LED_BLINKINGTIME:
+                       ioctl(lcdfd, LED_IOCTL_BLINKING_TIME, (unsigned char)value);
+                       break;
+       }
+       return 0;
+}
+
 int eDBoxLCD::setLCDContrast(int contrast)
 {
 #ifndef NO_LCD
@@ -183,6 +206,9 @@ eDBoxLCD *eDBoxLCD::getInstance()
 
 void eDBoxLCD::update()
 {
+#ifdef BUILD_VUPLUS /* ikseong  */
+       return ;
+#endif
        if (lcdfd >= 0)
        {
                if (!is_oled || is_oled == 2)