OSDN Git Service

Add SwiftShader as an alternative OpenGL ES libraries
[android-x86/device-generic-common.git] / init.sh
diff --git a/init.sh b/init.sh
index 736d176..7e85495 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -107,6 +107,9 @@ function set_drm_mode()
                ET1602*)
                        drm_mode=1366x768
                        ;;
+               VMware*)
+                       [ -n "$video" ] && drm_mode=$video
+                       ;;
                *)
                        ;;
        esac
@@ -132,8 +135,9 @@ function init_hal_gralloc()
 {
        case "$(cat /proc/fb | head -1)" in
                *virtiodrmfb)
-#                      set_property ro.hardware.hwcomposer drm
-                       ;&
+                       set_property ro.hardware.hwcomposer drm
+                       set_property ro.hardware.gralloc gbm
+                       ;;
                0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb|0*amdgpudrmfb)
                        set_property ro.hardware.gralloc drm
                        set_drm_mode
@@ -247,7 +251,7 @@ function init_hal_sensors()
                        set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
                        ;;
                *)
-                       #has_sensors=false
+                       has_sensors=false
                        ;;
        esac
 
@@ -408,6 +412,7 @@ function do_bootcomplete()
                        alsa_amixer -c $c set Capture cap
                        alsa_amixer -c $c set PCM 100 unmute
                        alsa_amixer -c $c set SPO unmute
+                       alsa_amixer -c $c set IEC958 on
                        alsa_amixer -c $c set 'Mic Boost' 3
                        alsa_amixer -c $c set 'Internal Mic Boost' 3
                fi