#include <linux/module.h>
#include <linux/of_platform.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>
#include "meson-card.h"
struct gx_dai_link_i2s_data { … };
static const struct snd_soc_pcm_stream codec_params = …;
static int gx_card_i2s_be_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)
{ … }
static const struct snd_soc_ops gx_card_i2s_be_ops = …;
static int gx_card_parse_i2s(struct snd_soc_card *card,
struct device_node *node,
int *index)
{ … }
static int gx_card_cpu_identify(struct snd_soc_dai_link_component *c,
char *match)
{ … }
static int gx_card_add_link(struct snd_soc_card *card, struct device_node *np,
int *index)
{ … }
static const struct meson_card_match_data gx_card_match_data = …;
static const struct of_device_id gx_card_of_match[] = …;
MODULE_DEVICE_TABLE(of, gx_card_of_match);
static struct platform_driver gx_card_pdrv = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;