把扬声器连接到thor的耳机接口后无法播放声音

我们要用到thor的耳机接口,耳机的GND接J511的第10pin(Headphone or jack detection),耳机的左声道接J511的第9pin(Headphone output left channel),耳机的右声道接J511的第5pin(Headphone output right channel),Thor开发板打开网页播放音乐,但是这样没有声音。

jetpack是7.1, jetson是38.4
NVIDlA® Jetson AGX Thor’ Developer Kit:945-14070-0080-000

jetpack软件版本是:R38 (release), REVISION: 2.1, GCID: 42061081, BOARD: generic, EABI: aarch64, DATE: Wed Sep 10 19:49:31 UTC 2025

声卡结构是:
Card 0: HDA - NVIDIA Jetson Thor AGX HDA (仅 HDMI 输出)
Card 1: APE - NVIDIA Jetson Thor AGX APE (Tegra APE Soundcard,含模拟耳机输出)
WirePlumber 默认 Sink 为 alsa_output.platform-sound.analog-stereo(Card 1 APE),codec 芯片为 CVB-RT(RT5659),通过 I2C 地址 0x1c 连接到 i2s@92b0000
问题现象:

  1. 在设置 → 声音 → 点击"Front Left"测试,音量进度条律动但无声音输出

  2. 运行 speaker-test -D front:CARD=APE,DEV=0 报错:Playback open error: -16, Device or resource busy(PipeWire 占用时)

  3. 停止 PipeWire 后运行 speaker-test -D plughw:CARD=APE,DEV=0 -c 2 -t sine -f 440 报错:Unable to set hw params for playback: Invalid argument

通过USB连接扬声器,播放正常。通过上述方式连接,无法播放声音。我根据AI的建议尝试了一些修改,比如

1.确认硬件可以打开(无 busy 错误)停掉 PipeWire 后 speaker-test -D front:CARD=APE,DEV=0 可以正常运行(不报 Device or resource busy),说明 APE 驱动层正常。
2. 手动配置 CVB-RT codec 所有 DAPM 路由开关
3. 强制 Jack-state = HP
4. 配置 AHUB 路由:I2S1 Mux = ADMAIF1
但依然毫无作用,希望官方能帮忙提供一下解决方法

We are happy to help you!.

Before we could jump into more technical details, we would like to re-confirm couple of things based on your post.

  1. Is this a custom board with RT5659 codec on it, as on Jetson Thor AGX devkit RT5640 is the codec.
  2. During Ubuntu rootfs boot, Pipewire usually opens the default pcm device, so in this case you could see “Playback open error: -16, Device or resource busy“, as the dev=0 is already in use by pipewire service on GUI.
  3. USB and APE sound cards are different, so we should focus on the issue faced on the APE card.

If this is not custom board, then by default no change is required on devkit to play audio, but could be some issue with headphone connection, as I see you connected GND to pin 10, Actually the Analog GND is pin 2 on J511. Also, as jack detection logic won’t be kicked in due to direct wire connection of headphone, could you give a try with 10-pin front panel board where you can connect headset Amazon.com: Front Panel USB Hub 3.5 Inches Floppy Front Panel 2 Port USB 2.0 with HD Audio Mic Output Port for Desktop(with 9Pin Cable) : Electronics

抱歉,经过确认codec是RT5640

请问耳机插入检测的原理是什么呢?

我们尝试过把J411的第10pin(Headphone or jack detection),和第2pin(AGND),以及耳机的GND短接在一起,只有在开机过程中有邦邦声,尝试在网页上播放没有声音。

也尝试过把J411的第4pin(Presence-detects if audio dongle is connected to header),和第2pin(AGND),以及耳机的GND短接在一起,在开机过程中没有声音,尝试在网页上播放也没有声音。

Hi,
Is this still an issue to support? Any result can be shared?

Please help to open a new topic for your issue. Thanks