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/PCM5121:将驱动程序集成到 apq8009-I2S.c 机器驱动程序中

Guru**** 2391235 points
Other Parts Discussed in Thread: PCM5121

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

https://e2e.ti.com/support/audio-group/audio/f/audio-forum/780831/linux-pcm5121-integrating-driver-into-apq8009-i2s-c-machine-driver

器件型号:PCM5121

工具/软件:Linux

我们在将 pcm5121驱动程序集成到 Qualcomm 机器驱动程序 apq8009-I2S 中时遇到问题。  我们被告知需要将相关的 pcm5121 dai 值插入到该结构中、但我没有成功。

静态结构 snd_soc_da_link apq8009_mi2s_be_da[]={
    /*后端 DAI 链接*/
    {
        .name = LPASS_be Quat_MI2S_TX、
        stream_name ="四元 M2S 捕捉"、
        .ccpu_dai 名称="msm-di-q6-mi2s.3"、
        .platform_name ="msm-PCM-routing"、
        codec_name ="snd-so-dummy、
        codec_da_name ="snd-so-dummy - di"、
        .NO_PCM = 1、
        .dpcm_capture = 1、
        .be_id = MSM_backend_DAI_quaternary_M2S_TX、
        .be_hw_params_fixup = msm_TX_BE_HW_params_fixup、
        .ops =&apq8009_quat_mi2s_Be_ops、
        .ignore_suspend = 1、
    }、
    {
        .name = LPASS_be _PRI_MI2S_RX、
        stream_name ="主 M2S 播放"、
        .ccpu_dai 名称="msm-di-q6-mi2s.0"、
        .platform_name ="msm-PCM-routing"、
        codec_name ="snd-so-dummy、
        codec_da_name ="snd-so-dummy - di"、
        .NO_PCM = 1、
        .dpcm_playback = 1、
        .init =&msm_init_mi2s、
        .be_id = MSM_backend_DAI_PRI_M2S_RX、
        .be_hw_params_fixup = msm_pri_rx_be HW_params_fixup、
        .ops =&apq8009_mi2s_BE_ops、
        .ignore_suspend = 1、
    }、
};
我已经为 pcm512x 驱动程序启用了内核配置选项、并启用了器件树条目。  如果有任何建议,将不胜感激。

SH-3.2# ls /proc/device-tree/soc/i2c@78b8000/pcm5121\@4e/         

与 DVDD 电源 兼容 的名称 寄存器