This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TDA4VM:播放:device_list:272:找不到声卡...

Guru**** 2487425 points
Other Parts Discussed in Thread: TDA4VM, PCM3168A

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1441375/tda4vm-aplay-device_list-272-no-soundcards-found

器件型号:TDA4VM
Thread 中讨论的其他器件: PCM3168A

工具与软件:

配置如下:

平台:TDA4VM

SDK:08_05_00

我已经完成了一些检查:

1.检查设备:

root@j7-evm:~# aplay -l
aplay: device_list:272: no soundcards found...

2.检查模块:

root@j7-evm:~# lsmod | grep snd
snd_soc_j721e_evm      32768  0
snd_soc_pcm3168a_i2c    16384  0
snd_soc_pcm3168a       32768  1 snd_soc_pcm3168a_i2c

3.启动时出现一些故障

root@j7-evm:~# dmesg | grep snd
[   12.108025] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   12.640075] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   12.891715] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   12.904619] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   12.922237] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   12.947454] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   12.956215] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   12.976936] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.006818] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.048758] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.064626] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.086060] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.106016] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.122092] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.142373] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.243471] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.260072] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.269130] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.283268] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.752601] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.760274] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.852527] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.860050] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.934773] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   13.942894] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517
[   14.298839] j721e-audio sound@0: devm_snd_soc_register_card() failed: -517

4. 列出/dev/snd 但看不到"PCM..."

root@j7-evm:~# ls /dev/snd/
timer

5.在总线3上检测 I2C、但发现 PCM3168A (即0x20)的地址繁忙(即 UU)

root@j7-evm:~# i2cdetect -y -r 3
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: UU -- UU -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- 6d -- --
70: 70 71 -- -- -- -- 76 --

我想知道音频编解码器 PCM3168A 是否有问题?

如何调试呢?

提前感谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!  

    请预计会有延迟、因为我将其分配给正确的专家。

    谢谢!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Srinivasan:

    问题已经解决,谢谢。

    我们发现、如果 在我们运行使用麦克风和扬声器的应用时通过开/关关闭 TDA4VM 时插入了 DisplayPort、则音频编解码器(PCM3168A)将不会在下一次启动中工作。 音频编解码器(PCM3168A、地址0x20)引脚始终为低电平(0V)、因此无法工作。

    拔下 DisplayPort 并启动、一切正常。 但为什么会出现这个问题呢?

    -乔伊