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.

[参考译文] 如何在 Linux 中使用 TI 驱动程序

Guru**** 2466550 points
Other Parts Discussed in Thread: TLV320ADC3140

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

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1253412/how-to-use-the-ti-driver-in-linux

主题中讨论的其他器件:TLV320ADC3140

我使用相应的 Linux 内核 Pi 编译了 TI 驱动程序(tlv320adcx140.c 和 tlv320adcx140.h)。 我用 insmod 安装了它。 没有错误。 当我 lsmod 时、我可以看到插入了一些相关的 tlv320adcx140模块。 但当我使用 arecord -l 或 aplay -l 时、我无法看到 TI 器件。 但通过 i2c 检测、我可能看到具有4C 地址的 TI 器件。 您知道原因吗? 谢谢

 

 

$吸烟

                  使用的模块大小

tlv320adcx140         57344 0

regmap_i2c            16384 1 tlv320adcx140

 

 

$ aplay -l

****播放硬件设备列表****

卡0:耳机[BCM2835耳机]、设备0:BCM2835耳机[BCM2835耳机]

 子器件:8/8

 子设备#0:子设备#0

 子设备#1:子设备#1

 子设备#2:子设备2

 子设备#3:子设备#3

 子设备#4:子设备#4

 子设备#5:子设备#5

 子设备#6:子设备#6

 子设备#7:子设备#7

卡1:vc4hdmi0 [vc4-hdmi-0],设备0:MAI PCM I2S-hif-0[MAI PCM I2S-hif-0]

 子器件:1/1

 子设备#0:子设备#0

卡2:vc4hdmi1 [vc4-hdmi-1],设备0:MAI PCM I2S-hif-0[MAI PCM I2S-hif-0]

 子器件:1/1

 子设备#0:子设备#0

 

 

$ arecord -l

****捕获硬件设备列表****

 

 

$ sudo i2cdetect -y 1

    0 1 2 3 4 5 6 7 8 9 a b c d e f

00:-------                         ----

10:------- ------- ------- --

20:------- ------- ------- --

30:------- ------- ------- --

40: 40 ------- ------- --- 4c ----

50:------ 54 ------- ------- --

60:--------------- -------

70:------- ----

 

 

我们可以在设置 PurePath 后、通过 Windows 语音录音机从板载麦克风录制声音、以供参考。 现在、我们正在尝试从 Linux 录制声音。

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

    是的、工作正常。

    0x4c 部件中的通信是否正常?

    adsdev@RogueOne:~$ sudo i2cdump -y -f 0x1 0x4c
    未指定大小(使用字节数据访问)
    0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
    00:00 00 00 00 00 05 00 00 00 00 00 00 01 02 03 04 ..... ??.0?????
    10:05 06 07 02 48 ff 10 10 04 20 02 08 00 02 40??H?? ?????@
    20:00 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00 "
    30:00 00 00 00 ff 00 00 00 00 00 00 00 00 00 00 C9 80........... ???
    40:00 00 00 00 C9 80 00 00 00 C9 80 00 00 C9 80 00 ...?...???
    50:00 00 00 C9 80 00 00 00 00 C9 80 00 00 00 C9 80 00 00 ...?...
    60:00 C9 80 00 00 00 00 00 00 00 00 01 40 7b 00 00??…… ?@{..
    70: E7 00 00 00 00 00 00 00 00 00 00 ff 00 ff 8c 00 00 ?……………………………………………………………………………………… ?...
    80:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
    90:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
    A0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
    B0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
    C0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
    D0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
    E0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
    F0:00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.

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

    尊敬的 Ding:

    感谢您的支持。 我们的问题得到了解决。