1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mt7986-afe-common.h -- MediaTek 7986 audio driver definitions
5 * Copyright (c) 2023 MediaTek Inc.
6 * Authors: Vic Wu <vic.wu@mediatek.com>
7 * Maso Huang <maso.huang@mediatek.com>
10 #ifndef _MT_7986_AFE_COMMON_H_
11 #define _MT_7986_AFE_COMMON_H_
13 #include <sound/soc.h>
14 #include <linux/clk.h>
15 #include <linux/list.h>
16 #include <linux/regmap.h>
17 #include "../common/mtk-base-afe.h"
23 MT7986_DAI_ETDM = MT7986_MEMIF_NUM,
34 struct mt7986_afe_private {
35 struct clk_bulk_data *clks;
38 int pm_runtime_bypass_reg_ctl;
41 void *dai_priv[MT7986_DAI_NUM];
44 unsigned int mt7986_afe_rate_transform(struct device *dev,
48 int mt7986_dai_etdm_register(struct mtk_base_afe *afe);