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 录制声音。