#include <linux/clk.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>
#include "aiu.h"
#include "aiu-fifo.h"
#define AIU_IEC958_DCU_FF_CTRL_EN …
#define AIU_IEC958_DCU_FF_CTRL_AUTO_DISABLE …
#define AIU_IEC958_DCU_FF_CTRL_IRQ_MODE …
#define AIU_IEC958_DCU_FF_CTRL_IRQ_OUT_THD …
#define AIU_IEC958_DCU_FF_CTRL_IRQ_FRAME_READ …
#define AIU_IEC958_DCU_FF_CTRL_SYNC_HEAD_EN …
#define AIU_IEC958_DCU_FF_CTRL_BYTE_SEEK …
#define AIU_IEC958_DCU_FF_CTRL_CONTINUE …
#define AIU_MEM_IEC958_CONTROL_ENDIAN …
#define AIU_MEM_IEC958_CONTROL_RD_DDR …
#define AIU_MEM_IEC958_CONTROL_MODE_16BIT …
#define AIU_MEM_IEC958_CONTROL_MODE_LINEAR …
#define AIU_MEM_IEC958_BUF_CNTL_INIT …
#define AIU_FIFO_SPDIF_BLOCK …
static const struct snd_pcm_hardware fifo_spdif_pcm = …;
static void fifo_spdif_dcu_enable(struct snd_soc_component *component,
bool enable)
{ … }
static int fifo_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static int fifo_spdif_prepare(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int fifo_spdif_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
const struct snd_soc_dai_ops aiu_fifo_spdif_dai_ops = …;
int aiu_fifo_spdif_dai_probe(struct snd_soc_dai *dai)
{ … }