obj->card_info.platform = obj->platform_name;
obj->card_info.cpu_dai.name = obj->dai_name;
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
- obj->card_info.cpu_dai.fmt = GB_FMTS;
+ obj->card_info.cpu_dai.fmt = SND_SOC_DAIFMT_CBM_CFM;
#endif
#if USE_RT5645
- obj->card_info.daifmt = GB_FMTS;
+ obj->card_info.daifmt = SND_SOC_DAIFMT_NB_NF |
+ SND_SOC_DAIFMT_I2S;
sprintf(obj->codec_name, "rt5645.%d-%04x", RT5647_I2C_ADAPTER_NR,
RT5647_I2C_ADDR);
obj->card_info.codec_dai.name = "rt5645-aif1";
- obj->card_info.codec_dai.fmt = SND_SOC_DAIFMT_CBM_CFM;
+ obj->card_info.codec_dai.fmt = SND_SOC_DAIFMT_CBS_CFS;
obj->card_info.codec_dai.sysclk = 12288000;
#else
sprintf(obj->codec_name, "spdif-dit");