1 /* SPDX-License-Identifier: GPL-2.0 */
3 * mt6797-afe-common.h -- Mediatek 6797 audio driver definitions
5 * Copyright (c) 2018 MediaTek Inc.
6 * Author: KaiChieh Chuang <kaichieh.chuang@mediatek.com>
9 #ifndef _MT_6797_AFE_COMMON_H_
10 #define _MT_6797_AFE_COMMON_H_
12 #include <sound/soc.h>
13 #include <linux/list.h>
14 #include <linux/regmap.h>
15 #include "../common/mtk-base-afe.h"
27 MT6797_DAI_ADDA
= MT6797_MEMIF_NUM
,
30 MT6797_DAI_HOSTLESS_LPBK
,
31 MT6797_DAI_HOSTLESS_SPEECH
,
46 struct mt6797_afe_private
{
50 unsigned int mt6797_general_rate_transform(struct device
*dev
,
52 unsigned int mt6797_rate_transform(struct device
*dev
,
53 unsigned int rate
, int aud_blk
);
56 int mt6797_dai_adda_register(struct mtk_base_afe
*afe
);
57 int mt6797_dai_pcm_register(struct mtk_base_afe
*afe
);
58 int mt6797_dai_hostless_register(struct mtk_base_afe
*afe
);