Commit a1ab682
committed
fix: fix sound card port priority ordering issue
Add Priority field to PriorityPort struct to store port priority value
from pulseaudio
Implement insertByPriority method that inserts ports in correct order
based on their priority values within the same sound card
Fix the issue where newly added ports were always inserted at the head
of the queue regardless of their actual priority
This resolves BUG-340227 where sound card port changes caused incorrect
priority ordering
Log: Fixed sound card port priority ordering when ports are updated
Influence:
1. Test Bluetooth device connection with both A2DP and HSP profiles
2. Verify that higher priority ports (like A2DP) are selected before
lower priority ports
3. Test multiple ports from the same sound card with different priority
values
4. Verify port insertion order when ports have equal priority
5. Test mixed scenarios with ports from different sound cards
fix: 修复声卡端口优先级排序问题
在 PriorityPort 结构中添加 Priority 字段存储来自 pulseaudio 的端口优先
级值
实现 insertByPriority 方法,根据同一声卡内端口的优先级值进行正确排序
修复新添加端口无论实际优先级如何总是插入队列头部的问题
解决 BUG-340227 中声卡端口变化导致优先级排序不正确的问题
Log: 修复声卡端口更新时的优先级排序问题
PMS: BUG-340227
Influence:
1. 测试同时支持 A2DP 和 HSP 配置文件的蓝牙设备连接
2. 验证高优先级端口(如 A2DP)优先于低优先级端口被选择
3. 测试同一声卡多个端口具有不同优先级值的情况
4. 验证端口优先级相等时的插入顺序
5. 测试不同声卡端口混合场景1 parent 383914f commit a1ab682
3 files changed
Lines changed: 389 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| 191 | + | |
190 | 192 | | |
191 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
192 | 229 | | |
193 | 230 | | |
194 | 231 | | |
| |||
237 | 274 | | |
238 | 275 | | |
239 | 276 | | |
| 277 | + | |
240 | 278 | | |
241 | 279 | | |
242 | 280 | | |
| |||
0 commit comments