#include <linux/init.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/i2c.h>
#include <linux/gpio/consumer.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
struct wm1250_priv { … };
static int wm1250_ev1_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level)
{ … }
static const struct snd_soc_dapm_widget wm1250_ev1_dapm_widgets[] = …;
static const struct snd_soc_dapm_route wm1250_ev1_dapm_routes[] = …;
static int wm1250_ev1_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops wm1250_ev1_ops = …;
#define WM1250_EV1_RATES …
static struct snd_soc_dai_driver wm1250_ev1_dai = …;
static const struct snd_soc_component_driver soc_component_dev_wm1250_ev1 = …;
static int wm1250_ev1_pdata(struct i2c_client *i2c)
{ … }
static int wm1250_ev1_probe(struct i2c_client *i2c)
{ … }
static const struct i2c_device_id wm1250_ev1_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, wm1250_ev1_i2c_id);
static struct i2c_driver wm1250_ev1_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;