From 74c132822f60766d13c6eb49f28e911c2a2cf50c Mon Sep 17 00:00:00 2001 From: New Author Name Date: Sat, 11 Jan 2025 21:45:54 +0530 Subject: [PATCH] sm8350-common: audio: Import OOS modified volumes Signed-off-by: Pranav Vashi --- audio/audio_policy_volumes.xml | 348 ++++++++++++++++++++++++++++++++ audio/default_volume_tables.xml | 141 +++++++++++++ common.mk | 6 +- 3 files changed, 493 insertions(+), 2 deletions(-) create mode 100644 audio/audio_policy_volumes.xml create mode 100644 audio/default_volume_tables.xml diff --git a/audio/audio_policy_volumes.xml b/audio/audio_policy_volumes.xml new file mode 100644 index 0000000..2085c97 --- /dev/null +++ b/audio/audio_policy_volumes.xml @@ -0,0 +1,348 @@ + + + + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + + + + + 1,-4050 + 33,-2950 + 66,-2100 + 100,0 + + + + + 1,-2970 + 33,-2010 + 66,-1020 + 100,0 + + + + + 1,-6300 + 20,-3600 + 60,-2300 + 100,-500 + + + + + + + + + + + + + 1,-2970 + + 33,-2010 + 66,-1020 + 100,0 + + + + + + + + + 1,-2970 + 33,-2010 + 66,-1020 + 100,0 + + + + + + + 0,-2400 + 33,-1600 + 66,-800 + + 100,0 + + + + 0,-2400 + 33,-1600 + 66,-800 + + 100,0 + + + + 0,-2400 + 33,-1600 + 66,-800 + + 100,0 + + + 0,-2400 + 33,-1600 + 66,-800 + 100,0 + + + 0,-4200 + 33,-2800 + 66,-1400 + 100,0 + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + 1,-3000 + 33,-2600 + 66,-2200 + 100,-1800 + + + + 1,-3000 + 33,-2400 + 66,-1800 + 100,-1000 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/audio/default_volume_tables.xml b/audio/default_volume_tables.xml new file mode 100644 index 0000000..04e9706 --- /dev/null +++ b/audio/default_volume_tables.xml @@ -0,0 +1,141 @@ + + + + + + + + 0,0 + 100,0 + + + 0,-9600 + 100,-9600 + + + + 1,-2400 + 33,-1800 + 66,-1200 + 100,-600 + + + + 1,-5800 + 20,-4000 + 60,-1700 + 100,0 + + + 1,-6100 + 20,-4000 + 60,-1650 + 100,0 + + + 1,-5800 + 20,-4000 + 60,-1700 + 100,0 + + + + 1,-4950 + 33,-3350 + 66,-1700 + 100,0 + + + + + 1,-5300 + 20,-3300 + 60,-1000 + 100,0 + + + + + 1,-4950 + 33,-3350 + 66,-1700 + 100,0 + + + + 1,-5800 + 20,-4000 + 60,-2100 + 100,-1000 + + + + 1,-12700 + 20,-8000 + 60,-4000 + 100,0 + + + + + + + + + 0,-5800 + 20,-4000 + 60,-1700 + 100,0 + + + + + 0,-4950 + 33,-3350 + 66,-1700 + 100,0 + + + + + 0,-5800 + 20,-4000 + 60,-1700 + 100,0 + + + + + 0,-4950 + 33,-3350 + 66,-1700 + 100,0 + + + + + 0,-5800 + 20,-4000 + 60,-2100 + 100,-1000 + + + + + 0,-12700 + 20,-8000 + 60,-4000 + 100,0 + + diff --git a/common.mk b/common.mk index 1c2eb32..55024f1 100644 --- a/common.mk +++ b/common.mk @@ -65,9 +65,11 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_yupik/audio_policy_configuration.xml PRODUCT_COPY_FILES += \ - frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ + $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \ + $(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ + +PRODUCT_COPY_FILES += \ frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration_7_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration_7_0.xml \ - frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \ frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \