1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef _UAPI_LINUX_MSM_AUDIO_H
20 #define _UAPI_LINUX_MSM_AUDIO_H
21 #include <linux/types.h>
22 #include <linux/ioctl.h>
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define AUDIO_IOCTL_MAGIC 'a'
25 #define AUDIO_START _IOW(AUDIO_IOCTL_MAGIC, 0, unsigned)
26 #define AUDIO_STOP _IOW(AUDIO_IOCTL_MAGIC, 1, unsigned)
27 #define AUDIO_FLUSH _IOW(AUDIO_IOCTL_MAGIC, 2, unsigned)
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define AUDIO_GET_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 3,   struct msm_audio_config)
30 #define AUDIO_SET_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 4,   struct msm_audio_config)
31 #define AUDIO_GET_STATS _IOR(AUDIO_IOCTL_MAGIC, 5,   struct msm_audio_stats)
32 #define AUDIO_ENABLE_AUDPP _IOW(AUDIO_IOCTL_MAGIC, 6, unsigned)
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define AUDIO_SET_ADRC _IOW(AUDIO_IOCTL_MAGIC, 7, unsigned)
35 #define AUDIO_SET_EQ _IOW(AUDIO_IOCTL_MAGIC, 8, unsigned)
36 #define AUDIO_SET_RX_IIR _IOW(AUDIO_IOCTL_MAGIC, 9, unsigned)
37 #define AUDIO_SET_VOLUME _IOW(AUDIO_IOCTL_MAGIC, 10, unsigned)
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define AUDIO_PAUSE _IOW(AUDIO_IOCTL_MAGIC, 11, unsigned)
40 #define AUDIO_PLAY_DTMF _IOW(AUDIO_IOCTL_MAGIC, 12, unsigned)
41 #define AUDIO_GET_EVENT _IOR(AUDIO_IOCTL_MAGIC, 13,   struct msm_audio_event)
42 #define AUDIO_ABORT_GET_EVENT _IOW(AUDIO_IOCTL_MAGIC, 14, unsigned)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define AUDIO_REGISTER_PMEM _IOW(AUDIO_IOCTL_MAGIC, 15, unsigned)
45 #define AUDIO_DEREGISTER_PMEM _IOW(AUDIO_IOCTL_MAGIC, 16, unsigned)
46 #define AUDIO_ASYNC_WRITE _IOW(AUDIO_IOCTL_MAGIC, 17,   struct msm_audio_aio_buf)
47 #define AUDIO_ASYNC_READ _IOW(AUDIO_IOCTL_MAGIC, 18,   struct msm_audio_aio_buf)
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 #define AUDIO_SET_INCALL _IOW(AUDIO_IOCTL_MAGIC, 19, struct msm_voicerec_mode)
50 #define AUDIO_GET_NUM_SND_DEVICE _IOR(AUDIO_IOCTL_MAGIC, 20, unsigned)
51 #define AUDIO_GET_SND_DEVICES _IOWR(AUDIO_IOCTL_MAGIC, 21,   struct msm_snd_device_list)
52 #define AUDIO_ENABLE_SND_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 22, unsigned)
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 #define AUDIO_DISABLE_SND_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 23, unsigned)
55 #define AUDIO_ROUTE_STREAM _IOW(AUDIO_IOCTL_MAGIC, 24,   struct msm_audio_route_config)
56 #define AUDIO_GET_PCM_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 30, unsigned)
57 #define AUDIO_SET_PCM_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 31, unsigned)
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 #define AUDIO_SWITCH_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 32, unsigned)
60 #define AUDIO_SET_MUTE _IOW(AUDIO_IOCTL_MAGIC, 33, unsigned)
61 #define AUDIO_UPDATE_ACDB _IOW(AUDIO_IOCTL_MAGIC, 34, unsigned)
62 #define AUDIO_START_VOICE _IOW(AUDIO_IOCTL_MAGIC, 35, unsigned)
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #define AUDIO_STOP_VOICE _IOW(AUDIO_IOCTL_MAGIC, 36, unsigned)
65 #define AUDIO_REINIT_ACDB _IOW(AUDIO_IOCTL_MAGIC, 39, unsigned)
66 #define AUDIO_OUTPORT_FLUSH _IOW(AUDIO_IOCTL_MAGIC, 40, unsigned short)
67 #define AUDIO_SET_ERR_THRESHOLD_VALUE _IOW(AUDIO_IOCTL_MAGIC, 41,   unsigned short)
68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 #define AUDIO_GET_BITSTREAM_ERROR_INFO _IOR(AUDIO_IOCTL_MAGIC, 42,   struct msm_audio_bitstream_error_info)
70 #define AUDIO_SET_SRS_TRUMEDIA_PARAM _IOW(AUDIO_IOCTL_MAGIC, 43, unsigned)
71 #define AUDIO_SET_STREAM_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 80,   struct msm_audio_stream_config)
72 #define AUDIO_GET_STREAM_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 81,   struct msm_audio_stream_config)
73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74 #define AUDIO_GET_SESSION_ID _IOR(AUDIO_IOCTL_MAGIC, 82, unsigned short)
75 #define AUDIO_GET_STREAM_INFO _IOR(AUDIO_IOCTL_MAGIC, 83,   struct msm_audio_bitstream_info)
76 #define AUDIO_SET_PAN _IOW(AUDIO_IOCTL_MAGIC, 84, unsigned)
77 #define AUDIO_SET_QCONCERT_PLUS _IOW(AUDIO_IOCTL_MAGIC, 85, unsigned)
78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79 #define AUDIO_SET_MBADRC _IOW(AUDIO_IOCTL_MAGIC, 86, unsigned)
80 #define AUDIO_SET_VOLUME_PATH _IOW(AUDIO_IOCTL_MAGIC, 87,   struct msm_vol_info)
81 #define AUDIO_SET_MAX_VOL_ALL _IOW(AUDIO_IOCTL_MAGIC, 88, unsigned)
82 #define AUDIO_ENABLE_AUDPRE _IOW(AUDIO_IOCTL_MAGIC, 89, unsigned)
83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84 #define AUDIO_SET_AGC _IOW(AUDIO_IOCTL_MAGIC, 90, unsigned)
85 #define AUDIO_SET_NS _IOW(AUDIO_IOCTL_MAGIC, 91, unsigned)
86 #define AUDIO_SET_TX_IIR _IOW(AUDIO_IOCTL_MAGIC, 92, unsigned)
87 #define AUDIO_GET_BUF_CFG _IOW(AUDIO_IOCTL_MAGIC, 93,   struct msm_audio_buf_cfg)
88 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 #define AUDIO_SET_BUF_CFG _IOW(AUDIO_IOCTL_MAGIC, 94,   struct msm_audio_buf_cfg)
90 #define AUDIO_SET_ACDB_BLK _IOW(AUDIO_IOCTL_MAGIC, 95,   struct msm_acdb_cmd_device)
91 #define AUDIO_GET_ACDB_BLK _IOW(AUDIO_IOCTL_MAGIC, 96,   struct msm_acdb_cmd_device)
92 #define AUDIO_REGISTER_ION _IOW(AUDIO_IOCTL_MAGIC, 97,   struct msm_audio_ion_info)
93 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 #define AUDIO_DEREGISTER_ION _IOW(AUDIO_IOCTL_MAGIC, 98,   struct msm_audio_ion_info)
95 #define AUDIO_MAX_COMMON_IOCTL_NUM 100
96 #define HANDSET_MIC 0x01
97 #define HANDSET_SPKR 0x02
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define HEADSET_MIC 0x03
100 #define HEADSET_SPKR_MONO 0x04
101 #define HEADSET_SPKR_STEREO 0x05
102 #define SPKR_PHONE_MIC 0x06
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define SPKR_PHONE_MONO 0x07
105 #define SPKR_PHONE_STEREO 0x08
106 #define BT_SCO_MIC 0x09
107 #define BT_SCO_SPKR 0x0A
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define BT_A2DP_SPKR 0x0B
110 #define TTY_HEADSET_MIC 0x0C
111 #define TTY_HEADSET_SPKR 0x0D
112 #define DEFAULT_TX 0x0E
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define DEFAULT_RX 0x0F
115 #define BT_A2DP_TX 0x10
116 #define HEADSET_MONO_PLUS_SPKR_MONO_RX 0x11
117 #define HEADSET_MONO_PLUS_SPKR_STEREO_RX 0x12
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define HEADSET_STEREO_PLUS_SPKR_MONO_RX 0x13
120 #define HEADSET_STEREO_PLUS_SPKR_STEREO_RX 0x14
121 #define I2S_RX 0x20
122 #define I2S_TX 0x21
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #define ADRC_ENABLE 0x0001
125 #define EQ_ENABLE 0x0002
126 #define IIR_ENABLE 0x0004
127 #define QCONCERT_PLUS_ENABLE 0x0008
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 #define MBADRC_ENABLE 0x0010
130 #define SRS_ENABLE 0x0020
131 #define SRS_DISABLE 0x0040
132 #define AGC_ENABLE 0x0001
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 #define NS_ENABLE 0x0002
135 #define TX_IIR_ENABLE 0x0004
136 #define FLUENCE_ENABLE 0x0008
137 #define VOC_REC_UPLINK 0x00
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 #define VOC_REC_DOWNLINK 0x01
140 #define VOC_REC_BOTH 0x02
141 struct msm_audio_config {
142  uint32_t buffer_size;
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144  uint32_t buffer_count;
145  uint32_t channel_count;
146  uint32_t sample_rate;
147  uint32_t type;
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149  uint32_t meta_field;
150  uint32_t bits;
151  uint32_t unused[3];
152 };
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154 struct msm_audio_stream_config {
155  uint32_t buffer_size;
156  uint32_t buffer_count;
157 };
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159 struct msm_audio_buf_cfg{
160  uint32_t meta_info_enable;
161  uint32_t frames_per_buf;
162 };
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164 struct msm_audio_stats {
165  uint32_t byte_count;
166  uint32_t sample_count;
167  uint32_t unused[2];
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169 };
170 struct msm_audio_ion_info {
171  int fd;
172  void *vaddr;
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174 };
175 struct msm_audio_pmem_info {
176  int fd;
177  void *vaddr;
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179 };
180 struct msm_audio_aio_buf {
181  void *buf_addr;
182  uint32_t buf_len;
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184  uint32_t data_len;
185  void *private_data;
186  unsigned short mfield_sz;
187 };
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189 #define SND_IOCTL_MAGIC 's'
190 #define SND_MUTE_UNMUTED 0
191 #define SND_MUTE_MUTED 1
192 struct msm_mute_info {
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194  uint32_t mute;
195  uint32_t path;
196 };
197 struct msm_vol_info {
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199  uint32_t vol;
200  uint32_t path;
201 };
202 struct msm_voicerec_mode {
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204  uint32_t rec_mode;
205 };
206 struct msm_snd_device_config {
207  uint32_t device;
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209  uint32_t ear_mute;
210  uint32_t mic_mute;
211 };
212 #define SND_SET_DEVICE _IOW(SND_IOCTL_MAGIC, 2, struct msm_device_config *)
213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 enum cad_device_path_type {
215  CAD_DEVICE_PATH_RX,
216  CAD_DEVICE_PATH_TX,
217  CAD_DEVICE_PATH_RX_TX,
218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219  CAD_DEVICE_PATH_LB,
220  CAD_DEVICE_PATH_MAX
221 };
222 struct cad_devices_type {
223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224  uint32_t rx_device;
225  uint32_t tx_device;
226  enum cad_device_path_type pathtype;
227 };
228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 struct msm_cad_device_config {
230  struct cad_devices_type device;
231  uint32_t ear_mute;
232  uint32_t mic_mute;
233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234 };
235 #define CAD_SET_DEVICE _IOW(SND_IOCTL_MAGIC, 2, struct msm_cad_device_config *)
236 #define SND_METHOD_VOICE 0
237 #define SND_METHOD_MIDI 4
238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239 struct msm_snd_volume_config {
240  uint32_t device;
241  uint32_t method;
242  uint32_t volume;
243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244 };
245 #define SND_SET_VOLUME _IOW(SND_IOCTL_MAGIC, 3, struct msm_snd_volume_config *)
246 struct msm_cad_volume_config {
247  struct cad_devices_type device;
248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249  uint32_t method;
250  uint32_t volume;
251 };
252 #define CAD_SET_VOLUME _IOW(SND_IOCTL_MAGIC, 3, struct msm_cad_volume_config *)
253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 #define SND_GET_NUM_ENDPOINTS _IOR(SND_IOCTL_MAGIC, 4, unsigned *)
255 struct msm_snd_endpoint {
256  int id;
257  char name[64];
258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259 };
260 #define SND_GET_ENDPOINT _IOWR(SND_IOCTL_MAGIC, 5, struct msm_snd_endpoint *)
261 #define SND_AVC_CTL _IOW(SND_IOCTL_MAGIC, 6, unsigned *)
262 #define SND_AGC_CTL _IOW(SND_IOCTL_MAGIC, 7, unsigned *)
263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264 #define CAD_GET_NUM_ENDPOINTS _IOR(SND_IOCTL_MAGIC, 4, unsigned *)
265 struct msm_cad_endpoint {
266  int id;
267  char name[64];
268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269 };
270 #define CAD_GET_ENDPOINT _IOWR(SND_IOCTL_MAGIC, 5, struct msm_cad_endpoint *)
271 struct msm_audio_pcm_config {
272  uint32_t pcm_feedback;
273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274  uint32_t buffer_count;
275  uint32_t buffer_size;
276 };
277 #define AUDIO_EVENT_SUSPEND 0
278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279 #define AUDIO_EVENT_RESUME 1
280 #define AUDIO_EVENT_WRITE_DONE 2
281 #define AUDIO_EVENT_READ_DONE 3
282 #define AUDIO_EVENT_STREAM_INFO 4
283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 #define AUDIO_EVENT_BITSTREAM_ERROR_INFO 5
285 #define AUDIO_CODEC_TYPE_MP3 0
286 #define AUDIO_CODEC_TYPE_AAC 1
287 struct msm_audio_bitstream_info {
288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289  uint32_t codec_type;
290  uint32_t chan_info;
291  uint32_t sample_rate;
292  uint32_t bit_stream_info;
293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294  uint32_t bit_rate;
295  uint32_t unused[3];
296 };
297 struct msm_audio_bitstream_error_info {
298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299  uint32_t dec_id;
300  uint32_t err_msg_indicator;
301  uint32_t err_type;
302 };
303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304 union msm_audio_event_payload {
305  struct msm_audio_aio_buf aio_buf;
306  struct msm_audio_bitstream_info stream_info;
307  struct msm_audio_bitstream_error_info error_info;
308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309  int reserved;
310 };
311 struct msm_audio_event {
312  int event_type;
313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314  int timeout_ms;
315  union msm_audio_event_payload event_payload;
316 };
317 #define MSM_SNDDEV_CAP_RX 0x1
318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319 #define MSM_SNDDEV_CAP_TX 0x2
320 #define MSM_SNDDEV_CAP_VOICE 0x4
321 struct msm_snd_device_info {
322  uint32_t dev_id;
323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324  uint32_t dev_cap;
325  char dev_name[64];
326 };
327 struct msm_snd_device_list {
328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329  uint32_t num_dev;
330  struct msm_snd_device_info *list;
331 };
332 struct msm_dtmf_config {
333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334  uint16_t path;
335  uint16_t dtmf_hi;
336  uint16_t dtmf_low;
337  uint16_t duration;
338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339  uint16_t tx_gain;
340  uint16_t rx_gain;
341  uint16_t mixing;
342 };
343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344 #define AUDIO_ROUTE_STREAM_VOICE_RX 0
345 #define AUDIO_ROUTE_STREAM_VOICE_TX 1
346 #define AUDIO_ROUTE_STREAM_PLAYBACK 2
347 #define AUDIO_ROUTE_STREAM_REC 3
348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349 struct msm_audio_route_config {
350  uint32_t stream_type;
351  uint32_t stream_id;
352  uint32_t dev_id;
353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354 };
355 #define AUDIO_MAX_EQ_BANDS 12
356 struct msm_audio_eq_band {
357  uint16_t band_idx;
358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359  uint32_t filter_type;
360  uint32_t center_freq_hz;
361  uint32_t filter_gain;
362  uint32_t q_factor;
363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364 } __attribute__ ((packed));
365 struct msm_audio_eq_stream_config {
366  uint32_t enable;
367  uint32_t num_bands;
368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369  struct msm_audio_eq_band eq_bands[AUDIO_MAX_EQ_BANDS];
370 } __attribute__ ((packed));
371 struct msm_acdb_cmd_device {
372  uint32_t command_id;
373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374  uint32_t device_id;
375  uint32_t network_id;
376  uint32_t sample_rate_id;
377  uint32_t interface_id;
378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379  uint32_t algorithm_block_id;
380  uint32_t total_bytes;
381  uint32_t *phys_buf;
382 };
383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384 #endif
385