0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef _MT_6797_AFE_COMMON_H_
0010 #define _MT_6797_AFE_COMMON_H_
0011
0012 #include <sound/soc.h>
0013 #include <linux/list.h>
0014 #include <linux/regmap.h>
0015 #include "../common/mtk-base-afe.h"
0016
0017 enum {
0018 MT6797_MEMIF_DL1,
0019 MT6797_MEMIF_DL2,
0020 MT6797_MEMIF_DL3,
0021 MT6797_MEMIF_VUL,
0022 MT6797_MEMIF_AWB,
0023 MT6797_MEMIF_VUL12,
0024 MT6797_MEMIF_DAI,
0025 MT6797_MEMIF_MOD_DAI,
0026 MT6797_MEMIF_NUM,
0027 MT6797_DAI_ADDA = MT6797_MEMIF_NUM,
0028 MT6797_DAI_PCM_1,
0029 MT6797_DAI_PCM_2,
0030 MT6797_DAI_HOSTLESS_LPBK,
0031 MT6797_DAI_HOSTLESS_SPEECH,
0032 MT6797_DAI_NUM,
0033 };
0034
0035 enum {
0036 MT6797_IRQ_1,
0037 MT6797_IRQ_2,
0038 MT6797_IRQ_3,
0039 MT6797_IRQ_4,
0040 MT6797_IRQ_7,
0041 MT6797_IRQ_NUM,
0042 };
0043
0044 struct clk;
0045
0046 struct mt6797_afe_private {
0047 struct clk **clk;
0048 };
0049
0050 unsigned int mt6797_general_rate_transform(struct device *dev,
0051 unsigned int rate);
0052 unsigned int mt6797_rate_transform(struct device *dev,
0053 unsigned int rate, int aud_blk);
0054
0055
0056 int mt6797_dai_adda_register(struct mtk_base_afe *afe);
0057 int mt6797_dai_pcm_register(struct mtk_base_afe *afe);
0058 int mt6797_dai_hostless_register(struct mtk_base_afe *afe);
0059 #endif