HI Jon,

In my machine driver , i am not able to create sound card.

/* Digital audio interface glue - connects codec <--> CPU */
static struct snd_soc_dai_link rx51_dai[] = {
        {
        /*      .name = "I2S",
                .stream_name = "SUN7I-I2S",
                .cpu_dai_name = "sun7i-i2s.0",
                .codec_dai_name = "sndi2s",
                .init = rx51_aic34_init,
                .platform_name = "sun7i-i2s-pcm-audio.0",
                .codec_name = "sun7i-i2s-codec.0",
                //.dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF |
                //         SND_SOC_DAIFMT_CBM_CFM,
                .ops = &rx51_ops,  */
               
                 .name           = "TLV320AIC34",
                .stream_name    = "AIC34",
                .cpu_dai_name   = "tlv320aic3x-hifi",
                .codec_dai_name = "sndi2s",
                .init           = rx51_aic34_init,
                .platform_name  = "sun7i-i2s-pcm-audio.0",
                .codec_name     = "tlv320aic3x-codec.1-0018",
                //.dai_fmt = SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_NF |
                //         SND_SOC_DAIFMT_CBM_CFM,
                .ops = &rx51_ops,
        },
};

With first set of configuration i am able to get node file but with second 
set of configuration i am not able to get sound card.
if i change tlv320aic3x-hifi and tlv320aic3x-codec.1-0018 by sun7i-i2s.0 
and sun7i-i2s-codec.0 respectively then sound card is created.

it means i am passing wrong name, and rx51_aic34_init function also not 
calling.

my codec i2c address is 0x18.
i tried writing some bytes into my codec with i2ctools which is fine.

Can you say what i am missing in structure snd_soc_dai_link .

Regards
Punith

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to