linux/sound/soc/tegra/tegra210_adx.c

// SPDX-License-Identifier: GPL-2.0-only
//
// tegra210_adx.c - Tegra210 ADX driver
//
// Copyright (c) 2021-2023 NVIDIA CORPORATION.  All rights reserved.

#include <linux/clk.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 <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>

#include "tegra210_adx.h"
#include "tegra_cif.h"

static const struct reg_default tegra210_adx_reg_defaults[] =;

static void tegra210_adx_write_map_ram(struct tegra210_adx *adx)
{}

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

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

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

static int tegra210_adx_set_audio_cif(struct snd_soc_dai *dai,
				      unsigned int channels,
				      snd_pcm_format_t format,
				      unsigned int reg)
{}

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

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

static int tegra210_adx_get_byte_map(struct snd_kcontrol *kcontrol,
				     struct snd_ctl_elem_value *ucontrol)
{}

static int tegra210_adx_put_byte_map(struct snd_kcontrol *kcontrol,
				     struct snd_ctl_elem_value *ucontrol)
{}

static const struct snd_soc_dai_ops tegra210_adx_in_dai_ops =;

static const struct snd_soc_dai_ops tegra210_adx_out_dai_ops =;

#define IN_DAI

#define OUT_DAI(id)

static struct snd_soc_dai_driver tegra210_adx_dais[] =;

static const struct snd_soc_dapm_widget tegra210_adx_widgets[] =;

#define STREAM_ROUTES(id, sname)

#define ADX_ROUTES(id)

#define STREAM_ROUTES(id, sname)

#define ADX_ROUTES(id)

static const struct snd_soc_dapm_route tegra210_adx_routes[] =;

#define TEGRA210_ADX_BYTE_MAP_CTRL(reg)

static struct snd_kcontrol_new tegra210_adx_controls[] =;

static const struct snd_soc_component_driver tegra210_adx_cmpnt =;

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

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

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

static const struct regmap_config tegra210_adx_regmap_config =;

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

static int tegra210_adx_platform_probe(struct platform_device *pdev)
{}

static void tegra210_adx_platform_remove(struct platform_device *pdev)
{}

static const struct dev_pm_ops tegra210_adx_pm_ops =;

static struct platform_driver tegra210_adx_driver =;
module_platform_driver();

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