From def7dd95932ba7357b4c26cfa03e34e0dbf39f81 Mon Sep 17 00:00:00 2001 From: "Ali K. Zadeh" Date: Tue, 12 Jul 2022 18:10:41 +0000 Subject: [PATCH 1/4] MIF frequency optimization for 60fps video recording use-case This CL sets the MIF min clock frequency to 1539MHz, which based on initial ODPM and MIPS measurements shows benefit both in terms of power consumption and cycles-per-instructions (CPI), reducing the gap with R4 device. Bug: 238775955 Test: ODPM and CPI tests. Link to test results provided in the bug. Change-Id: I6fc043c3d0d9f052c02dd04eb47f22661cfade6a --- powerhint-cheetah-a0.json | 3 ++- powerhint-cheetah.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/powerhint-cheetah-a0.json b/powerhint-cheetah-a0.json index 1fe3729..6f27263 100644 --- a/powerhint-cheetah-a0.json +++ b/powerhint-cheetah-a0.json @@ -5,6 +5,7 @@ "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Values": [ "3172000", + "1539000", "1014000", "421000" ], @@ -961,7 +962,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", "Duration": 0, - "Value": "1014000" + "Value": "1539000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", diff --git a/powerhint-cheetah.json b/powerhint-cheetah.json index 67e9845..fd31e44 100644 --- a/powerhint-cheetah.json +++ b/powerhint-cheetah.json @@ -5,6 +5,7 @@ "Path": "/sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/min_freq", "Values": [ "3172000", + "1539000", "1014000", "421000" ], @@ -982,7 +983,7 @@ "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "MemFreq", "Duration": 0, - "Value": "1014000" + "Value": "1539000" }, { "PowerHint": "CAMERA_STREAMING_HIGH", From 6834a1034cf5604fbb5dbf947e450676ca67bab9 Mon Sep 17 00:00:00 2001 From: millerliang Date: Thu, 14 Jul 2022 08:57:31 +0000 Subject: [PATCH 2/4] audio: apply new pcm id for immersive output Change to use pcm id 30 for immersive output, which is using raw path in AoC to get lower roundtrip latency. Bug: 237677573 Test: spatial audio playback Change-Id: I6519f75daf2f65dc8f1e2a4a3827f8956f563c35 --- audio/cheetah/config/audio_platform_configuration.xml | 2 +- audio/cheetah/config/audio_policy_configuration.xml | 2 +- .../audio_policy_configuration_a2dp_offload_disabled.xml | 2 +- .../audio_policy_configuration_le_offload_disabled.xml | 2 +- audio/cheetah/config/mixer_paths.xml | 9 ++++++--- audio/panther/config/audio_platform_configuration.xml | 2 +- audio/panther/config/audio_policy_configuration.xml | 2 +- .../audio_policy_configuration_a2dp_offload_disabled.xml | 2 +- .../audio_policy_configuration_le_offload_disabled.xml | 2 +- audio/panther/config/mixer_paths.xml | 9 ++++++--- 10 files changed, 20 insertions(+), 14 deletions(-) diff --git a/audio/cheetah/config/audio_platform_configuration.xml b/audio/cheetah/config/audio_platform_configuration.xml index 165ea71..96e94ef 100644 --- a/audio/cheetah/config/audio_platform_configuration.xml +++ b/audio/cheetah/config/audio_platform_configuration.xml @@ -184,7 +184,7 @@ - + diff --git a/audio/cheetah/config/audio_policy_configuration.xml b/audio/cheetah/config/audio_policy_configuration.xml index 4a96bda..9932b6f 100644 --- a/audio/cheetah/config/audio_policy_configuration.xml +++ b/audio/cheetah/config/audio_policy_configuration.xml @@ -65,7 +65,7 @@ samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - + @@ -152,6 +153,7 @@ + @@ -163,6 +165,7 @@ + @@ -450,15 +453,15 @@ - + - + - + diff --git a/audio/panther/config/audio_platform_configuration.xml b/audio/panther/config/audio_platform_configuration.xml index 165ea71..96e94ef 100644 --- a/audio/panther/config/audio_platform_configuration.xml +++ b/audio/panther/config/audio_platform_configuration.xml @@ -184,7 +184,7 @@ - + diff --git a/audio/panther/config/audio_policy_configuration.xml b/audio/panther/config/audio_policy_configuration.xml index 4a96bda..9932b6f 100644 --- a/audio/panther/config/audio_policy_configuration.xml +++ b/audio/panther/config/audio_policy_configuration.xml @@ -65,7 +65,7 @@ samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_STEREO"/> - - - + @@ -152,6 +153,7 @@ + @@ -163,6 +165,7 @@ + @@ -450,15 +453,15 @@ - + - + - + From 8e4ed25ff9affd8a720aacdc2489fc63aebfb3fc Mon Sep 17 00:00:00 2001 From: Robin Peng Date: Thu, 14 Jul 2022 21:22:30 +0800 Subject: [PATCH 3/4] init: set vendor.all.modules.ready and vendor.all.devices.ready migrated from init.gs201.rc Bug: 238853979 Signed-off-by: Robin Peng Change-Id: I4882892261dd42791d42d51e162e6ee9ffd25615 --- init.insmod.cheetah.cfg | 2 ++ init.insmod.cloudripper.cfg | 2 ++ init.insmod.panther.cfg | 2 ++ init.insmod.ravenclaw.cfg | 2 ++ 4 files changed, 8 insertions(+) diff --git a/init.insmod.cheetah.cfg b/init.insmod.cheetah.cfg index 5f572ff..7487e1e 100644 --- a/init.insmod.cheetah.cfg +++ b/init.insmod.cheetah.cfg @@ -15,3 +15,5 @@ modprobe|snd-soc-cs40l26.ko # All device specific modules loaded setprop|vendor.device.modules.ready +setprop|vendor.all.modules.ready +setprop|vendor.all.devices.ready diff --git a/init.insmod.cloudripper.cfg b/init.insmod.cloudripper.cfg index fa79138..4d6ab6f 100644 --- a/init.insmod.cloudripper.cfg +++ b/init.insmod.cloudripper.cfg @@ -16,3 +16,5 @@ modprobe|snd-soc-cs40l26.ko # All device specific modules loaded setprop|vendor.device.modules.ready +setprop|vendor.all.modules.ready +setprop|vendor.all.devices.ready diff --git a/init.insmod.panther.cfg b/init.insmod.panther.cfg index 1c26e62..c82a69e 100644 --- a/init.insmod.panther.cfg +++ b/init.insmod.panther.cfg @@ -15,3 +15,5 @@ modprobe|snd-soc-cs40l26.ko # All device specific modules loaded setprop|vendor.device.modules.ready +setprop|vendor.all.modules.ready +setprop|vendor.all.devices.ready diff --git a/init.insmod.ravenclaw.cfg b/init.insmod.ravenclaw.cfg index 6327abc..b861609 100644 --- a/init.insmod.ravenclaw.cfg +++ b/init.insmod.ravenclaw.cfg @@ -14,3 +14,5 @@ modprobe|haptics-cs40l2x.ko # All device specific modules loaded setprop|vendor.device.modules.ready +setprop|vendor.all.modules.ready +setprop|vendor.all.devices.ready From 8ce25a85512b23ed7acd1b25993857c7d03e4e88 Mon Sep 17 00:00:00 2001 From: Omer Osman Date: Sun, 3 Jul 2022 18:37:04 +0000 Subject: [PATCH 4/4] Add support for Opus as a BT A2DP Offload codec Bug: 226441860 Test: Sink device using bds-dev Change-Id: Ib7395300b01d137a5156be5bad5f311d55b03f59 --- audio/cheetah/config/audio_policy_configuration.xml | 6 +++--- .../audio_policy_configuration_le_offload_disabled.xml | 6 +++--- audio/cloudripper/config/audio_policy_configuration.xml | 6 +++--- audio/panther/config/audio_policy_configuration.xml | 6 +++--- .../audio_policy_configuration_le_offload_disabled.xml | 6 +++--- audio/ravenclaw/config/audio_policy_configuration.xml | 6 +++--- device-cheetah.mk | 2 +- device-cloudripper.mk | 2 +- device-panther.mk | 2 +- device-ravenclaw.mk | 2 +- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/audio/cheetah/config/audio_policy_configuration.xml b/audio/cheetah/config/audio_policy_configuration.xml index 9932b6f..98467c4 100644 --- a/audio/cheetah/config/audio_policy_configuration.xml +++ b/audio/cheetah/config/audio_policy_configuration.xml @@ -163,17 +163,17 @@ + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> diff --git a/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml b/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml index 7bdfbf4..675d804 100644 --- a/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml +++ b/audio/cheetah/config/audio_policy_configuration_le_offload_disabled.xml @@ -163,17 +163,17 @@ + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> diff --git a/audio/cloudripper/config/audio_policy_configuration.xml b/audio/cloudripper/config/audio_policy_configuration.xml index 6a88c0a..c26066a 100644 --- a/audio/cloudripper/config/audio_policy_configuration.xml +++ b/audio/cloudripper/config/audio_policy_configuration.xml @@ -158,17 +158,17 @@ + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> diff --git a/audio/panther/config/audio_policy_configuration.xml b/audio/panther/config/audio_policy_configuration.xml index 9932b6f..98467c4 100644 --- a/audio/panther/config/audio_policy_configuration.xml +++ b/audio/panther/config/audio_policy_configuration.xml @@ -163,17 +163,17 @@ + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> diff --git a/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml b/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml index 7bdfbf4..675d804 100644 --- a/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml +++ b/audio/panther/config/audio_policy_configuration_le_offload_disabled.xml @@ -163,17 +163,17 @@ + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> diff --git a/audio/ravenclaw/config/audio_policy_configuration.xml b/audio/ravenclaw/config/audio_policy_configuration.xml index 63084ef..4106f76 100644 --- a/audio/ravenclaw/config/audio_policy_configuration.xml +++ b/audio/ravenclaw/config/audio_policy_configuration.xml @@ -158,17 +158,17 @@ + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> + encodedFormats="AUDIO_FORMAT_OPUS AUDIO_FORMAT_AAC AUDIO_FORMAT_SBC"> diff --git a/device-cheetah.mk b/device-cheetah.mk index 9d34f9b..6846d80 100644 --- a/device-cheetah.mk +++ b/device-cheetah.mk @@ -142,7 +142,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.bluetooth.a2dp_offload.supported=true \ persist.bluetooth.a2dp_offload.disabled=false \ - persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac + persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus # Spatial Audio PRODUCT_PACKAGES += \ diff --git a/device-cloudripper.mk b/device-cloudripper.mk index 025cdbf..c045a35 100644 --- a/device-cloudripper.mk +++ b/device-cloudripper.mk @@ -98,7 +98,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.bluetooth.a2dp_offload.supported=true \ persist.bluetooth.a2dp_offload.disabled=false \ - persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac + persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus # Spatial Audio PRODUCT_PACKAGES += \ diff --git a/device-panther.mk b/device-panther.mk index d95d2d4..302a8c9 100644 --- a/device-panther.mk +++ b/device-panther.mk @@ -126,7 +126,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.bluetooth.a2dp_offload.supported=true \ persist.bluetooth.a2dp_offload.disabled=false \ - persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac + persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus # Spatial Audio PRODUCT_PACKAGES += \ diff --git a/device-ravenclaw.mk b/device-ravenclaw.mk index 6fd96ea..1c1ac1f 100644 --- a/device-ravenclaw.mk +++ b/device-ravenclaw.mk @@ -103,7 +103,7 @@ PRODUCT_COPY_FILES += \ PRODUCT_PROPERTY_OVERRIDES += \ ro.bluetooth.a2dp_offload.supported=true \ persist.bluetooth.a2dp_offload.disabled=false \ - persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac + persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac-opus # Keymaster HAL #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service