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 8GENERAL DESCRIPTION 9 Message sent by AUDPLAY task 10 11REFERENCES 12 None 13 14 15Copyright(c) 1992 - 2009 by QUALCOMM, Incorporated. 16 17This software is licensed under the terms of the GNU General Public 18License version 2, as published by the Free Software Foundation, and 19may be copied, distributed, and modified under those terms. 20 21This program is distributed in the hope that it will be useful, 22but WITHOUT ANY WARRANTY; without even the implied warranty of 23MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24GNU General Public License for more details. 25 26*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/ 27/*=========================================================================== 28 29 EDIT HISTORY FOR FILE 30 31This section contains comments describing changes made to this file. 32Notice 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 41typedef 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 62struct 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 */ 71