}
static struct snd_soc_ops odroidx2_ops = {
- .hw_params = odroidx2_hw_params,
+ .hw_params = odroidx2_hw_params,
};
static struct snd_soc_dai_link odroidx2_dai[] = {
{
- .name = "MAX98090",
- .stream_name = "MAX98090 PCM",
- .codec_dai_name = "HiFi",
- .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
- | SND_SOC_DAIFMT_CBM_CFM,
- .ops = &odroidx2_ops,
+ .name = "MAX98090",
+ .stream_name = "MAX98090 PCM",
+ .codec_dai_name = "HiFi",
+ .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
+ .ops = &odroidx2_ops,
}, {
- .name = "MAX98090 SEC",
- .stream_name = "MAX98090 PCM SEC",
- .codec_dai_name = "HiFi",
- .cpu_dai_name = "samsung-i2s-sec",
- .platform_name = "samsung-i2s-sec",
- .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF
- | SND_SOC_DAIFMT_CBM_CFM,
- .ops = &odroidx2_ops,
+ .name = "MAX98090 SEC",
+ .stream_name = "MAX98090 PCM SEC",
+ .codec_dai_name = "HiFi",
+ .cpu_dai_name = "samsung-i2s-sec",
+ .platform_name = "samsung-i2s-sec",
+ .dai_fmt = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_CBM_CFM,
+ .ops = &odroidx2_ops,
},
};
static struct snd_soc_card odroidx2 = {
- .name = "odroidx2",
- .owner = THIS_MODULE,
- .dai_link = odroidx2_dai,
- .num_links = ARRAY_SIZE(odroidx2_dai),
+ .name = "odroidx2",
+ .owner = THIS_MODULE,
+ .dai_link = odroidx2_dai,
+ .num_links = ARRAY_SIZE(odroidx2_dai),
};
static int odroidx2_audio_probe(struct platform_device *pdev)
static struct platform_driver odroidx2_audio_driver = {
.driver = {
- .name = "odroidx2-audio",
- .owner = THIS_MODULE,
- .of_match_table = odroidx2_audio_of_match,
+ .name = "odroidx2-audio",
+ .owner = THIS_MODULE,
+ .of_match_table = odroidx2_audio_of_match,
},
- .probe = odroidx2_audio_probe,
- .remove = odroidx2_audio_remove,
+ .probe = odroidx2_audio_probe,
+ .remove = odroidx2_audio_remove,
};
-
module_platform_driver(odroidx2_audio_driver);
MODULE_AUTHOR("zhen1.chen@samsung.com");