#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/reset.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/dmaengine_pcm.h>
#include "tegra20_spdif.h"
static __maybe_unused int tegra20_spdif_runtime_suspend(struct device *dev)
{ … }
static __maybe_unused int tegra20_spdif_runtime_resume(struct device *dev)
{ … }
static int tegra20_spdif_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static void tegra20_spdif_start_playback(struct tegra20_spdif *spdif)
{ … }
static void tegra20_spdif_stop_playback(struct tegra20_spdif *spdif)
{ … }
static int tegra20_spdif_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static int tegra20_spdif_filter_rates(struct snd_pcm_hw_params *params,
struct snd_pcm_hw_rule *rule)
{ … }
static int tegra20_spdif_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static int tegra20_spdif_probe(struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops tegra20_spdif_dai_ops = …;
static struct snd_soc_dai_driver tegra20_spdif_dai = …;
static const struct snd_soc_component_driver tegra20_spdif_component = …;
static bool tegra20_spdif_wr_rd_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra20_spdif_volatile_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra20_spdif_precious_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config tegra20_spdif_regmap_config = …;
static int tegra20_spdif_platform_probe(struct platform_device *pdev)
{ … }
static const struct dev_pm_ops tegra20_spdif_pm_ops = …;
static const struct of_device_id tegra20_spdif_of_match[] = …;
MODULE_DEVICE_TABLE(of, tegra20_spdif_of_match);
static struct platform_driver tegra20_spdif_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;