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: integrating driver into apq8009-i2s.c machine driver

Part Number: PCM5121

Tool/software: Linux

We are having trouble integrating pcm5121 driver into Qualcomm machine driver apq8009-i2s.  We are told that the relevant pcm5121 dai values need to be plugged into this struct, but I haven't been successful.

static struct snd_soc_dai_link apq8009_mi2s_be_dai[] = {
    /* Backend DAI Links */
    {
        .name = LPASS_BE_QUAT_MI2S_TX,
        .stream_name = "Quaternary MI2S Capture",
        .cpu_dai_name = "msm-dai-q6-mi2s.3",
        .platform_name = "msm-pcm-routing",
        .codec_name = "snd-soc-dummy",
        .codec_dai_name = "snd-soc-dummy-dai",
        .no_pcm = 1,
        .dpcm_capture = 1,
        .be_id = MSM_BACKEND_DAI_QUATERNARY_MI2S_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 = "Primary MI2S Playback",
        .cpu_dai_name = "msm-dai-q6-mi2s.0",
        .platform_name = "msm-pcm-routing",
        .codec_name = "snd-soc-dummy",
        .codec_dai_name = "snd-soc-dummy-dai",
        .no_pcm = 1,
        .dpcm_playback = 1,
        .init = &msm_init_mi2s,
        .be_id = MSM_BACKEND_DAI_PRI_MI2S_RX,
        .be_hw_params_fixup = msm_pri_rx_be_hw_params_fixup,
        .ops = &apq8009_mi2s_be_ops,
        .ignore_suspend = 1,
    },
};
I already have kernel config options enabled for pcm512x driver, and the device tree entry.  Any advice would be greatly appreciated.

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

DVDD-supply  compatible  name  reg