diff --git a/device-felix.mk b/device-felix.mk index f05ba24..47cd6e3 100644 --- a/device-felix.mk +++ b/device-felix.mk @@ -214,7 +214,8 @@ PRODUCT_VENDOR_PROPERTIES += \ PRODUCT_VENDOR_PROPERTIES +=\ ro.vendor.vibrator.hal.long.frequency.shift=0 \ ro.vendor.vibrator.hal.gpio.num=44 \ - ro.vendor.vibrator.hal.gpio.shift=2 + ro.vendor.vibrator.hal.gpio.shift=2 \ + persist.vendor.vibrator.hal.chirp.enabled=0 ACTUATOR_MODEL := luxshare_ict_lt_xlra1906d # Fingerprint diff --git a/vibrator/cs40l26/Hardware.h b/vibrator/cs40l26/Hardware.h index 51619e5..7ad4017 100644 --- a/vibrator/cs40l26/Hardware.h +++ b/vibrator/cs40l26/Hardware.h @@ -359,9 +359,7 @@ class HwCal : public Vibrator::HwCal, private HwCalBase { return true; } bool isChirpEnabled() override { - bool value; - getProperty("chirp.enabled", &value, false); - return value; + return utils::getProperty("persist.vendor.vibrator.hal.chirp.enabled", false); } bool getSupportedPrimitives(uint32_t *value) override { return getProperty("supported_primitives", value, (uint32_t)0);