26 #include <linux/module.h>
28 #include <linux/device.h>
35 #include <asm/cacheflush.h>
40 #include "../codecs/ad193x.h"
54 unsigned int channel_map[] = {0, 1, 2, 3, 4, 5, 6, 7};
76 channel_map,
ARRAY_SIZE(channel_map), channel_map);
83 #define BF5XX_AD193X_DAIFMT (SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_IF | \
84 SND_SOC_DAIFMT_CBM_CFM)
87 .hw_params = bf5xx_ad193x_hw_params,
93 .stream_name =
"AD193X",
94 .cpu_dai_name =
"bfin-tdm.0",
95 .codec_dai_name =
"ad193x-hifi",
96 .platform_name =
"bfin-tdm-pcm-audio",
97 .codec_name =
"spi0.5",
98 .ops = &bf5xx_ad193x_ops,
103 .stream_name =
"AD193X",
104 .cpu_dai_name =
"bfin-tdm.1",
105 .codec_dai_name =
"ad193x-hifi",
106 .platform_name =
"bfin-tdm-pcm-audio",
107 .codec_name =
"spi0.5",
108 .ops = &bf5xx_ad193x_ops,
114 .name =
"bfin-ad193x",
116 .dai_link = &bf5xx_ad193x_dai[CONFIG_SND_BF5XX_SPORT_NUM],
122 static int __init bf5xx_ad193x_init(
void)
127 if (!bfxx_ad193x_snd_device)
130 platform_set_drvdata(bfxx_ad193x_snd_device, &bf5xx_ad193x);
139 static void __exit bf5xx_ad193x_exit(
void)