linux/sound/soc/tegra/tegra20_i2s.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * tegra20_i2s.c - Tegra20 I2S driver
 *
 * Author: Stephen Warren <[email protected]>
 * Copyright (C) 2010,2012 - NVIDIA, Inc.
 *
 * Based on code copyright/by:
 *
 * Copyright (c) 2009-2010, NVIDIA Corporation.
 * Scott Peterson <[email protected]>
 *
 * Copyright (C) 2010 Google, Inc.
 * Iliyan Malchev <[email protected]>
 */

#include <linux/clk.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.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_i2s.h"

#define DRV_NAME

static __maybe_unused int tegra20_i2s_runtime_suspend(struct device *dev)
{}

static __maybe_unused int tegra20_i2s_runtime_resume(struct device *dev)
{}

static int tegra20_i2s_set_fmt(struct snd_soc_dai *dai,
				unsigned int fmt)
{}

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

static void tegra20_i2s_start_playback(struct tegra20_i2s *i2s)
{}

static void tegra20_i2s_stop_playback(struct tegra20_i2s *i2s)
{}

static void tegra20_i2s_start_capture(struct tegra20_i2s *i2s)
{}

static void tegra20_i2s_stop_capture(struct tegra20_i2s *i2s)
{}

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

static int tegra20_i2s_probe(struct snd_soc_dai *dai)
{}

static const unsigned int tegra20_i2s_rates[] =;

static int tegra20_i2s_filter_rates(struct snd_pcm_hw_params *params,
				    struct snd_pcm_hw_rule *rule)
{}

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

static const struct snd_soc_dai_ops tegra20_i2s_dai_ops =;

static const struct snd_soc_dai_driver tegra20_i2s_dai_template =;

static const struct snd_soc_component_driver tegra20_i2s_component =;

static bool tegra20_i2s_wr_rd_reg(struct device *dev, unsigned int reg)
{}

static bool tegra20_i2s_volatile_reg(struct device *dev, unsigned int reg)
{}

static bool tegra20_i2s_precious_reg(struct device *dev, unsigned int reg)
{}

static const struct regmap_config tegra20_i2s_regmap_config =;

static int tegra20_i2s_platform_probe(struct platform_device *pdev)
{}

static void tegra20_i2s_platform_remove(struct platform_device *pdev)
{}

static const struct of_device_id tegra20_i2s_of_match[] =;

static const struct dev_pm_ops tegra20_i2s_pm_ops =;

static struct platform_driver tegra20_i2s_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();
MODULE_DEVICE_TABLE(of, tegra20_i2s_of_match);