首页 文章

Pulseaudio没有音频通过蓝牙a2dp连接buildroot

提问于
浏览
0

Edit:

I discovered, that if I run parec | paplay --raw it does play back properly. How is this possible? There should be just a simple module-loopback error or something like that.

我正在使用getchip.com的CHIP SBC来构建一个嵌入式蓝牙音频接收器 . getchip.com提供debian linux和可定制的buildroot发行版 .

我得到了debian发行版的一切,但有一个例外 . iOS设备的音量控制不起作用,因为debian内核中缺少输入 . 这就是为什么我试图让它与buildroot发行版一起工作 . 我需要一段时间才能使用simple-agent运行bluetoothd,以及使用蓝牙支持和dbus配置构建的pulseaudio . 我终于准备好了一切 .

But: I can connect to the sbc, but there is no sound playing on the headphone jack.

到目前为止我的调试步骤:

  • 我能通过 paplay 播放本地.wav文件就好了 .

  • 我允许通过dbus进行每次通信

xx9 pulseaudio日志显示,声音来自蓝牙源 .

  • 模块 - 交换机连接确实产生了从蓝牙源到 paplay 使用的同一音频接收器的环回 .

Debug Logs:

Boot log

Pulseaudio verbose startup

/usr/bin/pulseaudio -vvvv --system --daemonize --disallow-exit

Bluetoothd verbose connection

/usr/libexec/bluetooth/bluetoothd -C -d &

和bt-agent:

/usr/bin/bt-agent -d -c NoInputNoOutput -p /home/cubbo/.config/bluetooth-default-pin

Pulseaudio verbose connection

Configuration:

Pulseaudio system.pa

Pulseaudio daemon.conf

dbus system.conf

dbus-1/system.d/bluetooth.conf

dbus-1/system.d/pulseaudio-bluetooth.conf

bluetooth/audio.conf

bluetooth/main.conf

我很确定我只是错过了一些小配置,它会发挥得很好 . 但经过近一周的调试,我想请你帮忙 .

我希望我通过pastebin附加日志做了一切 . 非常感谢你的帮助!

谢谢!问候,菲尔 .

1 回答

  • 1

    我在Antergos上遇到了类似的问题,在Pulseaudio中没有A2DP .

    A2DP仅在通过“systemctl restart bluethooth”重新启动bluethooth服务时可用

    这导致了由GDM引起的问题,该问题打开了另一个pulseaudio实例并捕获了bluothooth设备 . 我通过屏蔽GDM用户来阻止pulseaudio捕获bluethooth设备 .

    https://wiki.archlinux.org/index.php/Bluetooth_headset#Connecting_works.2C_but_I_cannot_play_sound

    $ mkdir -p ~/.config/systemd/user
    
    $ ln -s /dev/null ~/.config/systemd/user/pulseaudio.socket
    

    [需要重启]

相关问题