#include <linux/module.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include "pcm3060.h"
static int pcm3060_set_sysclk(struct snd_soc_dai *dai, int clk_id,
unsigned int freq, int dir)
{ … }
static int pcm3060_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{ … }
static int pcm3060_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 pcm3060_dai_ops = …;
#define PCM3060_DAI_RATES_ADC …
#define PCM3060_DAI_RATES_DAC …
static struct snd_soc_dai_driver pcm3060_dai[] = …;
static DECLARE_TLV_DB_SCALE(pcm3060_dapm_tlv, -10050, 50, 1);
static const struct snd_kcontrol_new pcm3060_dapm_controls[] = …;
static const struct snd_soc_dapm_widget pcm3060_dapm_widgets[] = …;
static const struct snd_soc_dapm_route pcm3060_dapm_map[] = …;
static const struct snd_soc_component_driver pcm3060_soc_comp_driver = …;
static bool pcm3060_reg_writeable(struct device *dev, unsigned int reg)
{ … }
static bool pcm3060_reg_readable(struct device *dev, unsigned int reg)
{ … }
static bool pcm3060_reg_volatile(struct device *dev, unsigned int reg)
{ … }
static const struct reg_default pcm3060_reg_defaults[] = …;
const struct regmap_config pcm3060_regmap = …;
EXPORT_SYMBOL(…);
static void pcm3060_parse_dt(const struct device_node *np,
struct pcm3060_priv *priv)
{ … }
int pcm3060_probe(struct device *dev)
{ … }
EXPORT_SYMBOL(…);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;