Commit graph

2 commits

Author SHA1 Message Date
dianlujitao
7c657543be
clover: Use voice speaker ACDB id for speaker
* Speaker isn't properly calibrated with ACDB from O-based MIUI (while
   it was on N), pop is heard when disabling speaker.
 * MIUI has speaker protection enabled, hence this route isn't even
   used by Xiaomi. However, with speaker protection enabled on Lineage,
   the volume curve became very strange, maybe Xiaomi uses Dirac audio
   effect to address this issue on MIUI, but it's not supported on AOSP.
 * Fortunately voice speaker seems to be properly calibrated, so apply
   that route to fix the issue.
 * Voice speaker gain in ACDB seems to be lower than speaker, so
   slightly increase gain in mixer paths to make it sound like a "normal"
   speaker.

Change-Id: Ic674973933595db0ae797a7fa767539a321664ff
2018-11-26 11:48:29 +01:00
GuaiYiHu
038548508d
clover: audio: Import Audio Configuration from MIUI 8.8.23 2018-09-27 12:08:59 +02:00