1 #ifndef QDSP5AUDRECMSGI_H
2 #define QDSP5AUDRECMSGI_H
4 /*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
6 A U D I O R E C O R D M E S S A G E S
9 This file contains defintions of format blocks of messages
10 that are sent by AUDREC Task
15 EXTERNALIZED FUNCTIONS
18 Copyright(c) 1992 - 2008 by QUALCOMM, Incorporated.
20 This software is licensed under the terms of the GNU General Public
21 License version 2, as published by the Free Software Foundation, and
22 may be copied, distributed, and modified under those terms.
24 This program is distributed in the hope that it will be useful,
25 but WITHOUT ANY WARRANTY; without even the implied warranty of
26 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 GNU General Public License for more details.
29 *====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/
31 /*===========================================================================
35 This section contains comments describing changes made to this file.
36 Notice that changes are listed in reverse chronological order.
38 $Header: //source/qcom/qct/multimedia2/Audio/drivers/QDSP5Driver/QDSP5Interface/main/latest/qdsp5audrecmsg.h#3 $
40 ============================================================================*/
44 * AUDRECTASK uses audRecUpRlist to communicate with ARM
47 * No of buffers in a queue : 2
51 * Message to notify that config command is done
54 #define AUDREC_MSG_CMD_CFG_DONE_MSG 0x0002
55 #define AUDREC_MSG_CMD_CFG_DONE_MSG_LEN \
56 sizeof(audrec_msg_cmd_cfg_done_msg)
59 #define AUDREC_MSG_CFG_DONE_TYPE_0_ENA 0x4000
60 #define AUDREC_MSG_CFG_DONE_TYPE_0_DIS 0x0000
62 #define AUDREC_MSG_CFG_DONE_TYPE_0_NO_UPDATE 0x0000
63 #define AUDREC_MSG_CFG_DONE_TYPE_0_UPDATE 0x8000
65 #define AUDREC_MSG_CFG_DONE_TYPE_1_ENA 0x4000
66 #define AUDREC_MSG_CFG_DONE_TYPE_1_DIS 0x0000
68 #define AUDREC_MSG_CFG_DONE_TYPE_1_NO_UPDATE 0x0000
69 #define AUDREC_MSG_CFG_DONE_TYPE_1_UPDATE 0x8000
72 unsigned short type_0
;
73 unsigned short type_1
;
74 } __attribute__((packed
))audrec_msg_cmd_cfg_done_msg
;
78 * Message to notify arec0/1 cfg done and recording params revd by task
81 #define AUDREC_MSG_CMD_AREC_PARAM_CFG_DONE_MSG 0x0003
82 #define AUDREC_MSG_CMD_AREC_PARAM_CFG_DONE_MSG_LEN \
83 sizeof(audrec_msg_cmd_arec_param_cfg_done_msg)
85 #define AUDREC_MSG_AREC_PARAM_TYPE_0 0x0000
86 #define AUDREC_MSG_AREC_PARAM_TYPE_1 0x0001
90 } __attribute__((packed
))audrec_msg_cmd_arec_param_cfg_done_msg
;
94 * Message to notify no more buffers are available in ext mem to DME
97 #define AUDREC_MSG_FATAL_ERR_MSG 0x0004
98 #define AUDREC_MSG_FATAL_ERR_MSG_LEN \
99 sizeof(audrec_msg_fatal_err_msg)
101 #define AUDREC_MSG_FATAL_ERR_TYPE_0 0x0000
102 #define AUDREC_MSG_FATAL_ERR_TYPE_1 0x0001
106 } __attribute__((packed
))audrec_msg_fatal_err_msg
;
109 * Message to notify DME deliverd the encoded pkt to ext pkt buffer
112 #define AUDREC_MSG_PACKET_READY_MSG 0x0005
113 #define AUDREC_MSG_PACKET_READY_MSG_LEN \
114 sizeof(audrec_msg_packet_ready_msg)
116 #define AUDREC_MSG_PACKET_READY_TYPE_0 0x0000
117 #define AUDREC_MSG_PACKET_READY_TYPE_1 0x0001
121 unsigned short pkt_counter_msw
;
122 unsigned short pkt_counter_lsw
;
123 unsigned short pkt_read_cnt_msw
;
124 unsigned short pkt_read_cnt_lsw
;
125 } __attribute__((packed
))audrec_msg_packet_ready_msg
;