#include <linux/module.h>
#include <linux/input.h>
#include <linux/spi/spi.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/uaccess.h>
#include <linux/regulator/consumer.h>
#include <linux/pm_qos.h>
#include <linux/sysfs.h>
#include <linux/clk.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "rt5514-spi.h"
#define DRV_NAME …
static struct spi_device *rt5514_spi;
struct rt5514_dsp { … };
static const struct snd_pcm_hardware rt5514_spi_pcm_hardware = …;
static struct snd_soc_dai_driver rt5514_spi_dai = …;
static void rt5514_spi_copy_work(struct work_struct *work)
{ … }
static void rt5514_schedule_copy(struct rt5514_dsp *rt5514_dsp)
{ … }
static irqreturn_t rt5514_spi_irq(int irq, void *data)
{ … }
static int rt5514_spi_pcm_open(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static int rt5514_spi_hw_params(struct snd_soc_component *component,
struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *hw_params)
{ … }
static int rt5514_spi_hw_free(struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static snd_pcm_uframes_t rt5514_spi_pcm_pointer(
struct snd_soc_component *component,
struct snd_pcm_substream *substream)
{ … }
static int rt5514_spi_pcm_probe(struct snd_soc_component *component)
{ … }
static int rt5514_spi_pcm_new(struct snd_soc_component *component,
struct snd_soc_pcm_runtime *rtd)
{ … }
static const struct snd_soc_component_driver rt5514_spi_component = …;
int rt5514_spi_burst_read(unsigned int addr, u8 *rxbuf, size_t len)
{ … }
EXPORT_SYMBOL_GPL(…);
int rt5514_spi_burst_write(u32 addr, const u8 *txbuf, size_t len)
{ … }
EXPORT_SYMBOL_GPL(…);
static int rt5514_spi_probe(struct spi_device *spi)
{ … }
static int __maybe_unused rt5514_suspend(struct device *dev)
{ … }
static int __maybe_unused rt5514_resume(struct device *dev)
{ … }
static const struct dev_pm_ops rt5514_pm_ops = …;
static const struct of_device_id rt5514_of_match[] = …;
MODULE_DEVICE_TABLE(of, rt5514_of_match);
static struct spi_driver rt5514_spi_driver = …;
module_spi_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;