summaryrefslogtreecommitdiffstats
path: root/sound/soc/mediatek/common/mtk-base-afe.h
diff options
context:
space:
mode:
authorRyder Lee <ryder.lee@mediatek.com>2018-04-25 12:19:56 +0800
committerMark Brown <broonie@kernel.org>2018-04-26 15:08:58 +0100
commitab7b4ee9861a340b470e59f8d19360f7bc81e9dd (patch)
treeaec0d4b373ea30c9384a9a03154698e655e342b8 /sound/soc/mediatek/common/mtk-base-afe.h
parentcf8702736032cd593f481e4c2ac38cfe6fa67799 (diff)
ASoC: mediatek: Add MTK_STREAM_NUM to mtk-base-afe.h
Add MTK_STREAM_NUM to common header and modify related stuff so that the other SoCs can reuse it. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Reviewed-by: Garlic Tseng <garlic.tseng@mediatek.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/mediatek/common/mtk-base-afe.h')
-rw-r--r--sound/soc/mediatek/common/mtk-base-afe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/mediatek/common/mtk-base-afe.h b/sound/soc/mediatek/common/mtk-base-afe.h
index 3a78f6f17195..e50adc9116cf 100644
--- a/sound/soc/mediatek/common/mtk-base-afe.h
+++ b/sound/soc/mediatek/common/mtk-base-afe.h
@@ -17,6 +17,8 @@
#ifndef _MTK_BASE_AFE_H_
#define _MTK_BASE_AFE_H_
+#define MTK_STREAM_NUM (SNDRV_PCM_STREAM_LAST + 1)
+
struct mtk_base_memif_data {
int id;
const char *name;