#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/mfd/syscon.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#define PISTACHIO_INTERNAL_DAC_CTRL …
#define PISTACHIO_INTERNAL_DAC_CTRL_PWR_SEL_MASK …
#define PISTACHIO_INTERNAL_DAC_CTRL_PWRDN_MASK …
#define PISTACHIO_INTERNAL_DAC_SRST …
#define PISTACHIO_INTERNAL_DAC_SRST_MASK …
#define PISTACHIO_INTERNAL_DAC_GTI_CTRL …
#define PISTACHIO_INTERNAL_DAC_GTI_CTRL_ADDR_SHIFT …
#define PISTACHIO_INTERNAL_DAC_GTI_CTRL_ADDR_MASK …
#define PISTACHIO_INTERNAL_DAC_GTI_CTRL_WE_MASK …
#define PISTACHIO_INTERNAL_DAC_GTI_CTRL_WDATA_SHIFT …
#define PISTACHIO_INTERNAL_DAC_GTI_CTRL_WDATA_MASK …
#define PISTACHIO_INTERNAL_DAC_PWR …
#define PISTACHIO_INTERNAL_DAC_PWR_MASK …
#define PISTACHIO_INTERNAL_DAC_FORMATS …
struct pistachio_internal_dac { … };
static const struct snd_kcontrol_new pistachio_internal_dac_snd_controls[] = …;
static const struct snd_soc_dapm_widget pistachio_internal_dac_widgets[] = …;
static const struct snd_soc_dapm_route pistachio_internal_dac_routes[] = …;
static void pistachio_internal_dac_reg_writel(struct regmap *top_regs,
u32 val, u32 reg)
{ … }
static void pistachio_internal_dac_pwr_off(struct pistachio_internal_dac *dac)
{ … }
static void pistachio_internal_dac_pwr_on(struct pistachio_internal_dac *dac)
{ … }
static struct snd_soc_dai_driver pistachio_internal_dac_dais[] = …;
static int pistachio_internal_dac_codec_probe(struct snd_soc_component *component)
{ … }
static const struct snd_soc_component_driver pistachio_internal_dac_driver = …;
static int pistachio_internal_dac_probe(struct platform_device *pdev)
{ … }
static void pistachio_internal_dac_remove(struct platform_device *pdev)
{ … }
#ifdef CONFIG_PM
static int pistachio_internal_dac_rt_resume(struct device *dev)
{ … }
static int pistachio_internal_dac_rt_suspend(struct device *dev)
{ … }
#endif
static const struct dev_pm_ops pistachio_internal_dac_pm_ops = …;
static const struct of_device_id pistachio_internal_dac_of_match[] = …;
MODULE_DEVICE_TABLE(of, pistachio_internal_dac_of_match);
static struct platform_driver pistachio_internal_dac_plat_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;