mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-11-30 09:44:25 +00:00
ferrari: Use synthesized vibrator effects
Generate the effects and composition primitives of libqtivibratoreffect.oplus for this LRA. The response constants are starting points to tune by feel. Assisted-by: LLM Change-Id: I3ddaaeb797be1f4240dea315868adc67e84a20d7
This commit is contained in:
1 parent
e994804063
commit
2ed3f63d32
2 files changed
+18
No files matched your search
@@ -74,6 +74,9 @@ PRODUCT_PACKAGES += \
|
|||||||
PRODUCT_SOONG_NAMESPACES += \
|
PRODUCT_SOONG_NAMESPACES += \
|
||||||
$(LOCAL_PATH)
|
$(LOCAL_PATH)
|
||||||
|
|
||||||
|
# Vibrator
|
||||||
|
$(call soong_config_set,OPLUS_LINEAGE_VIBRATOR_EFFECT,INCLUDE_DIR,$(LOCAL_PATH)/vibrator)
|
||||||
|
|
||||||
# Inherit from the common OEM chipset makefile.
|
# Inherit from the common OEM chipset makefile.
|
||||||
$(call inherit-product, device/oneplus/sm8450-common/common.mk)
|
$(call inherit-product, device/oneplus/sm8450-common/common.mk)
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: The LineageOS Project
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
// Measured CL_TLRA 5706 us; the DT's qcom,lra-period-us = <5882> is nominal.
|
||||||
|
constexpr float kF0 = 175.0f;
|
||||||
|
// Loaded quality factor, and the steady drive at resonance for 1 G
|
||||||
|
// (2000 mV of qcom,fifo-vmax-mv = <8900>).
|
||||||
|
constexpr float kQ = 8.0f;
|
||||||
|
constexpr float kLevelPerG = 0.225f;
|
||||||
|
// Drive limit for the long chirps (5000 mV); taps may use the full scale.
|
||||||
|
constexpr float kSustainMaxLevel = 0.562f;
|
||||||
Reference in new issue
Block a user