VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
- *)
+ TS10*)
+ set_prop_if_empty hal.audio.out pcmC0D2p
;;
esac
-
- if grep -qi "IntelHDMI" /proc/asound/card0/id; then
- [ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi
- fi
}
function init_hal_bluetooth()
function init_hal_gralloc()
{
+ [ "$VULKAN" = "1" ] && GRALLOC=gbm
+
case "$(readlink /sys/class/graphics/fb0/device/driver)" in
*virtio_gpu)
HWC=${HWC:-drm}
return
}
+function init_hal_vulkan()
+{
+ case "$(readlink /sys/class/graphics/fb0/device/driver)" in
+ *i915)
+ set_property ro.hardware.vulkan android-x86
+ ;;
+ *amdgpu)
+ set_property ro.hardware.vulkan radv
+ ;;
+ *)
+ ;;
+ esac
+}
+
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
+ init_hal_vulkan
init_hal_lights
init_hal_power
init_hal_sensors
Surface*Go)
echo on > /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control
;;
+ VMware*)
+ pm disable com.android.bluetooth
+ ;;
X80*Power)
set_property power.nonboot-cpu-off 1
;;