#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/interrupt.h>
#include <linux/irqreturn.h>
#include <linux/init.h>
#include <linux/spi/spi.h>
#include <linux/firmware.h>
#include <linux/delay.h>
#include <linux/fs.h>
#include <linux/gpio/consumer.h>
#include <linux/regulator/consumer.h>
#include <linux/mutex.h>
#include <linux/workqueue.h>
#include <sound/soc.h>
#include <sound/wm0010.h>
#define DEVICE_ID_WM0010 …
#define INFO_VERSION …
enum dfw_cmd { … };
struct dfw_binrec { … } __packed;
struct dfw_inforec { … };
struct dfw_pllrec { … } __packed;
static struct pll_clock_map { … } pll_clock_map[] = …;
enum wm0010_state { … };
struct wm0010_priv { … };
static const struct snd_soc_dapm_widget wm0010_dapm_widgets[] = …;
static const struct snd_soc_dapm_route wm0010_dapm_routes[] = …;
static const char *wm0010_state_to_str(enum wm0010_state state)
{ … }
static void wm0010_halt(struct snd_soc_component *component)
{ … }
struct wm0010_boot_xfer { … };
static void wm0010_mark_boot_failure(struct wm0010_priv *wm0010)
{ … }
static void wm0010_boot_xfer_complete(void *data)
{ … }
static void byte_swap_64(u64 *data_in, u64 *data_out, u32 len)
{ … }
static int wm0010_firmware_load(const char *name, struct snd_soc_component *component)
{ … }
static int wm0010_stage2_load(struct snd_soc_component *component)
{ … }
static int wm0010_boot(struct snd_soc_component *component)
{ … }
static int wm0010_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level)
{ … }
static int wm0010_set_sysclk(struct snd_soc_component *component, int source,
int clk_id, unsigned int freq, int dir)
{ … }
static int wm0010_probe(struct snd_soc_component *component);
static const struct snd_soc_component_driver soc_component_dev_wm0010 = …;
#define WM0010_RATES …
#define WM0010_FORMATS …
static struct snd_soc_dai_driver wm0010_dai[] = …;
static irqreturn_t wm0010_irq(int irq, void *data)
{ … }
static int wm0010_probe(struct snd_soc_component *component)
{ … }
static int wm0010_spi_probe(struct spi_device *spi)
{ … }
static void wm0010_spi_remove(struct spi_device *spi)
{ … }
static struct spi_driver wm0010_spi_driver = …;
module_spi_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_FIRMWARE(…) …;
MODULE_FIRMWARE(…) …;