linux/sound/soc/codecs/cs47l85.c

// SPDX-License-Identifier: GPL-2.0-only
//
// ALSA SoC Audio driver for CS47L85 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 CS47L85_NUM_ADSP
#define CS47L85_MONO_OUTPUTS

struct cs47l85 {};

static const struct cs_dsp_region cs47l85_dsp1_regions[] =;

static const struct cs_dsp_region cs47l85_dsp2_regions[] =;

static const struct cs_dsp_region cs47l85_dsp3_regions[] =;

static const struct cs_dsp_region cs47l85_dsp4_regions[] =;

static const struct cs_dsp_region cs47l85_dsp5_regions[] =;

static const struct cs_dsp_region cs47l85_dsp6_regions[] =;

static const struct cs_dsp_region cs47l85_dsp7_regions[] =;

static const struct cs_dsp_region *cs47l85_dsp_regions[] =;

static const unsigned int wm_adsp2_control_bases[] =;

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

#define CS47L85_NG_SRC(name, base)

#define CS47L85_RXANC_INPUT_ROUTES(widget, name)

#define CS47L85_RXANC_OUTPUT_ROUTES(widget, name)

static void cs47l85_hp_post_enable(struct snd_soc_dapm_widget *w)
{}

static void cs47l85_hp_post_disable(struct snd_soc_dapm_widget *w)
{}

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

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

static const char * const cs47l85_aec_loopback_texts[] =;

static const unsigned int cs47l85_aec_loopback_values[] =;

static const struct soc_enum cs47l85_aec1_loopback =;

static const struct soc_enum cs47l85_aec2_loopback =;

static const struct snd_kcontrol_new cs47l85_aec_loopback_mux[] =;

static const struct snd_kcontrol_new cs47l85_anc_input_mux[] =;

static const struct snd_kcontrol_new cs47l85_anc_ng_mux =;

static const struct snd_kcontrol_new cs47l85_output_anc_src[] =;

static const struct snd_soc_dapm_widget cs47l85_dapm_widgets[] =;

#define MADERA_MIXER_INPUT_ROUTES(name)

static const struct snd_soc_dapm_route cs47l85_dapm_routes[] =;

static int cs47l85_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 cs47l85_dai_ops =;

static struct snd_soc_dai_driver cs47l85_dai[] =;

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

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

static int cs47l85_component_probe(struct snd_soc_component *component)
{}

static void cs47l85_component_remove(struct snd_soc_component *component)
{}

#define MADERA_DIG_VU

static const unsigned int cs47l85_digital_vu[] =;

static const struct snd_compress_ops cs47l85_compress_ops =;

static const struct snd_soc_component_driver soc_component_dev_cs47l85 =;

static int cs47l85_probe(struct platform_device *pdev)
{}

static void cs47l85_remove(struct platform_device *pdev)
{}

static struct platform_driver cs47l85_codec_driver =;

module_platform_driver();

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