X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=init.sh;h=b287ec7516e1ffca5a654625517c1500084dc6bd;hb=97b0ef29fce15a17bc0a1689b5d29ff5e952f1fc;hp=2755a581639bd46578664cc63d746a05adeb8867;hpb=787f578b952771205b94fb914b9a950005b961a6;p=android-x86%2Fdevice-generic-common.git diff --git a/init.sh b/init.sh index 2755a58..b287ec7 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,12 @@ 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 + ;; + *ONDATablet*) + set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1 + ;; *) ;; esac @@ -283,8 +293,10 @@ function init_ril() *TEGA*|*2010:svnIntel:*|*Lucid-MWE*) set_property rild.libpath /system/lib/libhuaweigeneric-ril.so set_property rild.libargs "-d /dev/ttyUSB2 -v /dev/ttyUSB1" + set_property ro.radio.noril no ;; *) + set_property ro.radio.noril yes ;; esac } @@ -410,7 +422,7 @@ PRODUCT=$(cat $DMIPATH/product_name) # import cmdline variables for c in `cat /proc/cmdline`; do case $c in - *.*=*) + BOOT_IMAGE=*|iso-scan/*|*.*=*) ;; *=*) eval $c