#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/gpio/consumer.h>
#include <linux/io.h>
#include <linux/jiffies.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.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_ac97.h"
#define DRV_NAME …
static struct tegra20_ac97 *workdata;
static void tegra20_ac97_codec_reset(struct snd_ac97 *ac97)
{ … }
static void tegra20_ac97_codec_warm_reset(struct snd_ac97 *ac97)
{ … }
static unsigned short tegra20_ac97_codec_read(struct snd_ac97 *ac97_snd,
unsigned short reg)
{ … }
static void tegra20_ac97_codec_write(struct snd_ac97 *ac97_snd,
unsigned short reg, unsigned short val)
{ … }
static struct snd_ac97_bus_ops tegra20_ac97_ops = …;
static inline void tegra20_ac97_start_playback(struct tegra20_ac97 *ac97)
{ … }
static inline void tegra20_ac97_stop_playback(struct tegra20_ac97 *ac97)
{ … }
static inline void tegra20_ac97_start_capture(struct tegra20_ac97 *ac97)
{ … }
static inline void tegra20_ac97_stop_capture(struct tegra20_ac97 *ac97)
{ … }
static int tegra20_ac97_trigger(struct snd_pcm_substream *substream, int cmd,
struct snd_soc_dai *dai)
{ … }
static int tegra20_ac97_probe(struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops tegra20_ac97_dai_ops = …;
static struct snd_soc_dai_driver tegra20_ac97_dai = …;
static const struct snd_soc_component_driver tegra20_ac97_component = …;
static bool tegra20_ac97_wr_rd_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra20_ac97_volatile_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra20_ac97_precious_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config tegra20_ac97_regmap_config = …;
static int tegra20_ac97_platform_probe(struct platform_device *pdev)
{ … }
static void tegra20_ac97_platform_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id tegra20_ac97_of_match[] = …;
static struct platform_driver tegra20_ac97_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;
MODULE_DEVICE_TABLE(of, tegra20_ac97_of_match);