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/AM5728:在 Linux 中将 PCM5102a 和 mcasp6注册为声卡

Guru**** 2587365 points
Other Parts Discussed in Thread: PCM5102A, AM5728, PCM5102

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/593139/linux-am5728-registering-pcm5102a-and-mcasp6-as-soundcard-in-linux

器件型号:AM5728
主题中讨论的其他部件:PCM5102APCM5102

工具/软件:Linux

我想通过 gstreamer 应用程序和 mcasp6播放音频文件、该应用程序连接到主板上的 PCM5102a 音频编解码器、基于 Sitara am5728处理器。
我遵循了本指南 processors.wiki.ti.com/.../Sitara_Linux_Audio_DAC_Example 中介绍的步骤
具体而言:
我已经为 PCM5102a 创建了一个虚拟驱动程序。
2.在 Davinci-EVM.c 中将其与 ALSA 机器层绑定
3.将此驱动程序构建到内核中
4.在 DTS 文件中添加了以下字符串:

pcm5102a:pcm5102a{
 兼容="ti、pcm5102a";
};

听起来{
 兼容="ti、pcm5102a-evm-音频";
 TI、模型="TI PCM5102A";
 TI、audio-codec =<&pcm5102a>;
 TI、McASP-controller =<&mcasp4>;
 TI、CODEC 时钟速率=<24000000>;
};

mcasp6{.m&mcasp6}
 #sound-di-cells =<0>;
 分配的时钟=<&mcasp6_ahclkx_mux>;  
 分配的时钟父级=<&sys_clkin2>;
 pinctrl-names ="default";
 pinctrl-0 =<&mcasp6_pins_default>;
 状态="正常";

 OP-MODE =<0>;/* MCASP_IIS_MODE */
 TDM-SLOTS =<2>;
 /* 4个串行器*/
 serial-dir =</* 0:非活动、1:TX、2:Rx *
  0 1 0 0
 >;
 tx-num-evt =<32>;
 Rx-num-evt =<32>;
};

但是、当内核启动时、我看到 pcm5102驱动程序正在正确探测、但它没有与 McASP 绑定:

[1.829667] pcm5102a 探头...
[6.280474] ALSA 器件列表:
[6.283455]未找到声卡。

是否有任何方法来绑定 pcm5102、McASP 和我的 gstreamer 应用程序? 如果没有、如何将上述方法用于 Sitara am5728处理器?