linux/sound/soc/adi/axi-spdif.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2012-2013, Analog Devices Inc.
 * Author: Lars-Peter Clausen <[email protected]>
 */

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/clk.h>
#include <linux/regmap.h>

#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/dmaengine_pcm.h>

#define AXI_SPDIF_REG_CTRL
#define AXI_SPDIF_REG_STAT
#define AXI_SPDIF_REG_TX_FIFO

#define AXI_SPDIF_CTRL_TXDATA
#define AXI_SPDIF_CTRL_TXEN
#define AXI_SPDIF_CTRL_CLKDIV_OFFSET
#define AXI_SPDIF_CTRL_CLKDIV_MASK

#define AXI_SPDIF_FREQ_44100
#define AXI_SPDIF_FREQ_48000
#define AXI_SPDIF_FREQ_32000
#define AXI_SPDIF_FREQ_NA

struct axi_spdif {};

static int axi_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
	struct snd_soc_dai *dai)
{}

static int axi_spdif_hw_params(struct snd_pcm_substream *substream,
	struct snd_pcm_hw_params *params, struct snd_soc_dai *dai)
{}

static int axi_spdif_dai_probe(struct snd_soc_dai *dai)
{}

static int axi_spdif_startup(struct snd_pcm_substream *substream,
	struct snd_soc_dai *dai)
{}

static void axi_spdif_shutdown(struct snd_pcm_substream *substream,
	struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops axi_spdif_dai_ops =;

static struct snd_soc_dai_driver axi_spdif_dai =;

static const struct snd_soc_component_driver axi_spdif_component =;

static const struct regmap_config axi_spdif_regmap_config =;

static int axi_spdif_probe(struct platform_device *pdev)
{}

static void axi_spdif_dev_remove(struct platform_device *pdev)
{}

static const struct of_device_id axi_spdif_of_match[] =;
MODULE_DEVICE_TABLE(of, axi_spdif_of_match);

static struct platform_driver axi_spdif_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();