Merge "felix/vibrator: Disable PWLE by default" into main

This commit is contained in:
Nathan Kulczak 2023-08-17 15:52:09 +00:00 committed by Android (Google) Code Review
commit f200427cf5
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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);