Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0
0002  *
0003  * Mediatek MT8186 audio driver interconnection definition
0004  *
0005  * Copyright (c) 2022 MediaTek Inc.
0006  * Author: Jiaxin Yu <jiaxin.yu@mediatek.com>
0007  */
0008 
0009 #ifndef _MT8186_INTERCONNECTION_H_
0010 #define _MT8186_INTERCONNECTION_H_
0011 
0012 /* in port define */
0013 #define I_I2S0_CH1 0
0014 #define I_I2S0_CH2 1
0015 #define I_ADDA_UL_CH1 3
0016 #define I_ADDA_UL_CH2 4
0017 #define I_DL1_CH1 5
0018 #define I_DL1_CH2 6
0019 #define I_DL2_CH1 7
0020 #define I_DL2_CH2 8
0021 #define I_PCM_1_CAP_CH1 9
0022 #define I_GAIN1_OUT_CH1 10
0023 #define I_GAIN1_OUT_CH2 11
0024 #define I_GAIN2_OUT_CH1 12
0025 #define I_GAIN2_OUT_CH2 13
0026 #define I_PCM_2_CAP_CH1 14
0027 #define I_ADDA_UL_CH3 17
0028 #define I_ADDA_UL_CH4 18
0029 #define I_DL12_CH1 19
0030 #define I_DL12_CH2 20
0031 #define I_DL12_CH3 5
0032 #define I_DL12_CH4 6
0033 #define I_PCM_2_CAP_CH2 21
0034 #define I_PCM_1_CAP_CH2 22
0035 #define I_DL3_CH1 23
0036 #define I_DL3_CH2 24
0037 #define I_I2S2_CH1 25
0038 #define I_I2S2_CH2 26
0039 #define I_I2S2_CH3 27
0040 #define I_I2S2_CH4 28
0041 
0042 /* in port define >= 32 */
0043 #define I_32_OFFSET 32
0044 #define I_CONNSYS_I2S_CH1 (34 - I_32_OFFSET)
0045 #define I_CONNSYS_I2S_CH2 (35 - I_32_OFFSET)
0046 #define I_SRC_1_OUT_CH1 (36 - I_32_OFFSET)
0047 #define I_SRC_1_OUT_CH2 (37 - I_32_OFFSET)
0048 #define I_SRC_2_OUT_CH1 (38 - I_32_OFFSET)
0049 #define I_SRC_2_OUT_CH2 (39 - I_32_OFFSET)
0050 #define I_DL4_CH1 (40 - I_32_OFFSET)
0051 #define I_DL4_CH2 (41 - I_32_OFFSET)
0052 #define I_DL5_CH1 (42 - I_32_OFFSET)
0053 #define I_DL5_CH2 (43 - I_32_OFFSET)
0054 #define I_DL6_CH1 (44 - I_32_OFFSET)
0055 #define I_DL6_CH2 (45 - I_32_OFFSET)
0056 #define I_DL7_CH1 (46 - I_32_OFFSET)
0057 #define I_DL7_CH2 (47 - I_32_OFFSET)
0058 #define I_DL8_CH1 (48 - I_32_OFFSET)
0059 #define I_DL8_CH2 (49 - I_32_OFFSET)
0060 #define I_TDM_IN_CH1 (56 - I_32_OFFSET)
0061 #define I_TDM_IN_CH2 (57 - I_32_OFFSET)
0062 #define I_TDM_IN_CH3 (58 - I_32_OFFSET)
0063 #define I_TDM_IN_CH4 (59 - I_32_OFFSET)
0064 #define I_TDM_IN_CH5 (60 - I_32_OFFSET)
0065 #define I_TDM_IN_CH6 (61 - I_32_OFFSET)
0066 #define I_TDM_IN_CH7 (62 - I_32_OFFSET)
0067 #define I_TDM_IN_CH8 (63 - I_32_OFFSET)
0068 
0069 #endif