#include <sound/soc.h>
#include "uniperif.h"
#define UNIPERIF_READER_I2S_IN …
static const struct snd_pcm_hardware uni_reader_pcm_hw = …;
static irqreturn_t uni_reader_irq_handler(int irq, void *dev_id)
{ … }
static int uni_reader_prepare_pcm(struct snd_pcm_runtime *runtime,
struct uniperif *reader)
{ … }
static int uni_reader_prepare_tdm(struct snd_pcm_runtime *runtime,
struct uniperif *reader)
{ … }
static int uni_reader_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int uni_reader_start(struct uniperif *reader)
{ … }
static int uni_reader_stop(struct uniperif *reader)
{ … }
static int uni_reader_trigger(struct snd_pcm_substream *substream,
int cmd, struct snd_soc_dai *dai)
{ … }
static int uni_reader_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void uni_reader_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops uni_reader_dai_ops = …;
int uni_reader_init(struct platform_device *pdev,
struct uniperif *reader)
{ … }
EXPORT_SYMBOL_GPL(…);