2 * mtk_afe_common.h -- Mediatek audio driver common definitions
4 * Copyright (c) 2015 MediaTek Inc.
5 * Author: Koro Chen <koro.chen@mediatek.com>
6 * Sascha Hauer <s.hauer@pengutronix.de>
7 * Hidalgo Huang <hidalgo.huang@mediatek.com>
8 * Ir Lian <ir.lian@mediatek.com>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 and
12 * only version 2 as published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
20 #ifndef _MTK_AFE_COMMON_H_
21 #define _MTK_AFE_COMMON_H_
23 #include <linux/clk.h>
24 #include <linux/regmap.h>
32 MTK_AFE_MEMIF_MOD_DAI
,
35 MTK_AFE_IO_MOD_PCM1
= MTK_AFE_MEMIF_NUM
,
63 MTK_CLK_TOP_PDN_AUD_BUS
,
75 struct snd_pcm_substream
;
77 struct mtk_afe_memif_data
{
93 struct mtk_afe_memif
{
94 unsigned int phys_buf_addr
;
96 struct snd_pcm_substream
*substream
;
97 const struct mtk_afe_memif_data
*data
;
98 const struct mtk_afe_irq_data
*irqdata
;