Staging: dream: add missing include files
[cascardo/linux.git] / drivers / staging / dream / include / mach / qdsp5 / qdsp5audpreprocmsg.h
1 #ifndef QDSP5AUDPREPROCMSG_H
2 #define QDSP5AUDPREPROCMSG_H
3
4 /*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
5
6     A U D I O   P R E   P R O C E S S I N G  M E S S A G E S
7
8 GENERAL DESCRIPTION
9   This file contains defintions of format blocks of messages
10   that are rcvd by AUDPREPROC Task
11
12 REFERENCES
13   None
14
15 EXTERNALIZED FUNCTIONS
16   None
17
18 Copyright(c) 1992 - 2008 by QUALCOMM, Incorporated.
19
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.
23
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.
28
29 *====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/
30 /*===========================================================================
31
32                       EDIT HISTORY FOR FILE
33
34 This section contains comments describing changes made to this file.
35 Notice that changes are listed in reverse chronological order.
36
37  $Header: //source/qcom/qct/multimedia2/Audio/drivers/QDSP5Driver/QDSP5Interface/main/latest/qdsp5audpreprocmsg.h#3 $
38
39 ===========================================================================*/
40
41 /*
42  * ADSPREPROCTASK Messages
43  * AUDPREPROCTASK uses audPreProcUpRlist to communicate with ARM
44  * Location     : MEMA
45  * Message Length  : 2
46  */
47
48 /*
49  * Message to indicate particular feature has been enabled or disabled
50  */
51
52
53 #define AUDPREPROC_MSG_CMD_CFG_DONE_MSG 0x0000
54 #define AUDPREPROC_MSG_CMD_CFG_DONE_MSG_LEN     \
55         sizeof(audpreproc_msg_cmd_cfg_done_msg)
56
57 #define AUDPREPROC_MSG_TYPE_AGC                 0x0000
58 #define AUDPREPROC_MSG_TYPE_NOISE_REDUCTION     0x0001
59 #define AUDPREPROC_MSG_TYPE_IIR_FILTER          0x0002
60
61
62 #define AUDPREPROC_MSG_STATUS_FLAG_ENA          -1
63 #define AUDPREPROC_MSG_STATUS_FLAG_DIS          0x0000
64
65 typedef struct {
66         unsigned short  type;
67         signed short    status_flag;
68 } __attribute__((packed)) audpreproc_msg_cmd_cfg_done_msg;
69
70
71 /*
72  * Message to indicate particular feature has selected for wrong samp freq
73  */
74
75 #define AUDPREPROC_MSG_ERROR_MSG_ID             0x0001
76 #define AUDPREPROC_MSG_ERROR_MSG_ID_LEN \
77         sizeof(audpreproc_msg_error_msg_id)
78
79 #define AUDPREPROC_MSG_ERR_INDEX_NS             0x0000
80
81 typedef struct {
82          unsigned short err_index;
83 } __attribute__((packed)) audpreproc_msg_error_msg_id;
84
85 #endif