| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
add moduleInfo.DeviceType Signed-off-by: wuyajun123 <wuyajun12@h-partners.com> | 1 个月前 | |
latency optimization Signed-off-by: qq_44634190 <wangjian596@huawei.com> | 2 个月前 | |
P7885 采样频率适配 Signed-off-by: fuxiuwsz <wangshengze1@huawei.com> | 15 天前 | |
重构SCO音频场景管理:合并HandleScoWithRecongnition到UpdateAudioScene,移除冗余接口 Co-Authored-By: Agent Signed-off-by: Gisaac <gongjie13@huawei.com> | 1 个月前 | |
feat: add SOURCE_TYPE_UNPROCESSED_VOICE_ASSISTANT to SLE voice assistant stream mapping Map the new SOURCE_TYPE_UNPROCESSED_VOICE_ASSISTANT source type to SLE_AUDIO_STREAM_VOICE_ASSISTANT in SOURCE_TYPE_TO_SLE_STREAM_TYPE so that unprocessed voice assistant captures are routed correctly. Signed-off-by: Wang Hengshen <wanghengshen1@huawei.com> Co-Authored-By: Agent | 7 天前 | |
feat: VA controller客户端挂掉清理(audio server清缓存+policy server断设备) accessory manager(客户端)经RegisterVADeviceController/broker把controller stub传给audio server和policy server,两侧分别持有controller代理。客户端进程挂掉后两侧代理失效但服务端无感知。参照audio_server.cpp:711 ProxyDeathRecipient模式(服务端对客户端binder代理加AddDeathRecipient): 1) audio server侧VADeviceControllerRegistry::RegisterController对controller->AsObject()加VADeviceControllerDeathRecipient,回调触发UnregisterController(address)清controller缓存。 2) policy server侧VADeviceManager::OnDevicesConnected对controller->AsObject()加VADeviceDeathRecipient,回调触发OnDevicesDisconnected(vaDevice)清状态+断开设备(OnDeviceStatusUpdated(false)通知框架下线+erase+注销adapter)。OnDevicesDisconnected改为幂等(先查map不存在则跳过),防'显式断开后又死亡'双触发。 撤回之前误加在OHAudioAccessoryManager侧(对audio server代理加death recipient,触发的是audio server挂、方向反了)的代码。 Co-Authored-By: Agent Signed-off-by: Gisaac <gongjie13@huawei.com> | 15 天前 | |
udpateStreamDeviceMap does not update non-running stream devices Signed-off-by: qq_44634190 <wangjian596@huawei.com> | 9 天前 | |
fixut Signed-off-by: Lzh87048 <lizihao56@h-partners.com> | 20 天前 | |
app select dmic Co-Authored-By: Agent Signed-off-by: seveno0 <luoqi56@huawei.com> | 2 个月前 | |
fix(audio_policy): mark clear-check fetch as running to fix force-select clear During ringing with a force-selected BT speaker, when a BT earphone connects/worn, the force-select was not cleared so audio stayed on the speaker. The clear-check FetchDeviceInfo had bypassType=USER_SELECT but isRunning=false, so WirelessConflictHandler skipped running streams in priority detection and could not correctly identify the force-select conflict, leaving fetched routerType=USER_SELECT and tripping the fetched.second != USER_SELECT guard in NeedClearPreferredMediaRenderer / NeedClearPreferredWhenCategoryUpdated. Set info.isRunning=true on the clear-check / device-selection fetch paths so the conflict handler treats the stream as running, yields a non-user-select device, and allows the force-select to be cleared and audio to switch to the earphone. Signed-off-by: Wang Hengshen <wanghengshen1@huawei.com> Co-Authored-By: Agent | 15 天前 | |
MIC device access Signed-off-by: chenyaowen6 <chenyaowen6@huawei.com> | 19 天前 | |
代码同步 Signed-off-by: jiao_1_2_3 <jiaoruiting@huawei.com> | 1 个月前 | |
feat: add deduplication for preferred device callbacks Add tracking for last sent device descriptors to prevent sending duplicate callbacks when the preferred device hasn't changed. - Add lastSentOutputDeviceMap_ and lastSentInputDeviceMap_ member variables - Modify HandlePreferredOutputDeviceUpdated to check and skip duplicate callbacks - Modify HandlePreferredInputDeviceUpdated to check and skip duplicate callbacks - Modify RemoveAudioPolicyClientProxyMap to clean up tracking state - Add unit tests for deduplication logic Signed-off-by: Wang Hengshen <wanghengshen1@huawei.com> Co-Authored-By: Agent Change-Id: I73b8cc4aad8de594d9ef09221e6cb61cf1c81eeb | 3 个月前 | |
PC add negative设备路由策略 Co-Authored-By: Agent Signed-off-by: lisenlisen2002 <lisen63@h-partners.com> | 4 天前 | |
!16753 merge master into master 修复hicar断链漏音问题 Created-by: hang-yu-mao Commit-by: hang-yu-mao Merged-by: openharmony_ci Description: **IssueNo**: **Description**: **静态扫描截图**: **通用规范自检:** | 自检项 | 自检结果 | | ------------------------------------------------------------ | -------- | | 成员变量命名,统一采用xxxx_ |Y| | 换行优先使用4格缩进 |Y| | *和&运算符统一跟随之后的变量 |Y| | 避免使用未明确位宽的整型,选择使用int32_t, uint32_t等类型 |Y| | 时间常量命名加后缀_MS, _US等,按照用途命名而非值 |Y| **安全编码自检:** | 自检项 | 自检结果 | | -------------------------------------------------------------- | -------- | | 外部传入的指针使用前是否判空 |Y| | 外部传入数据,直接用于内存申请、数组长度、索引、循环条件前,必须进行合法性校验 |Y| | 成员或局部变量,尤其是指针、资源描述符、bool变量必须赋初值 |Y| | 内存分配后必须判断是否成功 |Y| | 禁止打印内存地址、文件路径、设备名、MAC地址等敏感信息,如有需要,使用private修饰 |Y| | 有符号、无符号整数之间**运算、比较**,确保不会出现溢出、反转、除0 |Y| | 有无符号不允许混合计算,必须提前进行强转 |Y| | map\vector\list\set等对象存在多线程并发访问场景必须加锁 |Y| **进程安全自检:** | 自检项 | 自检结果 | | -------------------------------------------------------------- | -------- | | SA新增idl接口,需要根据功能控制可访问范围,通过权限、UID校验等方式校验 |Y| | SA新增idl接口,必须同时新增fuzz用例,并进行fuzz测试 |Y| | 类反序列化结果用于内存申请、数组长度、循环条件前,必须进行合法性校验 |Y| | 新增动态共享库或可执行文件是否开启硬件PAC(gn文件配置 branch_protector_ret = "pac_ret") |Y| | 新增动态共享库或可执行文件是否开启前向CFI(gn文件配置 cfi = true, cfi_cross_dso = true, debug = false) |Y| **XTS Result**: **TDD Result**: **Fuzz Result**: See merge request: openharmony/multimedia_audio_framework!16753 | 2 天前 | |
检视问题修复 Signed-off-by: guoyao <guoyao18@huawei.com> | 2 个月前 | |
| 1 年前 | ||
feat: add preview-based wireless device decision for multi-stream scenarios When multiple audio streams share a wireless device (SCO, A2DP, NearLink) and one stream is forced to select a different device, the system incorrectly deactivates the wireless device based on global state, disrupting other streams still using it. This fix creates a preview (dry-run) mechanism that pre-calculates all stream device selections before making deactivation decisions. All new logic is gated by Util::IsEnhancedRoutingSupported() — products that dont support multi-stream multi-device follow original logic unchanged. Changes: - Add PreviewOutputDeviceSelection to AudioCoreService (dry-run device selection) - Add BuildWirelessDeviceNeeds, DecideWirelessDeviceActionBasedOnPreview, DecideActionForSingleWirelessDevice, NotifyNewDeviceSelected to AudioActiveDevice - Add SetWirelessDeviceNeeds/GetWirelessDeviceNeeds/ClearWirelessDeviceNeeds cache to AudioDeviceFactory - Modify SelectOutputDevice to use preview-based decision when enhanced routing is supported - Modify HandleNegtiveBt to conditionally disconnect SCO based on preview results - Modify HandleActiveBt to conditionally disconnect SCO and correctly select NearLink - Modify HandleDeviceConflictLocked to check wireless device needs cache before deactivation - Optimize DecideActionForSingleWirelessOutputDevice to use needs flags for conditional NOT_SELECT - Optimize DecideActionForSingleWirelessInputDevice to use needs flags for conditional NOT_SELECT - Add SCO DisconnectSco in DecideActionForSingleWirelessOutputDevice when SCO no longer needed - Add bidirectional needs check for A2DP (output+input share physical link) and NearLink (output+input share physical link) Signed-off-by: Wang Hengshen <wanghengshen1@huawei.com> Co-Authored-By: Agent Change-Id: I6e75db67723122f534bf0abe3304b2c5094a0c20 | 1 个月前 | |
audiopolicy dir change Signed-off-by: 郝亮飞 <haoliangfei@huawei.com> | 1 年前 | |
fix: 删除SetAudioScenePre中的UpdateAudioScene调用 SetAudioScenePre在切回AUDIO_SCENE_DEFAULT时不再调用Bluetooth::AudioHfpManager::UpdateAudioScene(newScene, false, false),保留SetVirtualCall与SetScoExcluded。 Co-Authored-By: Agent Signed-off-by: Gisaac <gongjie13@huawei.com> | 6 小时前 | |
feat: 删除AudioStateManager中废弃接口并优化无线设备强选逻辑 1. 删除AudioStateManager中的废弃接口: - SetPreferredCallCaptureDevice/GetPreferredCallCaptureDevice - SetPreferredRecordCaptureDevice/GetPreferredRecordCaptureDevice - UpdatePreferredCallCaptureDeviceConnectState - UpdatePreferredRecordCaptureDeviceConnectState 替换为AudioRouterSelectStrategy的SetCallInputDevice/SetMediaInputDevice 2. 强选输出为蓝牙/星闪设备时清除之前无线设备强选记录 - 清除输入强选(MEDIA_INPUT/CALL_INPUT) - 清除输出强选(MEDIA_OUTPUT/CALL_OUTPUT) - 以最后一次强选为准 3. 强选输入为蓝牙/星闪设备时: - 清除之前输入强选记录 - 输出强选保留但暂时不生效(冲突仲裁排除) - 输入流停止后恢复输出强选 4. 冲突仲裁扩展: - 确保输入输出不选到不同蓝牙/星闪设备 - 通过macAddress判断是否同一设备配对 同步删除相关UT和Fuzz测试用例 Co-Authored-By: Agent Signed-off-by: Gisaac <gongjie13@huawei.com> | 3 个月前 | |
移动渲染变更信息反序列化实现 将 AudioRendererChangeInfo::Unmarshalling 从头文件移到 cpp,并在内存申请失败时补充错误日志。 新增实现统一编入 audio_definitions,policy 相关 IDL 目标通过依赖获取符号,避免同一 cpp 分散编入多个 so。 Co-Authored-By: Agent Signed-off-by: kw <wangyuqi30@huawei.com> | 2 个月前 | |
bugfix: selected input device from media controller will work when uid is not recorded Co-Authored-By: Agent Signed-off-by: wangqingsong21 <wangqingsong21@h-partners.com> | 4 个月前 | |
Add on metadata and compatible 6.1 Signed-off-by: wzy_dthq <wangzhuoyu@huawei.com> | 2 个月前 | |
feat: 多流多设备场景AudioScene整改 1. 隔离媒体跟随通话场景的代码,多流多设备场景下不再跟随通话选择设备 2. 创建ScoAudioSceneManager管理SCO通路AudioScene,按优先级选择(蜂窝>voip>语音识别>强选sco) 3. 为每个通路添加独立的AudioScene支持 4. 实现Pipe AudioScene计算逻辑,按流优先级计算通路AudioScene 5. 添加完整的IPC接口链路(IDL、AudioServerProxy、AudioServer) 6. 添加单元测试覆盖核心功能 Co-Authored-By: Agent Signed-off-by: Gisaac <gongjie13@huawei.com> | 3 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 个月前 | ||
| 2 个月前 | ||
| 15 天前 | ||
| 1 个月前 | ||
| 7 天前 | ||
| 15 天前 | ||
| 9 天前 | ||
| 20 天前 | ||
| 2 个月前 | ||
| 15 天前 | ||
| 19 天前 | ||
| 1 个月前 | ||
| 3 个月前 | ||
| 4 天前 | ||
| 2 天前 | ||
| 2 个月前 | ||
| 1 年前 | ||
| 1 个月前 | ||
| 1 年前 | ||
| 6 小时前 | ||
| 3 个月前 | ||
| 2 个月前 | ||
| 4 个月前 | ||
| 2 个月前 | ||
| 3 个月前 |