From 264ccf677bcb7b39cc0d09c97209c85198617a54 Mon Sep 17 00:00:00 2001 From: Nehemiah Date: Wed, 15 Nov 2023 14:24:02 -0500 Subject: [PATCH] Fix bluetooth and headset audio --- cat/patches/audio_configuration.patch | 293 ++++++++++++++++++++++++++ cat/system.prop | 3 - 2 files changed, 293 insertions(+), 3 deletions(-) create mode 100644 cat/patches/audio_configuration.patch diff --git a/cat/patches/audio_configuration.patch b/cat/patches/audio_configuration.patch new file mode 100644 index 0000000..2649edb --- /dev/null +++ b/cat/patches/audio_configuration.patch @@ -0,0 +1,293 @@ +diff --git a/services/audiopolicy/config/audio_policy_configuration.xml b/services/audiopolicy/config/audio_policy_configuration.xml +index b28381b32d..218cdf8e8f 100644 +--- a/services/audiopolicy/config/audio_policy_configuration.xml ++++ b/services/audiopolicy/config/audio_policy_configuration.xml +@@ -1,5 +1,8 @@ + +- ++ +- + + + + +- ++ + + + + + +- ++ + ++ Earpiece + Speaker ++ Telephony Tx + Built-In Mic + Built-In Back Mic ++ FM Tuner ++ Telephony Rx + + Speaker + +- +- ++ ++ ++ ++ ++ + +- +- ++ ++ + +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + +- ++ ++ ++ ++ + ++ + +- ++ ++ ++ ++ ++ ++ ++ + + +- ++ + + ++ + + + +- ++ + + +- +- +- +- ++ + + +- ++ + + +- ++ ++ ++ ++ + + +- ++ + + +- ++ + + +- ++ + + +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + +- ++ + + +- ++ ++ ++ ++ + + +- ++ + + +- ++ + + +- ++ + + + + +- +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ + + + + +- +- ++ ++ + + +- ++ + + +- +- +- +- +- +- +- ++ + + + + +- ++ + +- +- ++ ++ + + + +- +- +- +- +- +- + diff --git a/cat/system.prop b/cat/system.prop index be31202..a17245b 100644 --- a/cat/system.prop +++ b/cat/system.prop @@ -1,5 +1,2 @@ # Fixed Bluetooth audio persist.bluetooth.bluetooth_audio_hal.disabled=true -persist.sys.bt.unsupport.features=00000000 -persist.sys.bt.unsupport.states=00000000 -persist.sys.bt.unsupport.stdfeatures=000001