linux/sound/soc/tegra/tegra30_i2s.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * tegra30_i2s.c - Tegra30 I2S driver
 *
 * Author: Stephen Warren <[email protected]>
 * Copyright (c) 2010-2012, NVIDIA CORPORATION.  All rights reserved.
 *
 * 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 "tegra30_ahub.h"
#include "tegra30_i2s.h"

#define DRV_NAME

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

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

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

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

static void tegra30_i2s_start_playback(struct tegra30_i2s *i2s)
{}

static void tegra30_i2s_stop_playback(struct tegra30_i2s *i2s)
{}

static void tegra30_i2s_start_capture(struct tegra30_i2s *i2s)
{}

static void tegra30_i2s_stop_capture(struct tegra30_i2s *i2s)
{}

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

static int tegra30_i2s_set_tdm(struct snd_soc_dai *dai,
			       unsigned int tx_mask, unsigned int rx_mask,
			       int slots, int slot_width)
{}

static int tegra30_i2s_probe(struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops tegra30_i2s_dai_ops =;

static const struct snd_soc_dai_driver tegra30_i2s_dai_template =;

static const struct snd_soc_component_driver tegra30_i2s_component =;

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

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

static const struct regmap_config tegra30_i2s_regmap_config =;

static const struct tegra30_i2s_soc_data tegra30_i2s_config =;

static const struct tegra30_i2s_soc_data tegra124_i2s_config =;

static const struct of_device_id tegra30_i2s_of_match[] =;

static int tegra30_i2s_platform_probe(struct platform_device *pdev)
{}

static void tegra30_i2s_platform_remove(struct platform_device *pdev)
{}

static const struct dev_pm_ops tegra30_i2s_pm_ops =;

static struct platform_driver tegra30_i2s_driver =;
module_platform_driver();

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