linux/sound/soc/meson/aiu-codec-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_CLK_SEL
#define CTRL_DATA_SEL_SHIFT
#define CTRL_DATA_SEL

static const char * const aiu_codec_ctrl_mux_texts[] =;

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

static SOC_ENUM_SINGLE_DECL(aiu_hdmi_ctrl_mux_enum, AIU_HDMI_CLK_DATA_CTRL,
			    CTRL_DATA_SEL_SHIFT,
			    aiu_codec_ctrl_mux_texts);

static const struct snd_kcontrol_new aiu_hdmi_ctrl_mux =;

static const struct snd_soc_dapm_widget aiu_hdmi_ctrl_widgets[] =;

static const struct snd_soc_dai_ops aiu_codec_ctrl_input_ops =;

static const struct snd_soc_dai_ops aiu_codec_ctrl_output_ops =;

#define AIU_CODEC_CTRL_FORMATS

#define AIU_CODEC_CTRL_STREAM(xname, xsuffix)

#define AIU_CODEC_CTRL_INPUT(xname)

#define AIU_CODEC_CTRL_OUTPUT(xname)

static struct snd_soc_dai_driver aiu_hdmi_ctrl_dai_drv[] =;

static const struct snd_soc_dapm_route aiu_hdmi_ctrl_routes[] =;

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

static const struct snd_soc_component_driver aiu_hdmi_ctrl_component =;

int aiu_hdmi_ctrl_register_component(struct device *dev)
{}