From 951ffccbc6afd0add395875e6d7dfecbabc93961 Mon Sep 17 00:00:00 2001 From: David Li Date: Thu, 25 May 2023 13:05:43 +0800 Subject: [PATCH] audio: update audio AIDL config files - remove audio_policy_configuration.xml - add in-call-capture paths - add "PCM Soft Ramp" for speaker amp - set default "Digital PCM Volume" to 0 Bug: 206737711 Test: mm Change-Id: Id061ab2f80975dc1452a30537b82b6b474984fd3 --- .../audio_policy_configuration.xml | 213 ------------------ .../cheetah/aidl_config/mixer_paths_aidl.xml | 62 ++++- audio/cheetah/audio-tables.mk | 1 - .../audio_policy_configuration.xml | 213 ------------------ .../panther/aidl_config/mixer_paths_aidl.xml | 62 ++++- audio/panther/audio-tables.mk | 1 - 6 files changed, 102 insertions(+), 450 deletions(-) delete mode 100644 audio/cheetah/aidl_config/audio_policy_configuration.xml delete mode 100644 audio/panther/aidl_config/audio_policy_configuration.xml diff --git a/audio/cheetah/aidl_config/audio_policy_configuration.xml b/audio/cheetah/aidl_config/audio_policy_configuration.xml deleted file mode 100644 index cd60b23..0000000 --- a/audio/cheetah/aidl_config/audio_policy_configuration.xml +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - - - - Speaker - Speaker Safe - Earpiece - Built-In Mic - Built-In Back Mic - Telephony Tx - Voice Call And Telephony Rx - Echo Ref In - - Speaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/audio/cheetah/aidl_config/mixer_paths_aidl.xml b/audio/cheetah/aidl_config/mixer_paths_aidl.xml index fb09ac8..3880462 100644 --- a/audio/cheetah/aidl_config/mixer_paths_aidl.xml +++ b/audio/cheetah/aidl_config/mixer_paths_aidl.xml @@ -79,8 +79,8 @@ - - + + @@ -97,6 +97,8 @@ + + @@ -657,9 +659,41 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -679,6 +713,7 @@ + @@ -686,6 +721,7 @@ + @@ -697,6 +733,8 @@ + + @@ -713,6 +751,7 @@ + @@ -721,6 +760,7 @@ + @@ -779,12 +819,12 @@ - - - - - - + + + + + + diff --git a/audio/cheetah/audio-tables.mk b/audio/cheetah/audio-tables.mk index d4ce667..b9d5e0f 100644 --- a/audio/cheetah/audio-tables.mk +++ b/audio/cheetah/audio-tables.mk @@ -22,7 +22,6 @@ AUDIO_TABLE_FOLDER := cheetah ifeq ($(BUILD_AUDIO_AIDL_VERSION),true) # AIDL HAL configs are in the *config_aidl* folder PRODUCT_COPY_FILES += \ - device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_platform_configuration_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_configuration_aidl.xml \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/mixer_paths_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_aidl.xml diff --git a/audio/panther/aidl_config/audio_policy_configuration.xml b/audio/panther/aidl_config/audio_policy_configuration.xml deleted file mode 100644 index cd60b23..0000000 --- a/audio/panther/aidl_config/audio_policy_configuration.xml +++ /dev/null @@ -1,213 +0,0 @@ - - - - - - - - - Speaker - Speaker Safe - Earpiece - Built-In Mic - Built-In Back Mic - Telephony Tx - Voice Call And Telephony Rx - Echo Ref In - - Speaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/audio/panther/aidl_config/mixer_paths_aidl.xml b/audio/panther/aidl_config/mixer_paths_aidl.xml index fb09ac8..3880462 100644 --- a/audio/panther/aidl_config/mixer_paths_aidl.xml +++ b/audio/panther/aidl_config/mixer_paths_aidl.xml @@ -79,8 +79,8 @@ - - + + @@ -97,6 +97,8 @@ + + @@ -657,9 +659,41 @@ - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -679,6 +713,7 @@ + @@ -686,6 +721,7 @@ + @@ -697,6 +733,8 @@ + + @@ -713,6 +751,7 @@ + @@ -721,6 +760,7 @@ + @@ -779,12 +819,12 @@ - - - - - - + + + + + + diff --git a/audio/panther/audio-tables.mk b/audio/panther/audio-tables.mk index 6a7619f..3dbc52e 100644 --- a/audio/panther/audio-tables.mk +++ b/audio/panther/audio-tables.mk @@ -22,7 +22,6 @@ AUDIO_TABLE_FOLDER := panther ifeq ($(BUILD_AUDIO_AIDL_VERSION),true) # AIDL HAL configs are in the *aidl_config* folder PRODUCT_COPY_FILES += \ - device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_platform_configuration_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_configuration_aidl.xml \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ device/google/pantah/audio/$(AUDIO_TABLE_FOLDER)/aidl_config/mixer_paths_aidl.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_aidl.xml