From 88b956f6f3cd12f6f4aa36d2705f23b418ab3819 Mon Sep 17 00:00:00 2001 From: zyx0106 Date: Wed, 10 Sep 2025 15:06:08 +0800 Subject: [PATCH] fix headmove fail after SCO Signed-off-by: zyx0106 --- .../native/audioeffect/src/audio_effect_chain_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/native/audioeffect/src/audio_effect_chain_manager.cpp b/frameworks/native/audioeffect/src/audio_effect_chain_manager.cpp index d20da21de6..f40fe8a7ea 100644 --- a/frameworks/native/audioeffect/src/audio_effect_chain_manager.cpp +++ b/frameworks/native/audioeffect/src/audio_effect_chain_manager.cpp @@ -1365,7 +1365,8 @@ void AudioEffectChainManager::UpdateSpatializationEnabled(AudioSpatializationSta memset_s(static_cast(effectHdiInput_), sizeof(effectHdiInput_), 0, sizeof(effectHdiInput_)); if (spatializationEnabled_) { - if ((deviceType_ == DEVICE_TYPE_BLUETOOTH_A2DP) && (!btOffloadSupported_)) { + if (((deviceType_ == DEVICE_TYPE_BLUETOOTH_A2DP) || (deviceType_ == DEVICE_TYPE_BLUETOOTH_SCO)) && + (!btOffloadSupported_)) { AUDIO_INFO_LOG("A2dp-hal, enter ARM processing"); btOffloadEnabled_ = false; SetSpatializationEnabledToChains(); -- Gitee