#include <linux/bitfield.h>
#include <linux/module.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include "adau7118.h"
#define ADAU7118_DEC_RATIO_MASK …
#define ADAU7118_DEC_RATIO(x) …
#define ADAU7118_CLK_MAP_MASK …
#define ADAU7118_SLOT_WIDTH_MASK …
#define ADAU7118_SLOT_WIDTH(x) …
#define ADAU7118_TRISTATE_MASK …
#define ADAU7118_TRISTATE(x) …
#define ADAU7118_DATA_FMT_MASK …
#define ADAU7118_DATA_FMT(x) …
#define ADAU7118_SAI_MODE_MASK …
#define ADAU7118_SAI_MODE(x) …
#define ADAU7118_LRCLK_BCLK_POL_MASK …
#define ADAU7118_LRCLK_BCLK_POL(x) …
#define ADAU7118_SPT_SLOT_MASK …
#define ADAU7118_SPT_SLOT(x) …
#define ADAU7118_FULL_SOFT_R_MASK …
#define ADAU7118_FULL_SOFT_R(x) …
struct adau7118_data { … };
static const struct snd_kcontrol_new adau7118_dapm_pdm_control[4] = …;
static const struct snd_soc_dapm_widget adau7118_widgets_sw[] = …;
static const struct snd_soc_dapm_route adau7118_routes_sw[] = …;
static const struct snd_soc_dapm_widget adau7118_widgets_hw[] = …;
static const struct snd_soc_dapm_route adau7118_routes_hw[] = …;
static const struct snd_soc_dapm_widget adau7118_widgets[] = …;
static int adau7118_set_channel_map(struct snd_soc_dai *dai,
unsigned int tx_num,
const unsigned int *tx_slot,
unsigned int rx_num,
const unsigned int *rx_slot)
{ … }
static int adau7118_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{ … }
static int adau7118_set_tristate(struct snd_soc_dai *dai, int tristate)
{ … }
static int adau7118_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
unsigned int rx_mask, int slots,
int slot_width)
{ … }
static int adau7118_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int adau7118_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level)
{ … }
static int adau7118_component_probe(struct snd_soc_component *component)
{ … }
static const struct snd_soc_dai_ops adau7118_ops = …;
static struct snd_soc_dai_driver adau7118_dai = …;
static const struct snd_soc_component_driver adau7118_component_driver = …;
static int adau7118_regulator_setup(struct adau7118_data *st)
{ … }
static int adau7118_parset_dt(const struct adau7118_data *st)
{ … }
int adau7118_probe(struct device *dev, struct regmap *map, bool hw_mode)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;