Commit 827e27e8 authored by Mark A. Greer's avatar Mark A. Greer Committed by Greg Kroah-Hartman

greybus: gb-audio: cpu_dai.fmt does not exist in v4.1

The asoc_simple_dai structure does not contain the 'fmt'
member in Linux kernel version v4.1 and later so only
build code that uses it when the kernel version is earlier
than v4.1.
Signed-off-by: default avatarMark A. Greer <mgreer@animalcreek.com>
Acked-by: default avatarJohn Stultz <john.stultz@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 4c739e3a
...@@ -118,7 +118,9 @@ static struct asoc_simple_card_info *setup_card_info(int device_count) ...@@ -118,7 +118,9 @@ static struct asoc_simple_card_info *setup_card_info(int device_count)
sprintf(obj->codec_name, "rt5645.%d-%04x", RT5647_I2C_ADAPTER_NR, sprintf(obj->codec_name, "rt5645.%d-%04x", RT5647_I2C_ADAPTER_NR,
RT5647_I2C_ADDR); RT5647_I2C_ADDR);
obj->card_info.codec_dai.name = "rt5645-aif1"; obj->card_info.codec_dai.name = "rt5645-aif1";
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
obj->card_info.codec_dai.fmt = SND_SOC_DAIFMT_CBS_CFS; obj->card_info.codec_dai.fmt = SND_SOC_DAIFMT_CBS_CFS;
#endif
obj->card_info.codec_dai.sysclk = 12288000; obj->card_info.codec_dai.sysclk = 12288000;
#else #else
sprintf(obj->codec_name, "spdif-dit"); sprintf(obj->codec_name, "spdif-dit");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment