OSDN Git Service

android: open renderD128 by default
authorXu Guangxin <guangxin.xu@intel.com>
Sat, 6 May 2017 09:51:13 +0000 (05:51 -0400)
committerXiang, Haihao <haihao.xiang@intel.com>
Mon, 12 Jun 2017 01:41:01 +0000 (09:41 +0800)
if we open card0, we need be a root to call I915_PARAM_CHIPSET_ID,
but mediaservice's owner is not root, open renderD128 will fix this.

(cherry picked from commit b1aa5568ad619eb5f526f653a15154c03f3bcb87)

va/android/va_android.cpp

index 0c2b0b5..6f0324b 100644 (file)
@@ -41,7 +41,7 @@
 
 
 #define CHECK_SYMBOL(func) { if (!func) printf("func %s not found\n", #func); return VA_STATUS_ERROR_UNKNOWN; }
-#define DEVICE_NAME "/dev/dri/card0"
+#define DEVICE_NAME "/dev/dri/renderD128"
 
 static int open_device (char *dev_name)
 {