Vibrator: Update the perform operation to allow ringtone IDs
Currently the "perform" operation is only allowing the effects
up to HEAVY_CLICK. Update it to allow the ringtone IDs when the
offload functionality is enabled. While at it update the below
as well.
1. update the play_rate of fifo effect 17 to S_PERIOD_T_LRA_X_8
2. Include the "slatecom_interface.h" header and add
"qti_kernel_header" lib in Android.bp file for compilation fix.
Change-Id: I305288894da40837c54743012c1bfe25900efc51
diff --git a/aidl/VibratorOffload.cpp b/aidl/VibratorOffload.cpp
index e9a4616..8c4e877 100644
--- a/aidl/VibratorOffload.cpp
+++ b/aidl/VibratorOffload.cpp
@@ -34,6 +34,7 @@
#include <string.h>
#include <thread>
#include <linux/input.h>
+#include <linux/slatecom_interface.h>
#include <log/log.h>
#include <fcntl.h>
#include <cutils/log.h>
@@ -56,12 +57,6 @@
#define UEVENT_MSG_LEN 1024
#define SLATE_EVENT "SLATE_EVENT="
#define SLATE_EVENT_STRING_LEN 12 //length of SLATE_EVENT
-/*
- * TODO Need to work on solution to get this from kernel header
- * without effecting other kernel versions where this change
- * goes in.
- */
-#define SLATE_AFTER_POWER_UP 4
PatternOffload::PatternOffload()
{