diff options
author | Hemant Hariyani | 2014-12-03 16:21:56 -0600 |
---|---|---|
committer | Hemant Hariyani | 2014-12-03 16:29:05 -0600 |
commit | e7cf246bec2118890021e1aeb66757f5ad894923 (patch) | |
tree | 1b30ccbe7fecaba6c5f66ca2c5b6873e3180522e /memplugin_android.c | |
parent | 6ef4a562451a007755c9bef3e341cba543bbab7d (diff) | |
download | hardware-ti-libdce-e7cf246bec2118890021e1aeb66757f5ad894923.tar.gz hardware-ti-libdce-e7cf246bec2118890021e1aeb66757f5ad894923.tar.xz hardware-ti-libdce-e7cf246bec2118890021e1aeb66757f5ad894923.zip |
libdce[Android] - Use drm render node instead of card0
Render nodes allow a limited set of ioctls without restrictions.
libdce only needs to access drm to get buffers and render
node should be sufficient.
Note that this is new feature in the kernel.
Also, need a better way to open render node than to use hard coded
path name.
Change-Id: I8178414185dcaf6c70edc756eefb0a00b7e3c332
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
Diffstat (limited to 'memplugin_android.c')
-rw-r--r-- | memplugin_android.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/memplugin_android.c b/memplugin_android.c index 154ae7c..d2f5b35 100644 --- a/memplugin_android.c +++ b/memplugin_android.c | |||
@@ -58,7 +58,7 @@ int memplugin_open() | |||
58 | 58 | ||
59 | /* Open omapdrm device */ | 59 | /* Open omapdrm device */ |
60 | if( OmapDrm_FD == INVALID_DRM_FD ) { | 60 | if( OmapDrm_FD == INVALID_DRM_FD ) { |
61 | OmapDrm_FD = drmOpen("omapdrm", "platform:omapdrm:00"); | 61 | OmapDrm_FD = open("/dev/dri/renderD128", O_RDWR, 0); |
62 | if(OmapDrm_FD <= 0) { | 62 | if(OmapDrm_FD <= 0) { |
63 | ALOGE("omapdrm open failed\n"); | 63 | ALOGE("omapdrm open failed\n"); |
64 | return MEM_EOPEN_FAILURE; | 64 | return MEM_EOPEN_FAILURE; |