mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 18:07:31 +00:00
rosemary: vibrator: Use aw8622 vibrator node instead
Change-Id: I47afd990f50b44fe8e4c59ed8d126779243e4bcf
This commit is contained in:
@@ -24,9 +24,9 @@ namespace hardware {
|
||||
namespace vibrator {
|
||||
|
||||
// Driver Nodes
|
||||
static constexpr char activate_node[] = "/sys/devices/platform/haptic_pwm/activate";
|
||||
static constexpr char duration_node[] = "/sys/devices/platform/haptic_pwm/duration";
|
||||
static constexpr char index_node[] = "/sys/devices/platform/haptic_pwm/index";
|
||||
static constexpr char activate_node[] = "/sys/devices/platform/aw8622/activate";
|
||||
static constexpr char duration_node[] = "/sys/devices/platform/aw8622/duration";
|
||||
static constexpr char index_node[] = "/sys/devices/platform/aw8622/index";
|
||||
|
||||
// Define durations for waveforms
|
||||
static constexpr uint32_t WAVEFORM_TICK_EFFECT_MS = 10;
|
||||
|
||||
@@ -4,6 +4,6 @@ service vendor.vibrator-rosemary /vendor/bin/hw/android.hardware.vibrator-servic
|
||||
group system input
|
||||
|
||||
on post-fs
|
||||
chown system system /sys/devices/platform/haptic_pwm/activate
|
||||
chown system system /sys/devices/platform/haptic_pwm/duration
|
||||
chown system system /sys/devices/platform/haptic_pwm/index
|
||||
chown system system /sys/devices/platform/aw8622/activate
|
||||
chown system system /sys/devices/platform/aw8622/duration
|
||||
chown system system /sys/devices/platform/aw8622/index
|
||||
|
||||
Reference in New Issue
Block a user