mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2026-11-28 00:34:27 +00:00
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
16 lines
512 B
C++
16 lines
512 B
C++
/*
|
|
* 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;
|