felix/vibrator: Disable PWLE by default
Set chirp.enabled prop to 0 by default so that it will not cause tests to fail. Change prop to persist from ro so that it can be enabled for testing. Update Felix HAL to use new prop. Bug: 286921585 Test: Tried using idlcli composePwle before/after setting prop Change-Id: Ibca473aef62b7cc8e84689ddba83a91daddb8d2e Signed-off-by: Nathan Kulczak <nathankulczak@google.com>
This commit is contained in:
parent
06e23b6c89
commit
74a0f2b801
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue