17 #include <linux/module.h>
19 #include <linux/device.h>
26 #include <asm/cacheflush.h>
31 #include "../codecs/ad1836.h"
43 unsigned int channel_map[] = {0, 4, 1, 5, 2, 6, 3, 7};
48 channel_map,
ARRAY_SIZE(channel_map), channel_map);
56 .hw_params = bf5xx_ad1836_hw_params,
59 #define BF5XX_AD1836_DAIFMT (SND_SOC_DAIFMT_DSP_A | SND_SOC_DAIFMT_IB_IF | \
60 SND_SOC_DAIFMT_CBM_CFM)
64 .stream_name =
"AD1836",
65 .codec_dai_name =
"ad1836-hifi",
66 .platform_name =
"bfin-tdm-pcm-audio",
67 .ops = &bf5xx_ad1836_ops,
72 .name =
"bfin-ad1836",
74 .dai_link = &bf5xx_ad1836_dai,
81 const char **link_name;
84 link_name = pdev->
dev.platform_data;
86 dev_err(&pdev->
dev,
"No platform data supplied\n");
93 platform_set_drvdata(pdev, card);
97 dev_err(&pdev->
dev,
"Failed to register card\n");
111 .name =
"bfin-snd-ad1836",
115 .probe = bf5xx_ad1836_driver_probe,