X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fdevice-generic-common.git;a=blobdiff_plain;f=init.sh;h=58aa432e85121bf00441408ae84b9b80c26104c7;hp=3bf705103ef89f1518c6f2593c7781d798bc49bb;hb=445b176b2cd3a94424c508e506d073ebfc021146;hpb=cc1a67274cc608e1f7f5cbaa08f7bec90fafdeb3 diff --git a/init.sh b/init.sh index 3bf7051..58aa432 100644 --- a/init.sh +++ b/init.sh @@ -32,6 +32,10 @@ function init_hal_audio() *) ;; esac + + if [ "`cat /proc/asound/card0/id`" = "IntelHDMI" ]; then + [ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi + fi } function init_hal_bluetooth() @@ -225,6 +229,9 @@ function init_hal_sensors() *i7Stylus*) set_property hal.sensors.iio.accel.matrix 1,0,0,0,-1,0,0,0,-1 ;; + *ST70416-6*) + set_property hal.sensors.iio.accel.matrix 0,-1,0,-1,0,0,0,0,-1 + ;; *) ;; esac @@ -236,7 +243,7 @@ function init_hal_sensors() elif lsmod | grep -q lis3lv02d_i2c; then hal_sensors=hdaps fi - set_property persist.sys.sensors.iio.present 1 + set_property ro.hardware.sensors $hal_sensors }