#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 …
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[] = …;
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 = …;
#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)
{ … }