linux/sound/soc/codecs/wm5110.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * wm5110.c  --  WM5110 ALSA SoC Audio driver
 *
 * Copyright 2012 Wolfson Microelectronics plc
 *
 * Author: Mark Brown <[email protected]>
 */

#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/jack.h>
#include <sound/initval.h>
#include <sound/tlv.h>

#include <linux/mfd/arizona/core.h>
#include <linux/mfd/arizona/registers.h>

#include "arizona.h"
#include "wm_adsp.h"
#include "wm5110.h"

#define WM5110_NUM_ADSP

#define DRV_NAME

struct wm5110_priv {};

static const struct cs_dsp_region wm5110_dsp1_regions[] =;

static const struct cs_dsp_region wm5110_dsp2_regions[] =;

static const struct cs_dsp_region wm5110_dsp3_regions[] =;

static const struct cs_dsp_region wm5110_dsp4_regions[] =;

static const struct cs_dsp_region *wm5110_dsp_regions[] =;

static const struct reg_default wm5110_sysclk_revd_patch[] =;

static const struct reg_default wm5110_sysclk_reve_patch[] =;

static int wm5110_sysclk_ev(struct snd_soc_dapm_widget *w,
			    struct snd_kcontrol *kcontrol, int event)
{}

static int wm5110_adsp_power_ev(struct snd_soc_dapm_widget *w,
				struct snd_kcontrol *kcontrol, int event)
{}

static const struct reg_sequence wm5110_no_dre_left_enable[] =;

static const struct reg_sequence wm5110_dre_left_enable[] =;

static const struct reg_sequence wm5110_no_dre_right_enable[] =;

static const struct reg_sequence wm5110_dre_right_enable[] =;

static int wm5110_hp_pre_enable(struct snd_soc_dapm_widget *w)
{}

static int wm5110_hp_pre_disable(struct snd_soc_dapm_widget *w)
{}

static int wm5110_hp_ev(struct snd_soc_dapm_widget *w,
			struct snd_kcontrol *kcontrol, int event)
{}

static int wm5110_clear_pga_volume(struct arizona *arizona, int output)
{}

static int wm5110_put_dre(struct snd_kcontrol *kcontrol,
			  struct snd_ctl_elem_value *ucontrol)
{}

static int wm5110_in_pga_get(struct snd_kcontrol *kcontrol,
			     struct snd_ctl_elem_value *ucontrol)
{}

static int wm5110_in_pga_put(struct snd_kcontrol *kcontrol,
			     struct snd_ctl_elem_value *ucontrol)
{}

static int wm5110_in_analog_ev(struct snd_soc_dapm_widget *w,
			       struct snd_kcontrol *kcontrol, int event)
{}

static int wm5110_in_ev(struct snd_soc_dapm_widget *w,
			struct snd_kcontrol *kcontrol, int event)
{}

static DECLARE_TLV_DB_SCALE(ana_tlv, 0, 100, 0);
static DECLARE_TLV_DB_SCALE(eq_tlv, -1200, 100, 0);
static DECLARE_TLV_DB_SCALE(digital_tlv, -6400, 50, 0);
static DECLARE_TLV_DB_SCALE(noise_tlv, -13200, 600, 0);
static DECLARE_TLV_DB_SCALE(ng_tlv, -10200, 600, 0);

#define WM5110_NG_SRC(name, base)

#define WM5110_RXANC_INPUT_ROUTES(widget, name)

#define WM5110_RXANC_OUTPUT_ROUTES(widget, name)

static const struct snd_kcontrol_new wm5110_snd_controls[] =;

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_DSP_AUX_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_DSP_AUX_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_DSP_AUX_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_DSP_AUX_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();
ARIZONA_MIXER_ENUMS();

ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();

ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();

ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();

ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();

ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();

ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();

ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();
ARIZONA_MUX_ENUMS();

static const char * const wm5110_aec_loopback_texts[] =;

static const unsigned int wm5110_aec_loopback_values[] =;

static const struct soc_enum wm5110_aec_loopback =;

static const struct snd_kcontrol_new wm5110_aec_loopback_mux =;

static const struct snd_kcontrol_new wm5110_anc_input_mux[] =;

static const struct snd_kcontrol_new wm5110_anc_ng_mux =;

static const struct snd_kcontrol_new wm5110_output_anc_src[] =;

static const struct snd_soc_dapm_widget wm5110_dapm_widgets[] =;

#define ARIZONA_MIXER_INPUT_ROUTES(name)

static const struct snd_soc_dapm_route wm5110_dapm_routes[] =;

static int wm5110_set_fll(struct snd_soc_component *component, int fll_id,
			  int source, unsigned int Fref, unsigned int Fout)
{}

#define WM5110_RATES

#define WM5110_FORMATS

static const struct snd_soc_dai_ops wm5110_dai_ops =;

static struct snd_soc_dai_driver wm5110_dai[] =;

static int wm5110_open(struct snd_soc_component *component,
		       struct snd_compr_stream *stream)
{}

static irqreturn_t wm5110_adsp2_irq(int irq, void *data)
{}

static int wm5110_component_probe(struct snd_soc_component *component)
{}

static void wm5110_component_remove(struct snd_soc_component *component)
{}

#define WM5110_DIG_VU

static unsigned int wm5110_digital_vu[] =;

static const struct snd_compress_ops wm5110_compress_ops =;

static const struct snd_soc_component_driver soc_component_dev_wm5110 =;

static int wm5110_probe(struct platform_device *pdev)
{}

static void wm5110_remove(struct platform_device *pdev)
{}

static struct platform_driver wm5110_codec_driver =;

module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();
MODULE_ALIAS();