#include <sound/soc.h>
#include <sound/soc-dapm.h>
#include <sound/jack.h>
#include <linux/gpio.h>
#include <linux/module.h>
#include "../codecs/wm8996.h"
#include "../codecs/wm9081.h"
#define WM8996_HPSEL_GPIO …
#define MCLK_AUDIO_RATE …
static int speyside_set_bias_level(struct snd_soc_card *card,
struct snd_soc_dapm_context *dapm,
enum snd_soc_bias_level level)
{ … }
static int speyside_set_bias_level_post(struct snd_soc_card *card,
struct snd_soc_dapm_context *dapm,
enum snd_soc_bias_level level)
{ … }
static struct snd_soc_jack speyside_headset;
static struct snd_soc_jack_pin speyside_headset_pins[] = …;
static int speyside_jack_polarity;
static int speyside_get_micbias(struct snd_soc_dapm_widget *source,
struct snd_soc_dapm_widget *sink)
{ … }
static void speyside_set_polarity(struct snd_soc_component *component,
int polarity)
{ … }
static int speyside_wm0010_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int speyside_wm8996_init(struct snd_soc_pcm_runtime *rtd)
{ … }
static int speyside_late_probe(struct snd_soc_card *card)
{ … }
static const struct snd_soc_pcm_stream dsp_codec_params = …;
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
SND_SOC_DAILINK_DEFS(…);
static struct snd_soc_dai_link speyside_dai[] = …;
static int speyside_wm9081_init(struct snd_soc_component *component)
{ … }
static struct snd_soc_aux_dev speyside_aux_dev[] = …;
static struct snd_soc_codec_conf speyside_codec_conf[] = …;
static const struct snd_kcontrol_new controls[] = …;
static const struct snd_soc_dapm_widget widgets[] = …;
static const struct snd_soc_dapm_route audio_paths[] = …;
static struct snd_soc_card speyside = …;
static int speyside_probe(struct platform_device *pdev)
{ … }
static struct platform_driver speyside_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;