meson-display: On TM2 SoundBar drm_setcrtc crash [1/1]

PD#SWPL-25694

Problem:
TM2 SoundBar: drm_setcrtc crash, On castos, caused by
drm_mode_create_dumb struct not initializ befor use.

Solution:
Add mem clean for drm_mode_create_dumb,
need _FILE_OFFSET_BITS micro when DRM_IOCTL_MODE_MAP_DUMB, on other platform.

Verify:
local AB311

Change-Id: Ieb594aebbf6e3fc128a02eb48e1c5f93b5954dc8
Signed-off-by: lingjie li <lingjie.li@amlogic.com>
8 files changed
tree: 834aad75a078ec6676257d1df84c05137c8da27f
  1. display_framework/