#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_mbdrc.h"
#include "tegra210_ope.h"
#include "tegra210_peq.h"
#include "tegra_cif.h"
static const struct reg_default tegra210_ope_reg_defaults[] = …;
static int tegra210_ope_set_audio_cif(struct tegra210_ope *ope,
struct snd_pcm_hw_params *params,
unsigned int reg)
{ … }
static int tegra210_ope_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int tegra210_ope_component_probe(struct snd_soc_component *cmpnt)
{ … }
static const struct snd_soc_dai_ops tegra210_ope_dai_ops = …;
static struct snd_soc_dai_driver tegra210_ope_dais[] = …;
static const struct snd_soc_dapm_widget tegra210_ope_widgets[] = …;
#define OPE_ROUTES(sname) …
static const struct snd_soc_dapm_route tegra210_ope_routes[] = …;
static const char * const tegra210_ope_data_dir_text[] = …;
static const struct soc_enum tegra210_ope_data_dir_enum = …;
static int tegra210_ope_get_data_dir(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int tegra210_ope_put_data_dir(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const struct snd_kcontrol_new tegra210_ope_controls[] = …;
static const struct snd_soc_component_driver tegra210_ope_cmpnt = …;
static bool tegra210_ope_wr_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra210_ope_rd_reg(struct device *dev, unsigned int reg)
{ … }
static bool tegra210_ope_volatile_reg(struct device *dev, unsigned int reg)
{ … }
static const struct regmap_config tegra210_ope_regmap_config = …;
static int tegra210_ope_probe(struct platform_device *pdev)
{ … }
static void tegra210_ope_remove(struct platform_device *pdev)
{ … }
static int __maybe_unused tegra210_ope_runtime_suspend(struct device *dev)
{ … }
static int __maybe_unused tegra210_ope_runtime_resume(struct device *dev)
{ … }
static const struct dev_pm_ops tegra210_ope_pm_ops = …;
static const struct of_device_id tegra210_ope_of_match[] = …;
MODULE_DEVICE_TABLE(of, tegra210_ope_of_match);
static struct platform_driver tegra210_ope_driver = …;
module_platform_driver(…) …
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;