我在 ubuntu 上使用带有 ofono-phonesim 的 airpods
它在 A2DP 配置文件模式下工作正常。我可以改变音量。
但是在 HSP/HFP 模式下,音量变化没有影响,但它在 pactl 信息中显示更新的音量。
调试信息:
脉冲音频:
Sink #1
State: IDLE
Name: bluez_sink.4C_6B_E8_80_46_A4.headset_head_unit
Description: Akhil’s AirPods
Driver: module-bluez5-device.c
Sample Specification: s16le 1ch 8000Hz
Channel Map: mono
Owner Module: 23
Mute: no
Volume: mono: 16379 / 25%
balance 0.00
Base Volume: 65536 / 100%
Monitor Source: bluez_sink.4C_6B_E8_80_46_A4.headset_head_unit.monitor
Latency: 30655 usec, configured 28000 usec
Flags: HARDWARE HW_VOLUME_CTRL LATENCY
Properties:
bluetooth.protocol = "headset_head_unit"
device.intended_roles = "phone"
device.description = "Akhil’s AirPods"
device.string = "4C:6B:E8:80:46:A4"
device.api …
Run Code Online (Sandbox Code Playgroud)