blob: 5049c0562c08bf6d66d53d32e0e208f64dfa5f10 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001#ifndef AUDIO_CC
2#define AUDIO_CC
3
4typedef enum {
5 IRQ_L2P_TCH_NOTIFY,
6 IRQ_L2P_2G_HANDOVER,
7 IRQ_L2P_2G_AUDIOMANAGER_INFO,
8 IRQ_L2P_D2M_L2P_NOTIFY,
9 IRQ_L2P_BT_SCO_L2P_NOTIFY,
10 //IRQ_SP3G_LOG_L1_INFO,
11 //IRQ_SP4G_EMAC_TIMING_UPDATE,
12}AUD_CC_IRQ_T;
13
14typedef enum {
15 AUD_L2P_MESSAGE_BIT = 1 << 0, //bit 1
16}AUD_CC_L2P_EG_MASK; //Event Group
17
18typedef enum {
19 AUD_P2L_MESSAGE_BIT = 1 << 0, //bit 1
20}AUD_CC_P2L_EG_MASK; //Event Group
21
22#define MSG_P2L_BASE 0x2E00
23#define MSG_L2P_BASE 0xAE00
24typedef enum {
25 //------------------ P2L -----------------------
26 MSG_P2L_2G_CALL_ON = MSG_P2L_BASE + 0x00,
27 MSG_P2L_2G_CALL_OFF,
28 MSG_P2L_2G_HANDOVER,
29 MSG_P2L_3G_CALL_ON,
30 MSG_P2L_3G_CALL_OFF,
31 MSG_P2L_4G_CALL_ON,
32 MSG_P2L_4G_CALL_OFF,
33 MSG_P2L_4G_G_Codec_CALL_ON,
34 MSG_P2L_4G_G_Codec_CALL_OFF,
35 MSG_P2L_4G_EVS_Codec_CALL_ON,
36 MSG_P2L_4G_EVS_Codec_CALL_OFF,
37 MSG_P2L_C2K_CALL_ON,
38 MSG_P2L_C2K_CALL_OFF,
39 MSG_P2L_STANDBY_CALL_ON,
40 MSG_P2L_STANDBY_CALL_OFF,
41 MSG_P2L_SET_VBI_FOR_FSM,
42 MSG_P2L_AUD_RESTART_DSP,
43 MSG_P2L_AUD_NONEEDDSP,
44 MSG_P2L_L1D_AUD_CHKDSPINITDONE,
45
46 //------------------- L2P ----------------------
47 MSG_L2P_2G_CALL_ON_ACK = MSG_L2P_BASE,
48 MSG_L2P_2G_CALL_OFF_ACK,
49 MSG_L2P_2G_HANDOVER_ACK,
50 MSG_L2P_3G_CALL_ON_ACK,
51 MSG_L2P_3G_CALL_OFF_ACK,
52 MSG_L2P_4G_CALL_ON_ACK,
53 MSG_L2P_4G_CALL_OFF_ACK,
54 MSG_L2P_4G_G_Codec_CALL_ON_ACK,
55 MSG_L2P_4G_G_Codec_CALL_OFF_ACK,
56 MSG_L2P_4G_EVS_Codec_CALL_ON_ACK,
57 MSG_L2P_4G_EVS_Codec_CALL_OFF_ACK,
58 MSG_L2P_C2K_CALL_ON_ACK,
59 MSG_L2P_C2K_CALL_OFF_ACK,
60 MSG_L2P_STANDBY_CALL_ON_ACK,
61 MSG_L2P_STANDBY_CALL_OFF_ACK,
62 MSG_L2P_SET_VBI_FOR_FSM_ACK,
63 MSG_L2P_AUD_RESTART_DSP_ACK,
64 MSG_L2P_AUD_NONEEDDSP_ACK,
65 MSG_L2P_L1D_AUD_CHKDSPINITDONE_ACK,
66
67}AUD_CC_MSG_T;
68
69#define CC_MAX_DATA (10)
70#define CC_BUFFER_SIZE (1 + 1 + CC_MAX_DATA)// msg id + # of 32-bit data + max # of 32-bit data
71
72// format structure
73// 32bits: MSG_ID
74// 32bits: # of 32-bit data, # should be less than 10
75// 32-bit params
76#define CC_DUMMY_PARAM (0)
77
78
79//L2P ILM Structure
80typedef struct{
81 LOCAL_PARA_HDR
82 kal_uint8 l1_info[2];
83}ilm_L2P_SP3G_UPDATE_L1_INFO;
84
85#endif