#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regulator/consumer.h>
#include <sound/pcm.h>
#include <sound/soc.h>
#define BD28623_NUM_SUPPLIES …
static const char *const bd28623_supply_names[BD28623_NUM_SUPPLIES] = …;
struct bd28623_priv { … };
static const struct snd_soc_dapm_widget bd28623_widgets[] = …;
static const struct snd_soc_dapm_route bd28623_routes[] = …;
static int bd28623_power_on(struct bd28623_priv *bd)
{ … }
static void bd28623_power_off(struct bd28623_priv *bd)
{ … }
static int bd28623_get_switch_spk(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int bd28623_set_switch_spk(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const struct snd_kcontrol_new bd28623_controls[] = …;
static int bd28623_codec_probe(struct snd_soc_component *component)
{ … }
static void bd28623_codec_remove(struct snd_soc_component *component)
{ … }
static int bd28623_codec_suspend(struct snd_soc_component *component)
{ … }
static int bd28623_codec_resume(struct snd_soc_component *component)
{ … }
static const struct snd_soc_component_driver soc_codec_bd = …;
static struct snd_soc_dai_driver soc_dai_bd = …;
static int bd28623_probe(struct platform_device *pdev)
{ … }
static const struct of_device_id bd28623_of_match[] __maybe_unused = …;
MODULE_DEVICE_TABLE(of, bd28623_of_match);
static struct platform_driver bd28623_codec_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;