16 Commits

Author SHA1 Message Date
Abhay Singh Gill
377cecfc27 Pong: vibrator: Bump vmax to highest possible value
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2025-09-20 08:12:51 -04:00
Abhay Singh Gill
76148020cb Pong: vibrator: Make haptics a bit tighter
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2025-09-20 08:12:51 -04:00
Abhay Singh Gill
0b70a08f05 Pong: vibrator: Make haptics a bit stronger 2025-06-30 13:44:30 +00:00
Abhay Singh Gill
2bf2fe222d Pong: vibrator: Make haptic stronger & Use correct voltage for long duration haptics
Sourced from oplus sm8250 source.
2024-12-05 17:34:52 +05:30
Abhay Singh Gill
1d906b6ffd Pong: vibrator: Improve amplitude handling
Revert back to our old way of handling timeoutMs.

Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2024-09-25 19:17:24 +05:30
Abhay Singh Gill
c1cfcb781d Pong: vibrator: Switch back to 0x80 vibrator gain
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2024-09-25 19:17:24 +05:30
Abhay Singh Gill
31f21291f0 Pong: vibrator: Increase vmax gain
OEMs like oppo use 9.408V as max vmax gain.

Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2024-09-25 19:17:24 +05:30
Abhay Singh Gill
d8f58e7ab1 Pong: vibrator: Fixup intensity value
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2024-08-23 14:55:37 +05:30
Abhay Singh Gill
e1fdf23bd1 Pong: vibrator: Report vibration intensity capibilities regardless of vibrator type
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2024-08-23 14:55:37 +05:30
Abhay Singh Gill
d1f4370293 Pong: Increase gain for 100ms+ haptics
- 96 > 126

Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2024-08-03 20:37:14 +05:30
Abhay Singh Gill
90464bbfce Pong: vibrator: Reduce gain for 100ms+ duration haptics
Signed-off-by: Abhay Singh Gill <abhaygill017@gmail.com>
2024-07-28 00:18:11 +05:30
Abhay Singh Gill
a661953f57 Pong: vibrator: Bring vibration intensity support 2024-07-12 17:13:18 +05:30
Mayur
64d18a3dc5 Pong: vibrator: Fix misleading indentation
Output:
device/nothing/Pong/vibrator/Vibrator.cpp:173:13:
error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
            return 0;
            ^
device/xiaomi/lmi/vibrator/Vibrator.cpp:171:9: note: previous statement is here
        if (playLengthMs != NULL)
        ^
1 error generated.

Signed-off-by: Ghosuto <clash.raja10@gmail.com>
2024-04-14 22:27:20 +05:30
Abhay Singh Gill
1de420430e Pong: vibrator: Make haptics a bit stronger
Vibrator gain more than 154 creates a slight vibration in the back glass of the device.
2024-04-10 18:15:37 +05:30
luk1337
693704485a Pong: vibrator: Implement Nothing vibrator effects
[HELLBOY017]: Closely observed by OnePlus's changes in OOS 11, the difference being that our vibrator firmware and kernel support only two wav indexes 1 for short vibrations and 4 for the long ones just like OEMs like motorola.

Co-authored-by: HELLBOY017 <abhaygill017@gmail.com>
2024-04-10 18:15:37 +05:30
HELLBOY017
d71c6f51a0 Pong: Checkout vibrator from LA.VENDOR.1.0.r2-06900-WAIPIO.QSSI14.0
Includes:
b9d1ef977a
923706cfe4
0225be0747

LED Vibrator node has been changed from /sys/class/leds/vibrator to /sys/class/leds/aw_vibrator.
2024-04-10 18:15:37 +05:30