Debian Codegraph @

maemo/types.h

raw symbols SCIP
1 /**
2 * @file types.h - datatypes defined to communicate with PCM task
3 * node using its protocol.
4 * <p>
5 * Copyright (C) 2006 Nokia Corporation
6 * <p>
7 * Contact: Eduardo Bezerra Valentin <[email protected]>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
18 *
19 * You should have received a copy of the GNU Library General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 * */
23 #ifndef _TYPES_H
24 #define _TYPES_H
25
26 typedef struct {
27 unsigned short dsp_cmd;
28 unsigned short init_status;
29 unsigned short stream_id;
30 unsigned short bridge_buffer_size;
31 unsigned short mmap_buffer_size;
32 } audio_init_status_t;
33
34 typedef struct {
35 unsigned short dsp_cmd;
36 unsigned short dsp_audio_fmt;
37 unsigned short sample_rate;
38 unsigned short number_channels;
39 unsigned short ds_stream_id;
40 unsigned short stream_priority;
41 } audio_params_data_t;
42
43 typedef struct {
44 unsigned short dsp_cmd; //DSP_CMD_SET_SPEECH_PARAMS
45 unsigned short audio_fmt; //S16_LE,ALAW,ULAW,ILBC
46 unsigned short sample_rate;
47 unsigned short ds_stream_id; //Stream ID from EAP mixer
48 unsigned short stream_priority; //N/A
49 unsigned short frame_size;
50 } speech_params_data_t;
51
52 typedef struct {
53 unsigned short dsp_cmd;
54 unsigned short stream_id;
55 unsigned short ds_stream_id;
56 unsigned short bridge_buffer_size;
57 unsigned short mmap_buffer_size;
58 unsigned short status;
59 unsigned int num_frames;
60 unsigned short sample_rate;
61 unsigned short number_channels;
62 unsigned short vol_scale;
63 unsigned short vol_power2;
64 unsigned short left_gain;
65 unsigned short right_gain;
66 unsigned short dsp_audio_fmt;
67 #ifndef NORMAL_DSP_TASK
68 unsigned short mute;
69 unsigned long int samples_played_high;
70 unsigned long int samples_played_low;
71 #endif
72 } audio_status_info_t;
73
74 typedef struct {
75 unsigned short int dsp_cmd;
76 unsigned short int status;
77 } dsp_cmd_status_t;
78
79 /* data write status structure */
80 typedef struct {
81 unsigned short int dsp_cmd;
82 unsigned short int status;
83 unsigned short int buffer_bytes_free;
84 } write_status_t;
85
86 typedef struct {
87 unsigned short dsp_cmd;
88 unsigned short data_size;
89 } data_write_t;
90
91 typedef struct {
92 unsigned short int dsp_cmd;
93 unsigned short int status;
94 unsigned short int frame_size;
95 unsigned int stream_time_ms;
96 } read_status_t;
97
98 /* get time data structure */
99 typedef struct {
100 unsigned short int dsp_cmd;
101 unsigned short int status;
102 unsigned short int stream_ID;
103 long int time_ms;
104 } time_data_t;
105
106 /* general stream command data structure */
107 typedef struct {
108 unsigned short int dsp_cmd;
109 unsigned short int stream_ID;
110 } stream_cmd_data_t;
111
112 typedef struct {
113 unsigned short dsp_cmd;
114 unsigned short scale;
115 unsigned short power2;
116 } volume_data_t;
117
118 typedef struct {
119 unsigned short dsp_cmd;
120 unsigned short left_gain;
121 unsigned short right_gain;
122 unsigned short steps;
123 } panning_data_t;
124
125 #endif /* _TYPES_H */