Commit 68757c2
committed
fix: fix card profile change detection logic
Fixed incorrect profile change detection in card comparison logic
The comparison was incorrectly using current card's ActiveProfile.Name
against the old card's ActiveProfile.Name instead of comparing
pulseaudio's current profile with the old card's profile
This ensures proper detection of profile changes when handling audio
events
Influence:
1. Test audio profile switching functionality
2. Verify Bluetooth audio mode changes are properly detected
3. Check that audio device changes trigger correct refresh operations
4. Validate profile change logging shows correct before/after values
fix: 修复声卡配置文件变化检测逻辑
修复了声卡比较逻辑中配置文件变化检测的错误
原先错误地将当前声卡的 ActiveProfile.Name 与旧声卡的 ActiveProfile.Name
进行比较,而不是将 pulseaudio 的当前配置文件与旧声卡的配置文件进行比较
这确保了在处理音频事件时能够正确检测配置文件变化
Influence:
1. 测试音频配置文件切换功能
2. 验证蓝牙音频模式变化是否正确检测
3. 检查音频设备变化是否触发正确的刷新操作
4. 验证配置文件变化日志显示正确的变更前后值
PMS: BUG-354931
Change-Id: Ie2e09b57ba05bb020821c455e85ea1110e8337401 parent fef0661 commit 68757c2
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
469 | 476 | | |
470 | 477 | | |
471 | 478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
354 | 354 | | |
355 | | - | |
| 355 | + | |
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
| |||
0 commit comments