From b988c9c984e003cd452c3156bb1fa7a8abf1d2b3 Mon Sep 17 00:00:00 2001 From: Deokgyu Yang Date: Tue, 27 Jul 2021 22:12:42 +0900 Subject: [PATCH] gts3l-common: audio: Vendor audio HAL working but no quad speakers This can be done bacause of removing all "Telephony ?X" things from audio_policy_configuration.xml. This should not be like this. Instead, now voice recording and headphone jack get working. Signed-off-by: Deokgyu Yang Change-Id: I7c5a027d059ff5c69cd73bb2f129a1e5d07ad4aa --- audio/audio/audio_policy_configuration.xml | 304 +++++++++++++++++++++ audio/audio_platform_info.xml | 1 - audio/audio_platform_info_diff.xml | 1 + audio/audio_policy_configuration.xml | 145 ++-------- gts3l.mk | 3 +- 5 files changed, 323 insertions(+), 131 deletions(-) create mode 100644 audio/audio/audio_policy_configuration.xml diff --git a/audio/audio/audio_policy_configuration.xml b/audio/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..f1f7ef6 --- /dev/null +++ b/audio/audio/audio_policy_configuration.xml @@ -0,0 +1,304 @@ + + + + + + + + + + + + + + + + + Earpiece + Speaker + + Built-In Mic + Built-In Back Mic + FM Tuner + + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audio/audio_platform_info.xml b/audio/audio_platform_info.xml index 395a126..203b3dc 100644 --- a/audio/audio_platform_info.xml +++ b/audio/audio_platform_info.xml @@ -47,7 +47,6 @@ - diff --git a/audio/audio_platform_info_diff.xml b/audio/audio_platform_info_diff.xml index 0276541..fe60775 100644 --- a/audio/audio_platform_info_diff.xml +++ b/audio/audio_platform_info_diff.xml @@ -27,6 +27,7 @@ + diff --git a/audio/audio_policy_configuration.xml b/audio/audio_policy_configuration.xml index 9b0234b..8d12a8b 100644 --- a/audio/audio_policy_configuration.xml +++ b/audio/audio_policy_configuration.xml @@ -49,22 +49,14 @@ - Earpiece Speaker - Telephony Tx Built-In Mic Built-In Back Mic - FM Tuner - Telephony Rx Speaker - - - - + @@ -73,32 +65,11 @@ - - - - - - - - @@ -108,15 +79,6 @@ - - - @@ -129,48 +91,25 @@ + samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> - - - - - + - - - - - - - - + samplingRates="8000,16000" channelMasks="AUDIO_CHANNEL_IN_MONO"/> - - + @@ -182,10 +121,6 @@ - - - @@ -198,27 +133,6 @@ - - - - - - - - - - - - - - - - - - - - - - + sources="primary output,deep_buffer,BT SCO Headset Mic"/> + sources="primary output,deep_buffer,compressed_offload,BT SCO Headset Mic"/> + sources="primary output,deep_buffer,compressed_offload,BT SCO Headset Mic"/> - - - - - - + sources="primary output,deep_buffer,compressed_offload,BT SCO Headset Mic"/> - - - + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic"/> - + - + - + - - + + diff --git a/gts3l.mk b/gts3l.mk index a3b7eab..de49a33 100755 --- a/gts3l.mk +++ b/gts3l.mk @@ -106,13 +106,14 @@ PRODUCT_PACKAGES += \ libaudioprimary_shim PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/audio/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \ $(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ $(LOCAL_PATH)/audio/audio_tuning_mixer.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer.txt \ $(LOCAL_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \ $(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \ $(LOCAL_PATH)/audio/audio_platform_info_diff.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_diff.xml \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ - $(LOCAL_PATH)/audio/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml \ + $(LOCAL_PATH)/audio/mixer_paths_tasha.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tasha.xml PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \