linux/sound/soc/codecs/wm8997.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * wm8997.c  --  WM8997 ALSA SoC Audio driver
 *
 * Copyright 2012 Wolfson Microelectronics plc
 *
 * Author: Charles Keepax <[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 "wm8997.h"

struct wm8997_priv {};

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);

static const struct reg_default wm8997_sysclk_reva_patch[] =;

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

static const char * const wm8997_osr_text[] =;

static const unsigned int wm8997_osr_val[] =;

static const struct soc_enum wm8997_hpout_osr[] =;

#define WM8997_NG_SRC(name, base)

static const struct snd_kcontrol_new wm8997_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_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();

static const char *wm8997_aec_loopback_texts[] =;

static const unsigned int wm8997_aec_loopback_values[] =;

static const struct soc_enum wm8997_aec_loopback =;

static const struct snd_kcontrol_new wm8997_aec_loopback_mux =;

static const struct snd_soc_dapm_widget wm8997_dapm_widgets[] =;

#define ARIZONA_MIXER_INPUT_ROUTES(name)

static const struct snd_soc_dapm_route wm8997_dapm_routes[] =;

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

#define WM8997_RATES

#define WM8997_FORMATS

static struct snd_soc_dai_driver wm8997_dai[] =;

static int wm8997_component_probe(struct snd_soc_component *component)
{}

static void wm8997_component_remove(struct snd_soc_component *component)
{}

#define WM8997_DIG_VU

static unsigned int wm8997_digital_vu[] =;

static const struct snd_soc_component_driver soc_component_dev_wm8997 =;

static int wm8997_probe(struct platform_device *pdev)
{}

static void wm8997_remove(struct platform_device *pdev)
{}

static struct platform_driver wm8997_codec_driver =;

module_platform_driver();

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