Bug #313
closedSetting contrast value for SmartXX V3 changes backlight when modchip detection is ON.
100%
Description
If I enable modchip detection in "advancedsettings.xml" with a SmartXX V3, changing contrast value in settings will actually change backlight value.
In "smartxxlcd.cpp" source file, you can see that both "DisplaySetBacklight"(line 414) and "DisplaySetContrast"(line 465) functions output commands to "register" 0xF701 (DISP_O_LIGHT = 0xF701)
Line 465 should be something like: _outp(DISP_O_CONTRAST, itemp);
I guess you could also ditch "itemp" variable and use "iNewLevel&127|128" int "_outp" function.
P.S.: I don't own a real SmartXX V3 but spoofing it with the modchip I currently develop exhibited the described behavior. I attached a "fixed" source file but it is untested as I don't have the necessary setup to build XBMC. I will change that soon!
Files