vidc: Use O_SYNC for pmem device.

Necessary as usageflags are indicates an uncached
device. Without O_SYNC buffers become corrupt leading to
HW_ERRORS in vidc.

This commit will hopefully fix the video playback issue.

Change-Id: I2fe8d1ce6b8aa93c608c0fb41f94b6f0484a42c2
Allow usage of kernel headers

Change-Id: Ie8ede5469ebd15f108588609f9664518c960a026
media: Better compatibility with new KGSL

* Memset the params struct instead of initializing every value manually
   so that we don't have to deal with the flags/reserved change.

Change-Id: I0085d14e7f39304936534518a6adb9c8c9544b86

Signed-off-by: Michael Bestas <mikeioannina@gmail.com>