]>
Commit | Line | Data |
---|---|---|
e79753ed PM |
1 | #ifndef QDSP5AUDPLAYMSG_H |
2 | #define QDSP5AUDPLAYMSG_H | |
3 | ||
4 | /*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====* | |
5 | ||
6 | Q D S P 5 A U D I O P L A Y T A S K M S G | |
7 | ||
8 | GENERAL DESCRIPTION | |
9 | Message sent by AUDPLAY task | |
10 | ||
11 | REFERENCES | |
12 | None | |
13 | ||
14 | ||
15 | Copyright(c) 1992 - 2009 by QUALCOMM, Incorporated. | |
16 | ||
17 | This software is licensed under the terms of the GNU General Public | |
18 | License version 2, as published by the Free Software Foundation, and | |
19 | may be copied, distributed, and modified under those terms. | |
20 | ||
21 | This program is distributed in the hope that it will be useful, | |
22 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24 | GNU General Public License for more details. | |
25 | ||
26 | *====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/ | |
27 | /*=========================================================================== | |
28 | ||
29 | EDIT HISTORY FOR FILE | |
30 | ||
31 | This section contains comments describing changes made to this file. | |
32 | Notice that changes are listed in reverse chronological order. | |
33 | ||
34 | $Header: //source/qcom/qct/multimedia2/Audio/drivers/QDSP5Driver/QDSP5Interface/main/latest/qdsp5audplaymsg.h#3 $ | |
35 | ||
36 | ===========================================================================*/ | |
37 | #define AUDPLAY_MSG_DEC_NEEDS_DATA 0x0001 | |
38 | #define AUDPLAY_MSG_DEC_NEEDS_DATA_MSG_LEN \ | |
39 | sizeof(audplay_msg_dec_needs_data) | |
40 | ||
41 | typedef struct{ | |
42 | /* reserved*/ | |
43 | unsigned int dec_id; | |
44 | ||
45 | /* The read pointer offset of external memory until which the | |
46 | * bitstream has been DMAed in. */ | |
47 | unsigned int adecDataReadPtrOffset; | |
48 | ||
49 | /* The buffer size of external memory. */ | |
50 | unsigned int adecDataBufSize; | |
51 | ||
52 | unsigned int bitstream_free_len; | |
53 | unsigned int bitstream_write_ptr; | |
54 | unsigned int bitstarem_buf_start; | |
55 | unsigned int bitstream_buf_len; | |
56 | } __attribute__((packed)) audplay_msg_dec_needs_data; | |
57 | ||
58 | #define AUDPLAY_MSG_BUFFER_UPDATE 0x0004 | |
59 | #define AUDPLAY_MSG_BUFFER_UPDATE_LEN \ | |
60 | sizeof(struct audplay_msg_buffer_update) | |
61 | ||
62 | struct audplay_msg_buffer_update { | |
63 | unsigned int buffer_write_count; | |
64 | unsigned int num_of_buffer; | |
65 | unsigned int buf0_address; | |
66 | unsigned int buf0_length; | |
67 | unsigned int buf1_address; | |
68 | unsigned int buf1_length; | |
69 | } __attribute__((packed)); | |
70 | #endif /* QDSP5AUDPLAYMSG_H */ |