OSDN Git Service

add ONDA tablet iio.accelerometer tranformation matrix
authoryouling257 <youling257@gmail.com>
Sat, 24 Sep 2016 17:27:58 +0000 (01:27 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 26 Sep 2016 04:08:13 +0000 (12:08 +0800)
Signed-off-by: youling257 <youling257@gmail.com>
init.sh

diff --git a/init.sh b/init.sh
index 58aa432..b287ec7 100644 (file)
--- a/init.sh
+++ b/init.sh
@@ -232,6 +232,9 @@ function init_hal_sensors()
                *ST70416-6*)
                        set_property hal.sensors.iio.accel.matrix 0,-1,0,-1,0,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
                *)
                        ;;
        esac