linux/sound/soc/codecs/cs47l92.c

// SPDX-License-Identifier: GPL-2.0-only
//
// ALSA SoC Audio driver for CS47L92 codec
//
// Copyright (C) 2016-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 CS47L92_NUM_ADSP
#define CS47L92_MONO_OUTPUTS

#define DRV_NAME

struct cs47l92 {};

static const struct cs_dsp_region cs47l92_dsp1_regions[] =;

static const char * const cs47l92_outdemux_texts[] =;

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

static SOC_ENUM_SINGLE_DECL(cs47l92_outdemux_enum,
			    MADERA_OUTPUT_ENABLES_1,
			    MADERA_EP_SEL_SHIFT,
			    cs47l92_outdemux_texts);

static const struct snd_kcontrol_new cs47l92_outdemux =;

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

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

#define CS47L92_NG_SRC(name, base)

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

static const char * const cs47l92_aec_loopback_texts[] =;

static const unsigned int cs47l92_aec_loopback_values[] =;

static const struct soc_enum cs47l92_aec_loopback =;

static const struct snd_kcontrol_new cs47l92_aec_loopback_mux =;

static const struct snd_soc_dapm_widget cs47l92_dapm_widgets[] =;

#define MADERA_MIXER_INPUT_ROUTES(name)

static const struct snd_soc_dapm_route cs47l92_dapm_routes[] =;

static int cs47l92_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 cs47l92_dai_ops =;

static struct snd_soc_dai_driver cs47l92_dai[] =;

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

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

static const struct snd_soc_dapm_route cs47l92_mono_routes[] =;

static int cs47l92_component_probe(struct snd_soc_component *component)
{}

static void cs47l92_component_remove(struct snd_soc_component *component)
{}

#define CS47L92_DIG_VU

static unsigned int cs47l92_digital_vu[] =;

static const struct snd_compress_ops cs47l92_compress_ops =;

static const struct snd_soc_component_driver soc_component_dev_cs47l92 =;

static int cs47l92_probe(struct platform_device *pdev)
{}

static void cs47l92_remove(struct platform_device *pdev)
{}

static struct platform_driver cs47l92_codec_driver =;

module_platform_driver();

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