linux/sound/soc/meson/aiu-acodec-ctrl.c

// SPDX-License-Identifier: GPL-2.0
//
// Copyright (c) 2020 BayLibre, SAS.
// Author: Jerome Brunet <[email protected]>

#include <linux/bitfield.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <sound/soc-dai.h>

#include <dt-bindings/sound/meson-aiu.h>
#include "aiu.h"
#include "meson-codec-glue.h"

#define CTRL_DIN_EN
#define CTRL_CLK_INV
#define CTRL_LRCLK_INV
#define CTRL_I2S_IN_BCLK_SRC
#define CTRL_DIN_LRCLK_SRC_SHIFT
#define CTRL_DIN_LRCLK_SRC
#define CTRL_BCLK_MCLK_SRC
#define CTRL_DIN_SKEW
#define CTRL_I2S_OUT_LANE_SRC

#define AIU_ACODEC_OUT_CHMAX

static const char * const aiu_acodec_ctrl_mux_texts[] =;

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

static SOC_ENUM_SINGLE_DECL(aiu_acodec_ctrl_mux_enum, AIU_ACODEC_CTRL,
			    CTRL_DIN_LRCLK_SRC_SHIFT,
			    aiu_acodec_ctrl_mux_texts);

static const struct snd_kcontrol_new aiu_acodec_ctrl_mux =;

static const struct snd_kcontrol_new aiu_acodec_ctrl_out_enable =;

static const struct snd_soc_dapm_widget aiu_acodec_ctrl_widgets[] =;

static int aiu_acodec_ctrl_input_hw_params(struct snd_pcm_substream *substream,
					   struct snd_pcm_hw_params *params,
					   struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops aiu_acodec_ctrl_input_ops =;

static const struct snd_soc_dai_ops aiu_acodec_ctrl_output_ops =;

#define AIU_ACODEC_CTRL_FORMATS

#define AIU_ACODEC_STREAM(xname, xsuffix, xchmax)

#define AIU_ACODEC_INPUT(xname)

#define AIU_ACODEC_OUTPUT(xname)

static struct snd_soc_dai_driver aiu_acodec_ctrl_dai_drv[] =;

static const struct snd_soc_dapm_route aiu_acodec_ctrl_routes[] =;

static const struct snd_kcontrol_new aiu_acodec_ctrl_controls[] =;

static int aiu_acodec_of_xlate_dai_name(struct snd_soc_component *component,
					const struct of_phandle_args *args,
					const char **dai_name)
{}

static int aiu_acodec_ctrl_component_probe(struct snd_soc_component *component)
{}

static const struct snd_soc_component_driver aiu_acodec_ctrl_component =;

int aiu_acodec_ctrl_register_component(struct device *dev)
{}