2022-11-02 22:57:58 +01:00
|
|
|
on property:vendor.all.modules.ready=1
|
|
|
|
wait /sys/bus/i2c/devices/i2c-cs40l26a/calibration/redc_cal_time_ms
|
|
|
|
|
|
|
|
mkdir /mnt/vendor/persist/haptics 0770 system system
|
|
|
|
chmod 770 /mnt/vendor/persist/haptics
|
|
|
|
chmod 440 /mnt/vendor/persist/haptics/cs40l26.cal
|
|
|
|
chown system system /mnt/vendor/persist/haptics
|
|
|
|
chown system system /mnt/vendor/persist/haptics/cs40l26.cal
|
|
|
|
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/f0_stored
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/q_stored
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/calibration/redc_stored
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/vibe_state
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/num_waves
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/f0_offset
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/owt_free_space
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/f0_comp_enable
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/redc_comp_enable
|
|
|
|
chown system system /sys/bus/i2c/devices/i2c-cs40l26a/default/delay_before_stop_playback_us
|
|
|
|
|
|
|
|
enable vendor.vibrator.cs40l26
|
|
|
|
|
2022-11-02 23:21:50 +01:00
|
|
|
service vendor.vibrator.cs40l26 /vendor/bin/hw/android.hardware.vibrator-service.cs40l26-private-lynx
|
2022-11-02 22:57:58 +01:00
|
|
|
class hal
|
|
|
|
user system
|
2022-11-02 23:21:50 +01:00
|
|
|
group system input context_hub
|
2022-11-02 22:57:58 +01:00
|
|
|
|
|
|
|
setenv INPUT_EVENT_NAME cs40l26_input
|
|
|
|
setenv INPUT_EVENT_PATH /dev/input/event*
|
|
|
|
setenv PROPERTY_PREFIX ro.vendor.vibrator.hal.
|
|
|
|
setenv CALIBRATION_FILEPATH /mnt/vendor/persist/haptics/cs40l26.cal
|
|
|
|
|
|
|
|
setenv HWAPI_PATH_PREFIX /sys/bus/i2c/devices/i2c-cs40l26a/
|
|
|
|
setenv HWAPI_DEBUG_PATHS "
|
|
|
|
calibration/f0_stored
|
|
|
|
calibration/redc_stored
|
|
|
|
calibration/q_stored
|
|
|
|
default/vibe_state
|
|
|
|
default/num_waves
|
|
|
|
default/f0_offset
|
|
|
|
default/owt_free_space
|
|
|
|
default/f0_comp_enable
|
|
|
|
default/redc_comp_enable
|
|
|
|
default/delay_before_stop_playback_us
|
|
|
|
"
|
|
|
|
|
|
|
|
disabled
|