#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/tlv.h>
#define DRV_NAME …
struct max9759 { … };
static int pga_event(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *control, int event)
{ … }
static const DECLARE_TLV_DB_SCALE(speaker_gain_tlv, 600, 600, 0);
static int speaker_gain_control_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const bool speaker_gain_table[4][2] = …;
static int speaker_gain_control_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int speaker_mute_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int speaker_mute_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const struct snd_kcontrol_new max9759_dapm_controls[] = …;
static const struct snd_soc_dapm_widget max9759_dapm_widgets[] = …;
static const struct snd_soc_dapm_route max9759_dapm_routes[] = …;
static const struct snd_soc_component_driver max9759_component_driver = …;
static int max9759_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id max9759_ids[] = …;
MODULE_DEVICE_TABLE(of, max9759_ids);
#endif
static struct platform_driver max9759_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;