+257
−0
+10
−0
+1
−0
drivers/leds/leds-qpnp-haptics.c
0 → 100644
+2497
−0
File added.
Preview size limit exceeded, changes collapsed.
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Existing haptics driver is coupled with timed_output class driver which was existing under staging/android. Since the vibrator HAL in AOSP had been modified to support vibrator device under LED class and also the timed_output class driver had been dropped in newer kernel versions, create a new haptics driver that registers with LED class framework. As before, haptics module supports multiple play modes, direct, buffer, audio and PWM. It supports different actuators, ERM and LRA. Driver supports to play multiple set of wave samples (upto 32) in buffer mode which can be configured by the user instead of just based on the duration. For example, to enable haptics for 30 ms, echo 30 > /sys/class/leds/vibrator/duration echo 1 > /sys/class/leds/vibrator/activate Change-Id: I250089212c5da403531ae012c6e48e58bb1d18b3 Signed-off-by:Subbaraman Narayanamurthy <subbaram@codeaurora.org> Signed-off-by:
Shilpa Suresh <sbsure@codeaurora.org>
File added.
Preview size limit exceeded, changes collapsed.