Commit ec17fd3
committed
fix(audio): fix BluetoothAudioMode empty after bluez5 support
1. Add bluez5 device API recognition in getCardName to support
PipeWire/BlueZ5 bluetooth audio devices
2. Fix refreshBluetoothOpts using friendly card name instead of
pulse raw name for isBluezAudio check, causing BluetoothAudioMode
to remain empty after bluetooth profile switch
Log: fix BluetoothAudioMode empty caused by bluez5 card name change
fix(audio): 修复 bluez5 支持后 BluetoothAudioMode 为空的问题
1. getCardName 中增加 bluez5 设备 API 的识别,支持 PipeWire/BlueZ5 蓝牙音频设备
2. 修复 refreshBluetoothOpts 中 isBluezAudio 使用友好名称而非 pulse 原始名称判断,
导致蓝牙 profile 切换后 BluetoothAudioMode 属性未被赋值
Log: 修复 bluez5 声卡名称变更导致 BluetoothAudioMode 为空
PMS: BUG-3642991 parent 3a6fc43 commit ec17fd3
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1314 | 1314 | | |
1315 | 1315 | | |
1316 | 1316 | | |
1317 | | - | |
| 1317 | + | |
1318 | 1318 | | |
1319 | 1319 | | |
1320 | 1320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
0 commit comments