ZHDA175 June   2026 AM625 , AM625SIP , AM62D-Q1 , AM62L , AM62P

 

  1.   1
  2.   摘要
  3.   商标
  4. 简介
    1. 1.1 主要亮点:
    2. 1.2 基本概念:
      1. 1.2.1 PipeWire 服务器
      2. 1.2.2 PipeWire 客户端
      3. 1.2.3 会话管理器
      4. 1.2.4 节点、端口和链接
    3. 1.3 PipeWire 主要组件
  5. Linux 音频栈
  6. 通过 Yocto 构建支持 PipeWire 的 SDK 映像
    1. 3.1 在主机上运行 Yocto 构版建的步骤
      1. 3.1.1 必要条件(一次性设置)
    2. 3.2 克隆 oe 层设置
    3. 3.3 下载并应用 PipeWire 补丁
    4. 3.4 构建 PipeWire 映像
  7. 在 Sitara 器件上设置 PipeWire
    1. 4.1 硬件
      1. 4.1.1 SK-AM62B-P1
      2. 4.1.2 TMDS62LEVM
      3. 4.1.3 AUDIO-AM62D-EVM
    2. 4.2 配置 EVM 引导模式
      1. 4.2.1 SK-AM62B-P1
      2. 4.2.2 TMDS62LEVM
      3. 4.2.3 AUDIO-AM62D-EVM
    3. 4.3 UART 控制台设置
    4. 4.4 刷写 SD 卡映像
    5. 4.5 使用 SD 卡引导 EVM
  8. 使用 PipeWire
    1. 5.1 检查服务状态
    2. 5.2 启用 PipeWire 和 Wireplumber
    3. 5.3 启动 PipeWire 和 WirePlumber
    4. 5.4 常规 PipeWire 命令
      1. 5.4.1 列出 PipeWire 服务器中当前的所有对象
      2. 5.4.2 仅列出节点
      3. 5.4.3 检查特定对象
    5. 5.5 播放和录制立体声音频
  9. 配置
    1. 6.1 接收端和源端配置
    2. 6.2 WirePlumber 配置
  10. 性能基准测试
    1. 7.1 延迟
    2. 7.2 CPU 和内存使用情况
    3. 7.3 重新采样后的 CPU 和内存使用情况
    4. 7.4 观察结果
  11. 总结
  12. 参考资料
  13. 10重要声明和免责声明

下载并应用 PipeWire 补丁

需要补丁才能在映像中启用 PipeWire 和 WirePlumber 支持。这些补丁需要应用于:

  • meta-arago - 用于 Sitara 器件 Arago 分布配置的 Yocto 层。
  • meta-tisdk — 用于 Sitara 器件的 TI 基础 SDK 的 Yocto 层。

下表介绍了这两个层所需的补丁:

表 3-1 Yocto PipeWire 补丁
补丁编号 补丁 说明
10001-recipes-multimedia-Add-pipewire-configuration-files.patch为 8 通道和 2 通道音频添加参考 PipeWire 配置文件。
20002-recipes-multimedia-Add-wireplumber-audio-configurati.patch使用音频默认服务添加 WirePlumber 配置。
30003-recipes-core-arago-default-image-Add-pipewire-audio-.patch在 Arago-default-image 中启用 PipeWire 音频栈。
40001-ti-apps-launcher-Remove-pulseaudio-service-dependenc.patch对于在 OOB 演示中集成了 PulseAudio 的 EVM,从映像中删除 PulseAudio 服务。

以下是下载和应用补丁的步骤。

$ cd $HOME

$ git clone https://github.com/TexasInstruments/Beyond-SDK.git -b main

$ cd $HOME/tisdk/sources/meta-arago

$ git am $HOME/Beyond-SDK/collaterals/appnotes/sdaa320-Enable_PipeWire_on_TI_Sitara_Devices/0001-recipes-multimedia-Add-pipewire-configuration-files.patch

$ git am $HOME/Beyond-SDK/collaterals/appnotes/sdaa320-Enable_PipeWire_on_TI_Sitara_Devices/0002-recipes-multimedia-Add-wireplumber-audio-configurati.patch

$ git am $HOME/Beyond-SDK/collaterals/appnotes/sdaa320-Enable_PipeWire_on_TI_Sitara_Devices/0003-recipes-core-arago-default-image-Add-pipewire-audio-.patch

$ cd $HOME/tisdk/sources/meta-tisdk

$ git am $HOME/Beyond-SDK/collaterals/appnotes/sdaa320-Enable_PipeWire_on_TI_Sitara_Devices/0001-ti-apps-launcher-Remove-pulseaudio-service-dependenc.patch