#include <linux/clk.h>
#include <linux/device.h>
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/of.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 "tegra186_dspk.h"
#include "tegra_cif.h"
static const struct reg_default tegra186_dspk_reg_defaults[] = …;
static int tegra186_dspk_get_fifo_th(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_put_fifo_th(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_get_osr_val(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_put_osr_val(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_get_pol_sel(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_put_pol_sel(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_get_ch_sel(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_put_ch_sel(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_get_mono_to_stereo(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_put_mono_to_stereo(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_get_stereo_to_mono(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra186_dspk_put_stereo_to_mono(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int __maybe_unused tegra186_dspk_runtime_suspend(struct device *dev)
{ … }
static int __maybe_unused tegra186_dspk_runtime_resume(struct device *dev)
{ … }
static int tegra186_dspk_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 tegra186_dspk_dai_ops = …;
static struct snd_soc_dai_driver tegra186_dspk_dais[] = …;
static const struct snd_soc_dapm_widget tegra186_dspk_widgets[] = …;
static const struct snd_soc_dapm_route tegra186_dspk_routes[] = …;
static const char * const tegra186_dspk_ch_sel_text[] = …;
static const struct soc_enum tegra186_dspk_ch_sel_enum = …;
static const char * const tegra186_dspk_osr_text[] = …;
static const struct soc_enum tegra186_dspk_osr_enum = …;
static const char * const tegra186_dspk_lrsel_text[] = …;
static const char * const tegra186_dspk_mono_conv_text[] = …;
static const struct soc_enum tegra186_dspk_mono_conv_enum = …;
static const char * const tegra186_dspk_stereo_conv_text[] = …;
static const struct soc_enum tegra186_dspk_stereo_conv_enum = …;
static const struct soc_enum tegra186_dspk_lrsel_enum = …;
static const struct snd_kcontrol_new tegrat186_dspk_controls[] = …;
static const struct snd_soc_component_driver tegra186_dspk_cmpnt = …;
static bool tegra186_dspk_wr_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra186_dspk_rd_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra186_dspk_volatile_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config tegra186_dspk_regmap = …;
static const struct of_device_id tegra186_dspk_of_match[] = …;
MODULE_DEVICE_TABLE(of, tegra186_dspk_of_match);
static int tegra186_dspk_platform_probe(struct platform_device *pdev)
{ … }
static void tegra186_dspk_platform_remove(struct platform_device *pdev)
{ … }
static const struct dev_pm_ops tegra186_dspk_pm_ops = …;
static struct platform_driver tegra186_dspk_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;