Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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 | |
Duy Truong | 790f06d | 2013-02-13 16:38:12 -0800 | [diff] [blame] | 15 | Copyright (c) 1992-2009, The Linux Foundation. All rights reserved. |
Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 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 till which bitstream |
| 46 | has been dmed 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_UP_STREAM_INFO 0x0003 |
| 59 | #define AUDPLAY_UP_STREAM_INFO_LEN \ |
| 60 | sizeof(struct audplay_msg_stream_info) |
| 61 | |
| 62 | struct audplay_msg_stream_info { |
| 63 | unsigned int decoder_id; |
| 64 | unsigned int channel_info; |
| 65 | unsigned int sample_freq; |
| 66 | unsigned int bitstream_info; |
| 67 | unsigned int bit_rate; |
| 68 | } __attribute__((packed)); |
| 69 | |
| 70 | #define AUDPLAY_MSG_BUFFER_UPDATE 0x0004 |
| 71 | #define AUDPLAY_MSG_BUFFER_UPDATE_LEN \ |
| 72 | sizeof(struct audplay_msg_buffer_update) |
| 73 | |
| 74 | struct audplay_msg_buffer_update { |
| 75 | unsigned int buffer_write_count; |
| 76 | unsigned int num_of_buffer; |
| 77 | unsigned int buf0_address; |
| 78 | unsigned int buf0_length; |
| 79 | unsigned int buf1_address; |
| 80 | unsigned int buf1_length; |
| 81 | } __attribute__((packed)); |
| 82 | |
| 83 | #define ADSP_MESSAGE_ID 0xFFFF |
| 84 | #endif /* QDSP5AUDPLAYMSG_H */ |