linux/sound/soc/tegra/tegra210_dmic.c

// SPDX-License-Identifier: GPL-2.0-only
//
// tegra210_dmic.c - Tegra210 DMIC driver
//
// Copyright (c) 2020 NVIDIA CORPORATION.  All rights reserved.

#include <linux/clk.h>
#include <linux/device.h>
#include <linux/math64.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_params.h>
#include <sound/soc.h>
#include "tegra210_dmic.h"
#include "tegra_cif.h"

static const struct reg_default tegra210_dmic_reg_defaults[] =;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

static const struct snd_soc_dai_ops tegra210_dmic_dai_ops =;

static struct snd_soc_dai_driver tegra210_dmic_dais[] =;

static const struct snd_soc_dapm_widget tegra210_dmic_widgets[] =;

static const struct snd_soc_dapm_route tegra210_dmic_routes[] =;

static const char * const tegra210_dmic_ch_select[] =;

static const struct soc_enum tegra210_dmic_ch_enum =;

static const char * const tegra210_dmic_mono_conv_text[] =;

static const char * const tegra210_dmic_stereo_conv_text[] =;

static const struct soc_enum tegra210_dmic_mono_conv_enum =;

static const struct soc_enum tegra210_dmic_stereo_conv_enum =;

static const char * const tegra210_dmic_osr_text[] =;

static const struct soc_enum tegra210_dmic_osr_enum =;

static const char * const tegra210_dmic_lrsel_text[] =;

static const struct soc_enum tegra210_dmic_lrsel_enum =;

static const struct snd_kcontrol_new tegra210_dmic_controls[] =;

static const struct snd_soc_component_driver tegra210_dmic_compnt =;

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

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

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

static const struct regmap_config tegra210_dmic_regmap_config =;

static int tegra210_dmic_probe(struct platform_device *pdev)
{}

static void tegra210_dmic_remove(struct platform_device *pdev)
{}

static const struct dev_pm_ops tegra210_dmic_pm_ops =;

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

static struct platform_driver tegra210_dmic_driver =;
module_platform_driver()

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