#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#define XLNX_SPDIF_RATES …
#define XLNX_SPDIF_FORMATS …
#define XSPDIF_IRQ_STS_REG …
#define XSPDIF_IRQ_ENABLE_REG …
#define XSPDIF_SOFT_RESET_REG …
#define XSPDIF_CONTROL_REG …
#define XSPDIF_CHAN_0_STS_REG …
#define XSPDIF_GLOBAL_IRQ_ENABLE_REG …
#define XSPDIF_CH_A_USER_DATA_REG_0 …
#define XSPDIF_CORE_ENABLE_MASK …
#define XSPDIF_FIFO_FLUSH_MASK …
#define XSPDIF_CH_STS_MASK …
#define XSPDIF_GLOBAL_IRQ_ENABLE …
#define XSPDIF_CLOCK_CONFIG_BITS_MASK …
#define XSPDIF_CLOCK_CONFIG_BITS_SHIFT …
#define XSPDIF_SOFT_RESET_VALUE …
#define MAX_CHANNELS …
#define AES_SAMPLE_WIDTH …
#define CH_STATUS_UPDATE_TIMEOUT …
struct spdif_dev_data { … };
static irqreturn_t xlnx_spdifrx_irq_handler(int irq, void *arg)
{ … }
static int xlnx_spdif_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static void xlnx_spdif_shutdown(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int xlnx_spdif_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int rx_stream_detect(struct snd_soc_dai *dai)
{ … }
static int xlnx_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops xlnx_spdif_dai_ops = …;
static struct snd_soc_dai_driver xlnx_spdif_tx_dai = …;
static struct snd_soc_dai_driver xlnx_spdif_rx_dai = …;
static const struct snd_soc_component_driver xlnx_spdif_component = …;
static const struct of_device_id xlnx_spdif_of_match[] = …;
MODULE_DEVICE_TABLE(of, xlnx_spdif_of_match);
static int xlnx_spdif_probe(struct platform_device *pdev)
{ … }
static void xlnx_spdif_remove(struct platform_device *pdev)
{ … }
static struct platform_driver xlnx_spdif_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;