#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/slab.h>
#include <linux/gpio/consumer.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#define WM8524_NUM_RATES …
struct wm8524_priv { … };
static const struct snd_soc_dapm_widget wm8524_dapm_widgets[] = …;
static const struct snd_soc_dapm_route wm8524_dapm_routes[] = …;
static const struct { … } lrclk_ratios[WM8524_NUM_RATES] = …;
static int wm8524_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void wm8524_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int wm8524_set_dai_sysclk(struct snd_soc_dai *codec_dai,
int clk_id, unsigned int freq, int dir)
{ … }
static int wm8524_set_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
{ … }
static int wm8524_mute_stream(struct snd_soc_dai *dai, int mute, int stream)
{ … }
#define WM8524_RATES …
#define WM8524_FORMATS …
static const struct snd_soc_dai_ops wm8524_dai_ops = …;
static struct snd_soc_dai_driver wm8524_dai = …;
static int wm8524_probe(struct snd_soc_component *component)
{ … }
static const struct snd_soc_component_driver soc_component_dev_wm8524 = …;
static const struct of_device_id wm8524_of_match[] = …;
MODULE_DEVICE_TABLE(of, wm8524_of_match);
static int wm8524_codec_probe(struct platform_device *pdev)
{ … }
static struct platform_driver wm8524_codec_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_ALIAS(…) …;
MODULE_LICENSE(…) …;