linux/sound/soc/tegra/tegra210_mvc.c

// SPDX-License-Identifier: GPL-2.0-only
//
// tegra210_mvc.c - Tegra210 MVC driver
//
// Copyright (c) 2021 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_mvc.h"
#include "tegra_cif.h"

static const struct reg_default tegra210_mvc_reg_defaults[] =;

static const struct tegra210_mvc_gain_params gain_params =;

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

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

static void tegra210_mvc_write_ram(struct regmap *regmap)
{}

static void tegra210_mvc_conv_vol(struct tegra210_mvc *mvc, u8 chan, s32 val)
{}

static u32 tegra210_mvc_get_ctrl_reg(struct snd_kcontrol *kcontrol)
{}

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

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

static int tegra210_mvc_volume_switch_timeout(struct snd_soc_component *cmpnt)
{}

static int tegra210_mvc_update_mute(struct snd_kcontrol *kcontrol,
				    struct snd_ctl_elem_value *ucontrol,
				    bool per_chan_ctrl)
{}

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

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

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

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

static int tegra210_mvc_update_vol(struct snd_kcontrol *kcontrol,
				   struct snd_ctl_elem_value *ucontrol,
				   bool per_ch_enable)
{}

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

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

static void tegra210_mvc_reset_vol_settings(struct tegra210_mvc *mvc,
					    struct device *dev)
{}

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

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

static int tegra210_mvc_set_audio_cif(struct tegra210_mvc *mvc,
				      struct snd_pcm_hw_params *params,
				      unsigned int reg)
{}

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

static const struct snd_soc_dai_ops tegra210_mvc_dai_ops =;

static const char * const tegra210_mvc_curve_type_text[] =;

static const struct soc_enum tegra210_mvc_curve_type_ctrl =;

#define TEGRA210_MVC_VOL_CTRL(chan)

static const struct snd_kcontrol_new tegra210_mvc_vol_ctrl[] =;

static struct snd_soc_dai_driver tegra210_mvc_dais[] =;

static const struct snd_soc_dapm_widget tegra210_mvc_widgets[] =;

#define MVC_ROUTES(sname)

static const struct snd_soc_dapm_route tegra210_mvc_routes[] =;

static const struct snd_soc_component_driver tegra210_mvc_cmpnt =;

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

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

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

static const struct regmap_config tegra210_mvc_regmap_config =;

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

static int tegra210_mvc_platform_probe(struct platform_device *pdev)
{}

static void tegra210_mvc_platform_remove(struct platform_device *pdev)
{}

static const struct dev_pm_ops tegra210_mvc_pm_ops =;

static struct platform_driver tegra210_mvc_driver =;
module_platform_driver()

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