我使用的是 Ubuntu 17.04,带有 PulseAudio 10.0 和 ofono 1.19。我尝试使用 ofono 从我的 PC 拨打电话。当我拨打电话时,我可以在 pavucontrol 中看到配置文件已更改为 HSP/HFP,但 PC 扬声器上没有音频。手机端有音频输出。
额外的信息:
$ pactl list sources short
0 alsa_output.pci-0000_00_1b.0.analog-stereo.monitor module-alsa-card.c s16le 2ch 44100Hz RUNNING
1 alsa_input.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz RUNNING
4 bluez_sink.48_59_29_1F_74_9B.headset_audio_gateway.monitor module-bluez5-device.c s16le 1ch 8000Hz RUNNING
5 bluez_source.48_59_29_1F_74_9B.headset_audio_gateway module-bluez5-device.c s16le 1ch 8000Hz RUNNING
-----------------------------------------------------------------------------------------------------------------
$ pactl list sinks short
0 alsa_output.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 44100Hz IDLE
1 bluez_sink.48_59_29_1F_74_9B.headset_audio_gateway module-bluez5-device.c s16le 1ch 8000Hz RUNNING
我在系统日志中发现此错误:
[pulseaudio] backend-ofono.c: Could not activate new audio connection as it is already active!? (path=/card_1 fd=55, codec=1, transport [state=playing, profile=headset_audio_gateway])