linux/sound/soc/mediatek/mt8365/mt8365-dai-adda.c

// SPDX-License-Identifier: GPL-2.0
/*
 * MediaTek 8365 ALSA SoC Audio DAI ADDA Control
 *
 * Copyright (c) 2024 MediaTek Inc.
 * Authors: Jia Zeng <[email protected]>
 *          Alexandre Mergnat <[email protected]>
 */

#include <linux/bitops.h>
#include <linux/regmap.h>
#include <sound/pcm_params.h>
#include "mt8365-afe-clk.h"
#include "mt8365-afe-common.h"
#include "../common/mtk-dai-adda-common.h"

static int adda_afe_on_ref_cnt;

/* DAI Drivers */

static int mt8365_dai_set_adda_out(struct mtk_base_afe *afe, unsigned int rate)
{}

static int mt8365_dai_set_adda_in(struct mtk_base_afe *afe, unsigned int rate)
{}

int mt8365_dai_enable_adda_on(struct mtk_base_afe *afe)
{}

int mt8365_dai_disable_adda_on(struct mtk_base_afe *afe)
{}

static void mt8365_dai_set_adda_out_enable(struct mtk_base_afe *afe,
					   bool enable)
{}

static void mt8365_dai_set_adda_in_enable(struct mtk_base_afe *afe, bool enable)
{}

static int mt8365_dai_int_adda_startup(struct snd_pcm_substream *substream,
				       struct snd_soc_dai *dai)
{}

static void mt8365_dai_int_adda_shutdown(struct snd_pcm_substream *substream,
					 struct snd_soc_dai *dai)
{}

static int mt8365_dai_int_adda_prepare(struct snd_pcm_substream *substream,
				       struct snd_soc_dai *dai)
{}

static const struct snd_soc_dai_ops mt8365_afe_int_adda_ops =;

static struct snd_soc_dai_driver mtk_dai_adda_driver[] =;

/* DAI Controls */

static const struct snd_kcontrol_new mtk_adda_dl_ch1_mix[] =;

static const struct snd_kcontrol_new mtk_adda_dl_ch2_mix[] =;

static const struct snd_kcontrol_new int_adda_o03_o04_enable_ctl =;

/* DAI widget */

static const struct snd_soc_dapm_widget mtk_dai_adda_widgets[] =;

/* DAI route */

static const struct snd_soc_dapm_route mtk_dai_adda_routes[] =;

int mt8365_dai_adda_register(struct mtk_base_afe *afe)
{}