|
发表于 2022-2-18 16:16:12
只看该作者
7#
本帖最后由 firefly_zhongw 于 2022-2-18 16:23 编辑
1. 天线有没有都接上?
2. 微信打电话这应用场景,我们需要测试下;先测试播放视频,蓝牙耳机有没有声音输出
3. 用的什么型号蓝牙耳机?看能不能找到对应的蓝牙耳机来测试
4. 提供下log信息,如果不知道如何提供log信息,麻烦参考 “发帖前的建议” https://dev.t-firefly.com/thread-115778-1-1.html
5. 如果仅让蓝牙音频设备有声音输出,尝试如下补丁
- diff --git a/frameworks/av/services/audiopolicy/enginedefault/src/Engine.cpp b/frameworks/av/services/audiopolicy/enginedefault/src/Engine.cpp
- index cafa2b25d0c..e50f81aca9c 100755
- --- a/frameworks/av/services/audiopolicy/enginedefault/src/Engine.cpp
- +++ b/frameworks/av/services/audiopolicy/enginedefault/src/Engine.cpp
- @@ -421,9 +421,14 @@ DeviceVector Engine::getDevicesForStrategyInt(legacy_strategy strategy,
- }
- DeviceVector devices3;
- if (strategy == STRATEGY_MEDIA) {
- + // add by firefly
- + if (outputs.isA2dpSupported()) {
- + devices3 = availableOutputDevices.getDevicesFromTypes({AUDIO_DEVICE_OUT_BLUETOOTH_A2DP});
- + } else {
- // ARC, SPDIF and AUX_LINE can co-exist with others.
- devices3 = availableOutputDevices.getDevicesFromTypes({
- AUDIO_DEVICE_OUT_HDMI_ARC, AUDIO_DEVICE_OUT_SPDIF, AUDIO_DEVICE_OUT_AUX_LINE,AUDIO_DEVICE_OUT_WIRED_HEADPHONE,AUDIO_DEVICE_OUT_AUX_DIGITAL,AUDIO_DEVICE_OUT_SPEAKER});
- + }
- }
-
- devices2.add(devices3);
复制代码
|
|