#include <linux/module.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_gpio.h>
#include <linux/regulator/consumer.h>
#include <sound/soc.h>
#include <sound/pcm.h>
#include <sound/initval.h>
static const char * const supply_names[] = …;
struct ak5386_priv { … };
static const struct snd_soc_dapm_widget ak5386_dapm_widgets[] = …;
static const struct snd_soc_dapm_route ak5386_dapm_routes[] = …;
static int ak5386_soc_probe(struct snd_soc_component *component)
{ … }
static void ak5386_soc_remove(struct snd_soc_component *component)
{ … }
#ifdef CONFIG_PM
static int ak5386_soc_suspend(struct snd_soc_component *component)
{ … }
static int ak5386_soc_resume(struct snd_soc_component *component)
{ … }
#else
#define ak5386_soc_suspend …
#define ak5386_soc_resume …
#endif
static const struct snd_soc_component_driver soc_component_ak5386 = …;
static int ak5386_set_dai_fmt(struct snd_soc_dai *codec_dai,
unsigned int format)
{ … }
static int ak5386_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
struct snd_soc_dai *dai)
{ … }
static int ak5386_hw_free(struct snd_pcm_substream *substream,
struct snd_soc_dai *dai)
{ … }
static const struct snd_soc_dai_ops ak5386_dai_ops = …;
static struct snd_soc_dai_driver ak5386_dai = …;
#ifdef CONFIG_OF
static const struct of_device_id ak5386_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, ak5386_dt_ids);
#endif
static int ak5386_probe(struct platform_device *pdev)
{ … }
static struct platform_driver ak5386_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;