linux/sound/soc/codecs/cs47l24.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * cs47l24.h  --  ALSA SoC Audio driver for Cirrus Logic CS47L24
 *
 * Copyright 2015 Cirrus Logic Inc.
 *
 * Author: Richard Fitzgerald <[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 "cs47l24.h"

#define DRV_NAME

struct cs47l24_priv {};

static const struct cs_dsp_region cs47l24_dsp2_regions[] =;

static const struct cs_dsp_region cs47l24_dsp3_regions[] =;

static const struct cs_dsp_region *cs47l24_dsp_regions[] =;

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

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 CS47L24_NG_SRC(name, base)

static const struct snd_kcontrol_new cs47l24_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_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_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 cs47l24_aec_loopback_texts[] =;

static const unsigned int cs47l24_aec_loopback_values[] =;

static const struct soc_enum cs47l24_aec_loopback =;

static const struct snd_kcontrol_new cs47l24_aec_loopback_mux =;

static const struct snd_soc_dapm_widget cs47l24_dapm_widgets[] =;

#define ARIZONA_MIXER_INPUT_ROUTES(name)

static const struct snd_soc_dapm_route cs47l24_dapm_routes[] =;

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

#define CS47L24_RATES

#define CS47L24_FORMATS

static const struct snd_soc_dai_ops cs47l24_dai_ops =;

static struct snd_soc_dai_driver cs47l24_dai[] =;

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

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

static int cs47l24_component_probe(struct snd_soc_component *component)
{}

static void cs47l24_component_remove(struct snd_soc_component *component)
{}

#define CS47L24_DIG_VU

static unsigned int cs47l24_digital_vu[] =;

static const struct snd_compress_ops cs47l24_compress_ops =;

static const struct snd_soc_component_driver soc_component_dev_cs47l24 =;

static int cs47l24_probe(struct platform_device *pdev)
{}

static void cs47l24_remove(struct platform_device *pdev)
{}

static struct platform_driver cs47l24_codec_driver =;

module_platform_driver();

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