From 1c8c1a160e3efc11e2f07cbab39f9601f5b728c2 Mon Sep 17 00:00:00 2001 From: Chris Paulo Date: Mon, 22 Jul 2024 17:06:14 -0700 Subject: [PATCH] haptics: Update output distortion gain Recommended output distortion gain is 0.38. Bug: 328799172 Test: getprop | grep hapticgenerator Flag: EXEMPT bugfix Change-Id: Iaf6b88680c05fe14a46d3d7fe9fe43bdc05b9314 --- device-husky.mk | 4 ++++ device-shiba.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/device-husky.mk b/device-husky.mk index 1c1e3b0..82e22fe 100644 --- a/device-husky.mk +++ b/device-husky.mk @@ -401,6 +401,10 @@ PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.dbc.txlvlholdoffms=0 \ ro.vendor.vibrator.hal.pm.activetimeout=5 +# Override Output Distortion Gain +PRODUCT_VENDOR_PROPERTIES += \ + vendor.audio.hapticgenerator.distortion.output.gain=0.38 + # Increment the SVN for any official public releases ifdef RELEASE_SVN_HUSKY TARGET_SVN ?= $(RELEASE_SVN_HUSKY) diff --git a/device-shiba.mk b/device-shiba.mk index a6b6093..55289b3 100644 --- a/device-shiba.mk +++ b/device-shiba.mk @@ -378,6 +378,10 @@ PRODUCT_VENDOR_PROPERTIES += \ ro.vendor.vibrator.hal.dbc.txlvlholdoffms=0 \ ro.vendor.vibrator.hal.pm.activetimeout=5 +# Override Output Distortion Gain +PRODUCT_VENDOR_PROPERTIES += \ + vendor.audio.hapticgenerator.distortion.output.gain=0.38 + # Increment the SVN for any official public releases ifdef RELEASE_SVN_SHIBA TARGET_SVN ?= $(RELEASE_SVN_SHIBA)