summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2017-05-11 18:50:43 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2019-02-15 03:13:35 -0800
commit6c36a602f34b8907e9416b1330db54575284cc85 (patch)
treed3b33ea258a83e5b5c310fecc36c3b70ecb8776c /include/linux/debugobjects.h
parentf495688918938590eb6202916a7b86c0fe2195cb (diff)
leds: qpnp-haptics: Add haptics driver
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>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions