Add dsscomp.h header from 3.0 kernel series and added missing LCD3 define.
Avoid null pointer exceptions by checking vsync period value and reset it to 1.