#include <linux/module.h>
#include <linux/init.h>
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include <sound/tlv.h>
#include "ak4671.h"
static const struct reg_default ak4671_reg_defaults[] = …;
static DECLARE_TLV_DB_SCALE(out1_tlv, -3000, 600, 1);
static DECLARE_TLV_DB_SCALE(out2_tlv, -3300, 300, 1);
static DECLARE_TLV_DB_SCALE(out3_tlv, -600, 300, 0);
static DECLARE_TLV_DB_SCALE(mic_amp_tlv, -1500, 300, 0);
static const struct snd_kcontrol_new ak4671_snd_controls[] = …;
static int ak4671_out2_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol, int event)
{ … }
static const struct snd_kcontrol_new ak4671_lout1_mixer_controls[] = …;
static const struct snd_kcontrol_new ak4671_rout1_mixer_controls[] = …;
static const struct snd_kcontrol_new ak4671_lout2_mixer_controls[] = …;
static const struct snd_kcontrol_new ak4671_rout2_mixer_controls[] = …;
static const struct snd_kcontrol_new ak4671_lout3_mixer_controls[] = …;
static const struct snd_kcontrol_new ak4671_rout3_mixer_controls[] = …;
static const char *ak4671_lin_mux_texts[] = …;
static SOC_ENUM_SINGLE_DECL(ak4671_lin_mux_enum,
AK4671_MIC_SIGNAL_SELECT, 0,
ak4671_lin_mux_texts);
static const struct snd_kcontrol_new ak4671_lin_mux_control = …;
static const char *ak4671_rin_mux_texts[] = …;
static SOC_ENUM_SINGLE_DECL(ak4671_rin_mux_enum,
AK4671_MIC_SIGNAL_SELECT, 2,
ak4671_rin_mux_texts);
static const struct snd_kcontrol_new ak4671_rin_mux_control = …;
static const struct snd_soc_dapm_widget ak4671_dapm_widgets[] = …;
static const struct snd_soc_dapm_route ak4671_intercon[] = …;
static int ak4671_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int ak4671_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
unsigned int freq, int dir)
{ … }
static int ak4671_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{ … }
static int ak4671_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level)
{ … }
#define AK4671_RATES …
#define AK4671_FORMATS …
static const struct snd_soc_dai_ops ak4671_dai_ops = …;
static struct snd_soc_dai_driver ak4671_dai = …;
static const struct snd_soc_component_driver soc_component_dev_ak4671 = …;
static const struct regmap_config ak4671_regmap = …;
static int ak4671_i2c_probe(struct i2c_client *client)
{ … }
static const struct i2c_device_id ak4671_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, ak4671_i2c_id);
static struct i2c_driver ak4671_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;