linux/sound/soc/codecs/cs47l90.c

// SPDX-License-Identifier: GPL-2.0-only
//
// ALSA SoC Audio driver for CS47L90 codec
//
// Copyright (C) 2015-2019 Cirrus Logic, Inc. and
//                         Cirrus Logic International Semiconductor Ltd.
//

#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 DRV_NAME

#define CS47L90_NUM_ADSP
#define CS47L90_MONO_OUTPUTS

struct cs47l90 {};

static const struct cs_dsp_region cs47l90_dsp1_regions[] =;

static const struct cs_dsp_region cs47l90_dsp2_regions[] =;

static const struct cs_dsp_region cs47l90_dsp3_regions[] =;

static const struct cs_dsp_region cs47l90_dsp4_regions[] =;

static const struct cs_dsp_region cs47l90_dsp5_regions[] =;

static const struct cs_dsp_region cs47l90_dsp6_regions[] =;

static const struct cs_dsp_region cs47l90_dsp7_regions[] =;

static const struct cs_dsp_region *cs47l90_dsp_regions[] =;

static const int cs47l90_dsp_control_bases[] =;

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

#define CS47L90_NG_SRC(name, base)

#define CS47L90_RXANC_INPUT_ROUTES(widget, name)

#define CS47L90_RXANC_OUTPUT_ROUTES(widget, name)

static const struct snd_kcontrol_new cs47l90_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_DSP_AUX_ENUMS();

MADERA_MIXER_ENUMS();
MADERA_MIXER_ENUMS();
MADERA_DSP_AUX_ENUMS();

MADERA_MIXER_ENUMS();
MADERA_MIXER_ENUMS();
MADERA_DSP_AUX_ENUMS();

MADERA_MIXER_ENUMS();
MADERA_MIXER_ENUMS();
MADERA_DSP_AUX_ENUMS();

MADERA_MIXER_ENUMS();
MADERA_MIXER_ENUMS();
MADERA_DSP_AUX_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_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();

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

static const char * const cs47l90_aec_loopback_texts[] =;

static const unsigned int cs47l90_aec_loopback_values[] =;

static const struct soc_enum cs47l90_aec1_loopback =;

static const struct soc_enum cs47l90_aec2_loopback =;

static const struct snd_kcontrol_new cs47l90_aec_loopback_mux[] =;

static const struct snd_kcontrol_new cs47l90_anc_input_mux[] =;

static const struct snd_kcontrol_new cs47l90_anc_ng_mux =;

static const struct snd_kcontrol_new cs47l90_output_anc_src[] =;

static const struct snd_soc_dapm_widget cs47l90_dapm_widgets[] =;

#define MADERA_MIXER_INPUT_ROUTES(name)

static const struct snd_soc_dapm_route cs47l90_dapm_routes[] =;

static int cs47l90_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 cs47l90_dai_ops =;

static struct snd_soc_dai_driver cs47l90_dai[] =;

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

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

static int cs47l90_component_probe(struct snd_soc_component *component)
{}

static void cs47l90_component_remove(struct snd_soc_component *component)
{}

#define CS47L90_DIG_VU

static unsigned int cs47l90_digital_vu[] =;

static const struct snd_compress_ops cs47l90_compress_ops =;

static const struct snd_soc_component_driver soc_component_dev_cs47l90 =;

static int cs47l90_probe(struct platform_device *pdev)
{}

static void cs47l90_remove(struct platform_device *pdev)
{}

static struct platform_driver cs47l90_codec_driver =;

module_platform_driver();

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