#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/i2c.h>
#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/spi/spi.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/initval.h>
#include "wm8750.h"
static const struct reg_default wm8750_reg_defaults[] = …;
struct wm8750_priv { … };
#define wm8750_reset(c) …
static const char *wm8750_bass[] = …;
static const char *wm8750_bass_filter[] = …;
static const char *wm8750_treble[] = …;
static const char *wm8750_3d_lc[] = …;
static const char *wm8750_3d_uc[] = …;
static const char *wm8750_3d_func[] = …;
static const char *wm8750_alc_func[] = …;
static const char *wm8750_ng_type[] = …;
static const char *wm8750_line_mux[] = …;
static const char *wm8750_pga_sel[] = …;
static const char *wm8750_out3[] = …;
static const char *wm8750_diff_sel[] = …;
static const char *wm8750_adcpol[] = …;
static const char *wm8750_deemph[] = …;
static const char *wm8750_mono_mux[] = …;
static const struct soc_enum wm8750_enum[] = …;
static const struct snd_kcontrol_new wm8750_snd_controls[] = …;
static const struct snd_kcontrol_new wm8750_left_mixer_controls[] = …;
static const struct snd_kcontrol_new wm8750_right_mixer_controls[] = …;
static const struct snd_kcontrol_new wm8750_mono_mixer_controls[] = …;
static const struct snd_kcontrol_new wm8750_left_line_controls = …;
static const struct snd_kcontrol_new wm8750_right_line_controls = …;
static const struct snd_kcontrol_new wm8750_left_pga_controls = …;
static const struct snd_kcontrol_new wm8750_right_pga_controls = …;
static const struct snd_kcontrol_new wm8750_out3_controls = …;
static const struct snd_kcontrol_new wm8750_diffmux_controls = …;
static const struct snd_kcontrol_new wm8750_monomux_controls = …;
static const struct snd_soc_dapm_widget wm8750_dapm_widgets[] = …;
static const struct snd_soc_dapm_route wm8750_dapm_routes[] = …;
struct _coeff_div { … };
static const struct _coeff_div coeff_div[] = …;
static inline int get_coeff(int mclk, int rate)
{ … }
static int wm8750_set_dai_sysclk(struct snd_soc_dai *codec_dai,
int clk_id, unsigned int freq, int dir)
{ … }
static int wm8750_set_dai_fmt(struct snd_soc_dai *codec_dai,
unsigned int fmt)
{ … }
static int wm8750_pcm_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int wm8750_mute(struct snd_soc_dai *dai, int mute, int direction)
{ … }
static int wm8750_set_bias_level(struct snd_soc_component *component,
enum snd_soc_bias_level level)
{ … }
#define WM8750_RATES …
#define WM8750_FORMATS …
static const struct snd_soc_dai_ops wm8750_dai_ops = …;
static struct snd_soc_dai_driver wm8750_dai = …;
static int wm8750_probe(struct snd_soc_component *component)
{ … }
static const struct snd_soc_component_driver soc_component_dev_wm8750 = …;
static const struct of_device_id wm8750_of_match[] = …;
MODULE_DEVICE_TABLE(of, wm8750_of_match);
static const struct regmap_config wm8750_regmap = …;
#if defined(CONFIG_SPI_MASTER)
static int wm8750_spi_probe(struct spi_device *spi)
{ … }
static const struct spi_device_id wm8750_spi_ids[] = …;
MODULE_DEVICE_TABLE(spi, wm8750_spi_ids);
static struct spi_driver wm8750_spi_driver = …;
#endif
#if IS_ENABLED(CONFIG_I2C)
static int wm8750_i2c_probe(struct i2c_client *i2c)
{ … }
static const struct i2c_device_id wm8750_i2c_id[] = …;
MODULE_DEVICE_TABLE(i2c, wm8750_i2c_id);
static struct i2c_driver wm8750_i2c_driver = …;
#endif
static int __init wm8750_modinit(void)
{ … }
module_init(…) …;
static void __exit wm8750_exit(void)
{ … }
module_exit(wm8750_exit);
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;