【发布时间】:2019-02-14 16:31:29
【问题描述】:
如何在 Raspberry Pi 中编写具有长/短帧同步(非 I2S)的 PCM 编解码器设备驱动程序? 我知道如何使用 I2S 编写 Alsa 声音架构设备驱动程序(编写平台设备驱动程序和编解码器驱动程序),但我认为 raspberry 默认只支持 I2S。
【问题讨论】:
标签: linux linux-device-driver alsa adc dac
如何在 Raspberry Pi 中编写具有长/短帧同步(非 I2S)的 PCM 编解码器设备驱动程序? 我知道如何使用 I2S 编写 Alsa 声音架构设备驱动程序(编写平台设备驱动程序和编解码器驱动程序),但我认为 raspberry 默认只支持 I2S。
【问题讨论】:
标签: linux linux-device-driver alsa adc dac
终于,我找到了答案! PCM 有几种时钟模式! I2S 是其他之一,是 DSP 模式 A 和 B,左右对齐和 raspbian 都支持它们。
为了使用,另一种PCM模式是:
1- Codec驱动支持!
2-在snd_soc_dai_link平台驱动中,选择他们。
更多信息:I2S DSP modes ,Alsa Device Drivers,DAI hardware audio formats。
【讨论】: