#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/tlv.h>
#include <linux/irqchip/irq-madera.h>
#include <linux/mfd/madera/core.h>
#include <linux/mfd/madera/registers.h>
#include "madera.h"
#include "wm_adsp.h"
#define CS47L15_NUM_ADSP …
#define CS47L15_MONO_OUTPUTS …
#define CS47L15_ADC_INT_BIAS_MASK …
#define CS47L15_ADC_INT_BIAS_SHIFT …
#define CS47L15_PGA_BIAS_SEL_MASK …
#define CS47L15_PGA_BIAS_SEL_SHIFT …
#define DRV_NAME …
struct cs47l15 { … };
static const struct cs_dsp_region cs47l15_dsp1_regions[] = …;
static const char * const cs47l15_outdemux_texts[] = …;
static SOC_ENUM_SINGLE_DECL(cs47l15_outdemux_enum, SND_SOC_NOPM, 0,
cs47l15_outdemux_texts);
static const struct snd_kcontrol_new cs47l15_outdemux = …;
static int cs47l15_adsp_power_ev(struct snd_soc_dapm_widget *w,
struct snd_kcontrol *kcontrol,
int event)
{ … }
#define CS47L15_NG_SRC(name, base) …
static int cs47l15_in1_adc_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static int cs47l15_in1_adc_put(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{ … }
static const struct snd_kcontrol_new cs47l15_snd_controls[] = …;
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_DSP_AUX_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MIXER_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
MADERA_MUX_ENUMS(…);
static const char * const cs47l15_aec_loopback_texts[] = …;
static const unsigned int cs47l15_aec_loopback_values[] = …;
static const struct soc_enum cs47l15_aec1_loopback = …;
static const struct soc_enum cs47l15_aec2_loopback = …;
static const struct snd_kcontrol_new cs47l15_aec_loopback_mux[] = …;
static const struct snd_soc_dapm_widget cs47l15_dapm_widgets[] = …;
#define MADERA_MIXER_INPUT_ROUTES(name) …
static const struct snd_soc_dapm_route cs47l15_dapm_routes[] = …;
static int cs47l15_set_fll(struct snd_soc_component *component, int fll_id,
int source, unsigned int fref, unsigned int fout)
{ … }
static const struct snd_soc_dai_ops cs47l15_dai_ops = …;
static struct snd_soc_dai_driver cs47l15_dai[] = …;
static int cs47l15_open(struct snd_soc_component *component,
struct snd_compr_stream *stream)
{ … }
static irqreturn_t cs47l15_adsp2_irq(int irq, void *data)
{ … }
static const struct snd_soc_dapm_route cs47l15_mono_routes[] = …;
static int cs47l15_component_probe(struct snd_soc_component *component)
{ … }
static void cs47l15_component_remove(struct snd_soc_component *component)
{ … }
#define CS47L15_DIG_VU …
static unsigned int cs47l15_digital_vu[] = …;
static const struct snd_compress_ops cs47l15_compress_ops = …;
static const struct snd_soc_component_driver soc_component_dev_cs47l15 = …;
static int cs47l15_probe(struct platform_device *pdev)
{ … }
static void cs47l15_remove(struct platform_device *pdev)
{ … }
static struct platform_driver cs47l15_codec_driver = …;
module_platform_driver(…) …;
MODULE_SOFTDEP(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;