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.

[参考译文] PCM1864EVM:尝试通过 Linux 上的 I2S 进行记录。

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

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/1171038/pcm1864evm-trying-to-record-over-i2s-on-linux

器件型号:PCM1864EVM
主题中讨论的其他器件:PCM1864

我使用 PCM1864作为主设备、使用手册中指定的 J8和 J10跳线。

我使用"多音频卡"设置通用 ALSA I2S 器件树、我可以看到使用 arecord -l 的器 件以及 alsamixer 中的所有控件。 但是、当尝试使用 arecord 记录任何内容时、我会得到无效参数 ALSA 错误(调用 snd_pcm_open 时、我猜它是非常瞬时的)。

这是器件树(如果 Raspberry Pi 上的设备树有所不同)。

兼容="BRCM,BCM2835"; 

片段@0{
target-path ="/";
_overlay__{
evmclock:evmclock{
兼容="固定时钟";
#clock-cells =<0>;
时钟频率=<49152000>;
};
};
};

碎片@1{
目标=<&I2S>;
_overlay__{
#sound-di-cells =<0>;
状态="正常";
};
};

碎片@2{
目标=<&i2c1>;
_overlay__{
#address-cells =<1>;
#size-cells =<0>;
状态="正常";
EVM:音频编解码器@4a{
#sound-di-cells =<0>;
兼容="ti、pcm1864";
//Clocks =<设备时钟>;
reg =<0x4a>;
状态="正常";
AVDD-SUPPLY =<&VDD_3V3_REG>;
DVDD 电源=<&VDD_3V3_REG>;
IOVdd-supply =<&VDD_3V3_reg>;
};
};
};

碎片@3{
目标=<声音>;
HifiBet撕 裂:__overlay__{
兼容="简单音频卡";
状态="正常";
simple-audio-card,name ="Hifi";
捕捉:简单音频卡、DAI-LINK@0{
格式="I2S";
bitclock-master =<&cpu>;
帧主设备=<&cpu>;
CPU:CPU{
Sound-Dai =<&EVM>;
时钟=<设备时钟>;
di-tdm-slot-num =<4>;
di-tdm-slot-width =<32>;
};
编解码器{
Sound-Dai =<&EVM>;
di-tdm-slot-num =<4>;
di-tdm-slot-width =<32>;
};
};
};
};

此器件树由该论坛中的位和片段以及一些 Google 操作组成。 如果您有类似的设置、或者可以 向我指出正确的方向、 我们将不胜感激。  


如果您需要其他信息、请告诉我。
谢谢、RAN。

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

    您好、Ran、

    您会与我们分享日志和编解码器吗?