T10*TA|HP*Omni*)
BTUART_PORT=/dev/ttyS1
set_property hal.bluetooth.uart.proto bcm
+ [ -z "$(getprop sleep.state)" ] && set_property sleep.state none
;;
MacBookPro8*)
rmmod b43
chown bluetooth.bluetooth $BTUART_PORT
start btattach
fi
+
+ # rtl8723bs bluetooth
+ if dmesg -t | grep -qE '8723bs.*BT'; then
+ TTYSTRING=`dmesg -t | grep -E 'tty.*MMIO' | awk '{print $2}' | head -1`
+ if [ -n "$TTYSTRING" ]; then
+ echo "RTL8723BS BT uses $TTYSTRING for Bluetooth."
+ ln -sf $TTYSTRING /dev/rtk_h5
+ start rtk_hciattach
+ fi
+ fi
}
function init_hal_camera()
ET1602*)
drm_mode=1366x768
;;
+ VMware*)
+ [ -n "$video" ] && drm_mode=$video
+ ;;
*)
;;
esac
{
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
set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
;;
*)
- #has_sensors=false
+ has_sensors=false
;;
esac
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