#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <sound/initval.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/tlv.h>
#include "ak5558.h"
enum ak555x_type { … };
#define AK5558_NUM_SUPPLIES …
static const char *ak5558_supply_names[AK5558_NUM_SUPPLIES] = …;
struct ak5558_priv { … };
static const struct reg_default ak5558_reg[] = …;
static const char * const mono_texts[] = …;
static const struct soc_enum ak5558_mono_enum[] = …;
static const char * const mono_5552_texts[] = …;
static const struct soc_enum ak5552_mono_enum[] = …;
static const char * const digfil_texts[] = …;
static const struct soc_enum ak5558_adcset_enum[] = …;
static const struct snd_kcontrol_new ak5558_snd_controls[] = …;
static const struct snd_kcontrol_new ak5552_snd_controls[] = …;
static const struct snd_soc_dapm_widget ak5558_dapm_widgets[] = …;
static const struct snd_soc_dapm_widget ak5552_dapm_widgets[] = …;
static const struct snd_soc_dapm_route ak5558_intercon[] = …;
static const struct snd_soc_dapm_route ak5552_intercon[] = …;
static int ak5558_set_mcki(struct snd_soc_component *component)
{ … }
static int ak5558_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int ak5558_set_dai_fmt(struct snd_soc_dai *dai, unsigned int fmt)
{ … }
static int ak5558_set_tdm_slot(struct snd_soc_dai *dai, unsigned int tx_mask,
unsigned int rx_mask, int slots,
int slot_width)
{ … }
#define AK5558_FORMATS …
static const unsigned int ak5558_rates[] = …;
static const struct snd_pcm_hw_constraint_list ak5558_rate_constraints = …;
static int ak5558_startup(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops ak5558_dai_ops = …;
static struct snd_soc_dai_driver ak5558_dai = …;
static struct snd_soc_dai_driver ak5552_dai = …;
static void ak5558_reset(struct ak5558_priv *ak5558, bool active)
{ … }
static int ak5558_probe(struct snd_soc_component *component)
{ … }
static void ak5558_remove(struct snd_soc_component *component)
{ … }
static int __maybe_unused ak5558_runtime_suspend(struct device *dev)
{ … }
static int __maybe_unused ak5558_runtime_resume(struct device *dev)
{ … }
static const struct dev_pm_ops ak5558_pm = …;
static const struct snd_soc_component_driver soc_codec_dev_ak5558 = …;
static const struct snd_soc_component_driver soc_codec_dev_ak5552 = …;
static const struct regmap_config ak5558_regmap = …;
static int ak5558_i2c_probe(struct i2c_client *i2c)
{ … }
static void ak5558_i2c_remove(struct i2c_client *i2c)
{ … }
static const struct of_device_id ak5558_i2c_dt_ids[] __maybe_unused = …;
MODULE_DEVICE_TABLE(of, ak5558_i2c_dt_ids);
static struct i2c_driver ak5558_i2c_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;