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_SET_EFFECTS_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 99,   struct msm_hwacc_effects_config)
96 #define AUDIO_EFFECTS_SET_BUF_LEN _IOW(AUDIO_IOCTL_MAGIC, 100,   struct msm_hwacc_buf_cfg)
97 #define AUDIO_EFFECTS_GET_BUF_AVAIL _IOW(AUDIO_IOCTL_MAGIC, 101,   struct msm_hwacc_buf_avail)
98 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 #define AUDIO_EFFECTS_WRITE _IOW(AUDIO_IOCTL_MAGIC, 102, void *)
100 #define AUDIO_EFFECTS_READ _IOWR(AUDIO_IOCTL_MAGIC, 103, void *)
101 #define AUDIO_EFFECTS_SET_PP_PARAMS _IOW(AUDIO_IOCTL_MAGIC, 104, void *)
102 #define AUDIO_MAX_COMMON_IOCTL_NUM 105
103 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 #define HANDSET_MIC 0x01
105 #define HANDSET_SPKR 0x02
106 #define HEADSET_MIC 0x03
107 #define HEADSET_SPKR_MONO 0x04
108 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 #define HEADSET_SPKR_STEREO 0x05
110 #define SPKR_PHONE_MIC 0x06
111 #define SPKR_PHONE_MONO 0x07
112 #define SPKR_PHONE_STEREO 0x08
113 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 #define BT_SCO_MIC 0x09
115 #define BT_SCO_SPKR 0x0A
116 #define BT_A2DP_SPKR 0x0B
117 #define TTY_HEADSET_MIC 0x0C
118 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 #define TTY_HEADSET_SPKR 0x0D
120 #define DEFAULT_TX 0x0E
121 #define DEFAULT_RX 0x0F
122 #define BT_A2DP_TX 0x10
123 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
124 #define HEADSET_MONO_PLUS_SPKR_MONO_RX 0x11
125 #define HEADSET_MONO_PLUS_SPKR_STEREO_RX 0x12
126 #define HEADSET_STEREO_PLUS_SPKR_MONO_RX 0x13
127 #define HEADSET_STEREO_PLUS_SPKR_STEREO_RX 0x14
128 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
129 #define I2S_RX 0x20
130 #define I2S_TX 0x21
131 #define ADRC_ENABLE 0x0001
132 #define EQUALIZER_ENABLE 0x0002
133 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
134 #define IIR_ENABLE 0x0004
135 #define QCONCERT_PLUS_ENABLE 0x0008
136 #define MBADRC_ENABLE 0x0010
137 #define SRS_ENABLE 0x0020
138 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
139 #define SRS_DISABLE 0x0040
140 #define AGC_ENABLE 0x0001
141 #define NS_ENABLE 0x0002
142 #define TX_IIR_ENABLE 0x0004
143 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
144 #define FLUENCE_ENABLE 0x0008
145 #define VOC_REC_UPLINK 0x00
146 #define VOC_REC_DOWNLINK 0x01
147 #define VOC_REC_BOTH 0x02
148 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
149 struct msm_audio_config {
150  uint32_t buffer_size;
151  uint32_t buffer_count;
152  uint32_t channel_count;
153 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
154  uint32_t sample_rate;
155  uint32_t type;
156  uint32_t meta_field;
157  uint32_t bits;
158 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
159  uint32_t unused[3];
160 };
161 struct msm_audio_stream_config {
162  uint32_t buffer_size;
163 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
164  uint32_t buffer_count;
165 };
166 struct msm_audio_buf_cfg{
167  uint32_t meta_info_enable;
168 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
169  uint32_t frames_per_buf;
170 };
171 struct msm_audio_stats {
172  uint32_t byte_count;
173 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
174  uint32_t sample_count;
175  uint32_t unused[2];
176 };
177 struct msm_audio_ion_info {
178 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
179  int fd;
180  void *vaddr;
181 };
182 struct msm_audio_pmem_info {
183 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
184  int fd;
185  void *vaddr;
186 };
187 struct msm_audio_aio_buf {
188 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
189  void *buf_addr;
190  uint32_t buf_len;
191  uint32_t data_len;
192  void *private_data;
193 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
194  unsigned short mfield_sz;
195 };
196 #define SND_IOCTL_MAGIC 's'
197 #define SND_MUTE_UNMUTED 0
198 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
199 #define SND_MUTE_MUTED 1
200 struct msm_mute_info {
201  uint32_t mute;
202  uint32_t path;
203 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
204 };
205 struct msm_vol_info {
206  uint32_t vol;
207  uint32_t path;
208 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
209 };
210 struct msm_voicerec_mode {
211  uint32_t rec_mode;
212 };
213 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
214 struct msm_snd_device_config {
215  uint32_t device;
216  uint32_t ear_mute;
217  uint32_t mic_mute;
218 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
219 };
220 #define SND_SET_DEVICE _IOW(SND_IOCTL_MAGIC, 2, struct msm_device_config *)
221 enum cad_device_path_type {
222  CAD_DEVICE_PATH_RX,
223 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
224  CAD_DEVICE_PATH_TX,
225  CAD_DEVICE_PATH_RX_TX,
226  CAD_DEVICE_PATH_LB,
227  CAD_DEVICE_PATH_MAX
228 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
229 };
230 struct cad_devices_type {
231  uint32_t rx_device;
232  uint32_t tx_device;
233 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
234  enum cad_device_path_type pathtype;
235 };
236 struct msm_cad_device_config {
237  struct cad_devices_type device;
238 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
239  uint32_t ear_mute;
240  uint32_t mic_mute;
241 };
242 #define CAD_SET_DEVICE _IOW(SND_IOCTL_MAGIC, 2, struct msm_cad_device_config *)
243 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
244 #define SND_METHOD_VOICE 0
245 #define SND_METHOD_MIDI 4
246 struct msm_snd_volume_config {
247  uint32_t device;
248 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
249  uint32_t method;
250  uint32_t volume;
251 };
252 #define SND_SET_VOLUME _IOW(SND_IOCTL_MAGIC, 3, struct msm_snd_volume_config *)
253 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
254 struct msm_cad_volume_config {
255  struct cad_devices_type device;
256  uint32_t method;
257  uint32_t volume;
258 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
259 };
260 #define CAD_SET_VOLUME _IOW(SND_IOCTL_MAGIC, 3, struct msm_cad_volume_config *)
261 #define SND_GET_NUM_ENDPOINTS _IOR(SND_IOCTL_MAGIC, 4, unsigned *)
262 struct msm_snd_endpoint {
263 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
264  int id;
265  char name[64];
266 };
267 #define SND_GET_ENDPOINT _IOWR(SND_IOCTL_MAGIC, 5, struct msm_snd_endpoint *)
268 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
269 #define SND_AVC_CTL _IOW(SND_IOCTL_MAGIC, 6, unsigned *)
270 #define SND_AGC_CTL _IOW(SND_IOCTL_MAGIC, 7, unsigned *)
271 #define CAD_GET_NUM_ENDPOINTS _IOR(SND_IOCTL_MAGIC, 4, unsigned *)
272 struct msm_cad_endpoint {
273 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
274  int id;
275  char name[64];
276 };
277 #define CAD_GET_ENDPOINT _IOWR(SND_IOCTL_MAGIC, 5, struct msm_cad_endpoint *)
278 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
279 struct msm_audio_pcm_config {
280  uint32_t pcm_feedback;
281  uint32_t buffer_count;
282  uint32_t buffer_size;
283 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
284 };
285 #define AUDIO_EVENT_SUSPEND 0
286 #define AUDIO_EVENT_RESUME 1
287 #define AUDIO_EVENT_WRITE_DONE 2
288 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
289 #define AUDIO_EVENT_READ_DONE 3
290 #define AUDIO_EVENT_STREAM_INFO 4
291 #define AUDIO_EVENT_BITSTREAM_ERROR_INFO 5
292 #define AUDIO_CODEC_TYPE_MP3 0
293 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
294 #define AUDIO_CODEC_TYPE_AAC 1
295 struct msm_audio_bitstream_info {
296  uint32_t codec_type;
297  uint32_t chan_info;
298 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
299  uint32_t sample_rate;
300  uint32_t bit_stream_info;
301  uint32_t bit_rate;
302  uint32_t unused[3];
303 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
304 };
305 struct msm_audio_bitstream_error_info {
306  uint32_t dec_id;
307  uint32_t err_msg_indicator;
308 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
309  uint32_t err_type;
310 };
311 union msm_audio_event_payload {
312  struct msm_audio_aio_buf aio_buf;
313 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
314  struct msm_audio_bitstream_info stream_info;
315  struct msm_audio_bitstream_error_info error_info;
316  int reserved;
317 };
318 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
319 struct msm_audio_event {
320  int event_type;
321  int timeout_ms;
322  union msm_audio_event_payload event_payload;
323 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
324 };
325 #define MSM_SNDDEV_CAP_RX 0x1
326 #define MSM_SNDDEV_CAP_TX 0x2
327 #define MSM_SNDDEV_CAP_VOICE 0x4
328 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
329 struct msm_snd_device_info {
330  uint32_t dev_id;
331  uint32_t dev_cap;
332  char dev_name[64];
333 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
334 };
335 struct msm_snd_device_list {
336  uint32_t num_dev;
337  struct msm_snd_device_info *list;
338 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
339 };
340 struct msm_dtmf_config {
341  uint16_t path;
342  uint16_t dtmf_hi;
343 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
344  uint16_t dtmf_low;
345  uint16_t duration;
346  uint16_t tx_gain;
347  uint16_t rx_gain;
348 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
349  uint16_t mixing;
350 };
351 #define AUDIO_ROUTE_STREAM_VOICE_RX 0
352 #define AUDIO_ROUTE_STREAM_VOICE_TX 1
353 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
354 #define AUDIO_ROUTE_STREAM_PLAYBACK 2
355 #define AUDIO_ROUTE_STREAM_REC 3
356 struct msm_audio_route_config {
357  uint32_t stream_type;
358 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
359  uint32_t stream_id;
360  uint32_t dev_id;
361 };
362 #define AUDIO_MAX_EQ_BANDS 12
363 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
364 struct msm_audio_eq_band {
365  uint16_t band_idx;
366  uint32_t filter_type;
367  uint32_t center_freq_hz;
368 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
369  uint32_t filter_gain;
370  uint32_t q_factor;
371 } __attribute__ ((packed));
372 struct msm_audio_eq_stream_config {
373 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
374  uint32_t enable;
375  uint32_t num_bands;
376  struct msm_audio_eq_band eq_bands[AUDIO_MAX_EQ_BANDS];
377 } __attribute__ ((packed));
378 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
379 struct msm_acdb_cmd_device {
380  uint32_t command_id;
381  uint32_t device_id;
382  uint32_t network_id;
383 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
384  uint32_t sample_rate_id;
385  uint32_t interface_id;
386  uint32_t algorithm_block_id;
387  uint32_t total_bytes;
388 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
389  uint32_t *phys_buf;
390 };
391 struct msm_hwacc_data_config {
392  __u32 buf_size;
393 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
394  __u32 num_buf;
395  __u32 num_channels;
396  __u8 channel_map[8];
397  __u32 sample_rate;
398 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
399  __u32 bits_per_sample;
400 };
401 struct msm_hwacc_buf_cfg {
402  __u32 input_len;
403 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
404  __u32 output_len;
405 };
406 struct msm_hwacc_buf_avail {
407  __u32 input_num_avail;
408 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
409  __u32 output_num_avail;
410 };
411 struct msm_hwacc_effects_config {
412  struct msm_hwacc_data_config input;
413 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
414  struct msm_hwacc_data_config output;
415  struct msm_hwacc_buf_cfg buf_cfg;
416  __u32 meta_mode_enabled;
417  __u32 overwrite_topology;
418 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
419  __s32 topology;
420 };
421 #endif
422 
423