aloksinha2001 / Linux3188

Linux Source - RK3188 - PicUntu
Other
99 stars 98 forks source link

RK3188 LCDC: Don't call winX_open if already in correct state #31

Closed lgeek closed 10 years ago

lgeek commented 10 years ago

Without this check atv_layer_cnt can both overflow and underflow, causing the lcdc (and the screen) to shut down when it shouldn't.

No point attempting to set an lcdc to the same state it already is in.

lgeek commented 10 years ago

Uhm, I've noticed layer id isn't range checked, I'll rewrite this