From 7c657543be76e6cb61f811ed5aa3760f5fe48443 Mon Sep 17 00:00:00 2001 From: dianlujitao Date: Tue, 2 Oct 2018 19:46:38 +0800 Subject: [PATCH] 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 --- audio/audio_platform_info.xml | 2 +- audio/mixer_paths.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml index 78aabb4..9bd1d87 100644 --- a/audio/audio_platform_info.xml +++ b/audio/audio_platform_info.xml @@ -75,7 +75,7 @@ - + diff --git a/audio/mixer_paths.xml b/audio/mixer_paths.xml index 1576fa1..471af3b 100644 --- a/audio/mixer_paths.xml +++ b/audio/mixer_paths.xml @@ -318,8 +318,8 @@ - - + +