linux/sound/soc/mediatek/mt8186/mt8186-dai-hw-gain.c

// SPDX-License-Identifier: GPL-2.0
//
// MediaTek ALSA SoC Audio DAI HW Gain Control
//
// Copyright (c) 2022 MediaTek Inc.
// Author: Jiaxin Yu <[email protected]>

#include <linux/regmap.h>
#include "mt8186-afe-common.h"
#include "mt8186-interconnection.h"

#define HW_GAIN_1_EN_W_NAME
#define HW_GAIN_2_EN_W_NAME

/* dai component */
static const struct snd_kcontrol_new mtk_hw_gain1_in_ch1_mix[] =;

static const struct snd_kcontrol_new mtk_hw_gain1_in_ch2_mix[] =;

static const struct snd_kcontrol_new mtk_hw_gain2_in_ch1_mix[] =;

static const struct snd_kcontrol_new mtk_hw_gain2_in_ch2_mix[] =;

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

static const struct snd_soc_dapm_widget mtk_dai_hw_gain_widgets[] =;

static const struct snd_soc_dapm_route mtk_dai_hw_gain_routes[] =;

static const struct snd_kcontrol_new mtk_hw_gain_controls[] =;

/* dai ops */
static int mtk_dai_gain_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 mtk_dai_gain_ops =;

/* dai driver */
#define MTK_HW_GAIN_RATES

#define MTK_HW_GAIN_FORMATS

static struct snd_soc_dai_driver mtk_dai_gain_driver[] =;

int mt8186_dai_hw_gain_register(struct mtk_base_afe *afe)
{}