This repository was archived by the owner on Aug 24, 2021. It is now read-only.
Tags: helmiau/sagit-miui-oreo
Tags
Adding the kcal interface by @savoca and @faux123 porting from m9 version by @flar2 Using the MDP 1_7 userspace structs to inject configurations of kcal to the pp_cache configs. Overriding userspace copy with memcpy when copy_from_user fails (in case of kcal interface used). Adding a simple mdp ctl struct caching to the kcal driver to grab ctl struct for config calls. Could be done nicer with direct interfacing to userspace, leaves some space to make the kernel crash if a third party app sends faulty configs, but there's no security issue or degradation of functionality with this memcpy patch. @tbalden