sm8250-common: Add custom audio amplifier for TFA amp feedback

* Based on observing reverse engineering from davinci stock audio HAL.
 * Fixes speaker distortion on high volume.

 * Same logic with Smosia, rewritten by me.

Co-authored-by: Smosia <stasenko_nv@nrcki.ru>
Change-Id: I369555a9fcb06065177636b436d2e006c7a0b07d
This commit is contained in:
PIPIPIG233666
2020-02-14 22:39:33 -05:00
committed by LuK1337
parent c5ba644983
commit 278ffc532d
4 changed files with 287 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ AUDIO_FEATURE_ENABLED_DLKM := true
AUDIO_FEATURE_ENABLED_DS2_DOLBY_DAP := false
AUDIO_FEATURE_ENABLED_DTS_EAGLE := false
AUDIO_FEATURE_ENABLED_DYNAMIC_LOG := false
AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := true
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
AUDIO_FEATURE_ENABLED_GEF_SUPPORT := true
AUDIO_FEATURE_ENABLED_HW_ACCELERATED_EFFECTS := false