14bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/**************************************************************************** 24bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj **************************************************************************** 34bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** 44bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** This header was automatically generated from a Linux kernel header 54bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** of the same name, to make information necessary for userspace to 64bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** call into the kernel available to libc. It contains only constants, 74bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** structures, and macros generated from the original header, and thus, 84bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** contains no copyrightable information. 94bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** 104bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** To edit the content of this header, modify the corresponding 114bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** source file (e.g. under external/kernel-headers/original/) then 124bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** run bionic/libc/kernel/tools/update_all.py 134bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** 144bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** Any manual change here will be lost the next time this script will 154bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** be run. You've been warned! 164bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj *** 174bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj **************************************************************************** 184bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj ****************************************************************************/ 194bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#ifndef _UAPI_LINUX_MSM_AUDIO_H 204bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define _UAPI_LINUX_MSM_AUDIO_H 214bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#include <linux/types.h> 224bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#include <linux/ioctl.h> 234bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 244bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_IOCTL_MAGIC 'a' 254bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_START _IOW(AUDIO_IOCTL_MAGIC, 0, unsigned) 264bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_STOP _IOW(AUDIO_IOCTL_MAGIC, 1, unsigned) 274bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_FLUSH _IOW(AUDIO_IOCTL_MAGIC, 2, unsigned) 284bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 294bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 3, unsigned) 304bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 4, unsigned) 314bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_STATS _IOR(AUDIO_IOCTL_MAGIC, 5, unsigned) 324bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ENABLE_AUDPP _IOW(AUDIO_IOCTL_MAGIC, 6, unsigned) 334bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 344bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_ADRC _IOW(AUDIO_IOCTL_MAGIC, 7, unsigned) 354bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_EQ _IOW(AUDIO_IOCTL_MAGIC, 8, unsigned) 364bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_RX_IIR _IOW(AUDIO_IOCTL_MAGIC, 9, unsigned) 374bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_VOLUME _IOW(AUDIO_IOCTL_MAGIC, 10, unsigned) 384bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 394bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_PAUSE _IOW(AUDIO_IOCTL_MAGIC, 11, unsigned) 404bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_PLAY_DTMF _IOW(AUDIO_IOCTL_MAGIC, 12, unsigned) 414bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_EVENT _IOR(AUDIO_IOCTL_MAGIC, 13, unsigned) 424bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ABORT_GET_EVENT _IOW(AUDIO_IOCTL_MAGIC, 14, unsigned) 434bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 444bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_REGISTER_PMEM _IOW(AUDIO_IOCTL_MAGIC, 15, unsigned) 454bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_DEREGISTER_PMEM _IOW(AUDIO_IOCTL_MAGIC, 16, unsigned) 464bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ASYNC_WRITE _IOW(AUDIO_IOCTL_MAGIC, 17, unsigned) 474bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ASYNC_READ _IOW(AUDIO_IOCTL_MAGIC, 18, unsigned) 484bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 494bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_INCALL _IOW(AUDIO_IOCTL_MAGIC, 19, struct msm_voicerec_mode) 504bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_NUM_SND_DEVICE _IOR(AUDIO_IOCTL_MAGIC, 20, unsigned) 514bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_SND_DEVICES _IOWR(AUDIO_IOCTL_MAGIC, 21, struct msm_snd_device_list) 524bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ENABLE_SND_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 22, unsigned) 534bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 544bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_DISABLE_SND_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 23, unsigned) 554bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ROUTE_STREAM _IOW(AUDIO_IOCTL_MAGIC, 24, struct msm_audio_route_config) 564bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_PCM_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 30, unsigned) 574bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_PCM_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 31, unsigned) 584bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 594bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SWITCH_DEVICE _IOW(AUDIO_IOCTL_MAGIC, 32, unsigned) 604bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_MUTE _IOW(AUDIO_IOCTL_MAGIC, 33, unsigned) 614bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_UPDATE_ACDB _IOW(AUDIO_IOCTL_MAGIC, 34, unsigned) 624bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_START_VOICE _IOW(AUDIO_IOCTL_MAGIC, 35, unsigned) 634bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 644bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_STOP_VOICE _IOW(AUDIO_IOCTL_MAGIC, 36, unsigned) 654bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_REINIT_ACDB _IOW(AUDIO_IOCTL_MAGIC, 39, unsigned) 664bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_OUTPORT_FLUSH _IOW(AUDIO_IOCTL_MAGIC, 40, unsigned short) 674bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_ERR_THRESHOLD_VALUE _IOW(AUDIO_IOCTL_MAGIC, 41, unsigned short) 684bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 694bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_BITSTREAM_ERROR_INFO _IOR(AUDIO_IOCTL_MAGIC, 42, struct msm_audio_bitstream_error_info) 704bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_SRS_TRUMEDIA_PARAM _IOW(AUDIO_IOCTL_MAGIC, 43, unsigned) 714bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_STREAM_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 80, struct msm_audio_stream_config) 724bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_STREAM_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 81, struct msm_audio_stream_config) 734bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 744bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_SESSION_ID _IOR(AUDIO_IOCTL_MAGIC, 82, unsigned short) 754bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_STREAM_INFO _IOR(AUDIO_IOCTL_MAGIC, 83, struct msm_audio_bitstream_info) 764bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_PAN _IOW(AUDIO_IOCTL_MAGIC, 84, unsigned) 774bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_QCONCERT_PLUS _IOW(AUDIO_IOCTL_MAGIC, 85, unsigned) 784bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 794bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_MBADRC _IOW(AUDIO_IOCTL_MAGIC, 86, unsigned) 804bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_VOLUME_PATH _IOW(AUDIO_IOCTL_MAGIC, 87, struct msm_vol_info) 814bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_MAX_VOL_ALL _IOW(AUDIO_IOCTL_MAGIC, 88, unsigned) 824bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ENABLE_AUDPRE _IOW(AUDIO_IOCTL_MAGIC, 89, unsigned) 834bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 844bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_AGC _IOW(AUDIO_IOCTL_MAGIC, 90, unsigned) 854bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_NS _IOW(AUDIO_IOCTL_MAGIC, 91, unsigned) 864bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_TX_IIR _IOW(AUDIO_IOCTL_MAGIC, 92, unsigned) 874bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_BUF_CFG _IOW(AUDIO_IOCTL_MAGIC, 93, struct msm_audio_buf_cfg) 884bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 894bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_BUF_CFG _IOW(AUDIO_IOCTL_MAGIC, 94, struct msm_audio_buf_cfg) 904bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_SET_ACDB_BLK _IOW(AUDIO_IOCTL_MAGIC, 95, struct msm_acdb_cmd_device) 914bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_GET_ACDB_BLK _IOW(AUDIO_IOCTL_MAGIC, 96, struct msm_acdb_cmd_device) 924bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_REGISTER_ION _IOW(AUDIO_IOCTL_MAGIC, 97, unsigned) 934bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 944bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_DEREGISTER_ION _IOW(AUDIO_IOCTL_MAGIC, 98, unsigned) 954bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_MAX_COMMON_IOCTL_NUM 100 964bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HANDSET_MIC 0x01 974bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HANDSET_SPKR 0x02 984bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 994bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HEADSET_MIC 0x03 1004bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HEADSET_SPKR_MONO 0x04 1014bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HEADSET_SPKR_STEREO 0x05 1024bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SPKR_PHONE_MIC 0x06 1034bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1044bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SPKR_PHONE_MONO 0x07 1054bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SPKR_PHONE_STEREO 0x08 1064bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define BT_SCO_MIC 0x09 1074bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define BT_SCO_SPKR 0x0A 1084bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1094bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define BT_A2DP_SPKR 0x0B 1104bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define TTY_HEADSET_MIC 0x0C 1114bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define TTY_HEADSET_SPKR 0x0D 1124bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define DEFAULT_TX 0x0E 1134bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1144bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define DEFAULT_RX 0x0F 1154bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define BT_A2DP_TX 0x10 1164bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HEADSET_MONO_PLUS_SPKR_MONO_RX 0x11 1174bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HEADSET_MONO_PLUS_SPKR_STEREO_RX 0x12 1184bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1194bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HEADSET_STEREO_PLUS_SPKR_MONO_RX 0x13 1204bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define HEADSET_STEREO_PLUS_SPKR_STEREO_RX 0x14 1214bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define I2S_RX 0x20 1224bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define I2S_TX 0x21 1234bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1244bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define ADRC_ENABLE 0x0001 1254bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define EQ_ENABLE 0x0002 1264bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define IIR_ENABLE 0x0004 1274bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define QCONCERT_PLUS_ENABLE 0x0008 1284bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1294bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define MBADRC_ENABLE 0x0010 1304bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SRS_ENABLE 0x0020 1314bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SRS_DISABLE 0x0040 1324bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AGC_ENABLE 0x0001 1334bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1344bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define NS_ENABLE 0x0002 1354bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define TX_IIR_ENABLE 0x0004 1364bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define FLUENCE_ENABLE 0x0008 1374bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define VOC_REC_UPLINK 0x00 1384bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1394bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define VOC_REC_DOWNLINK 0x01 1404bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define VOC_REC_BOTH 0x02 1414bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_config { 1424bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t buffer_size; 1434bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1444bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t buffer_count; 1454bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t channel_count; 1464bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t sample_rate; 1474bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t type; 1484bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1494bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t meta_field; 1504bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t bits; 1514bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t unused[3]; 1524bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1534bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1544bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_stream_config { 1554bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t buffer_size; 1564bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t buffer_count; 1574bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1584bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1594bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_buf_cfg{ 1604bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t meta_info_enable; 1614bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t frames_per_buf; 1624bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1634bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1644bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_stats { 1654bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t byte_count; 1664bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t sample_count; 1674bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t unused[2]; 1684bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1694bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1704bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_ion_info { 1714bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj int fd; 1724bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj void *vaddr; 1734bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1744bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1754bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_pmem_info { 1764bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj int fd; 1774bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj void *vaddr; 1784bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1794bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1804bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_aio_buf { 1814bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj void *buf_addr; 1824bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t buf_len; 1834bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1844bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t data_len; 1854bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj void *private_data; 1864bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj unsigned short mfield_sz; 1874bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1884bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1894bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_IOCTL_MAGIC 's' 1904bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_MUTE_UNMUTED 0 1914bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_MUTE_MUTED 1 1924bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_mute_info { 1934bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1944bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t mute; 1954bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t path; 1964bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 1974bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_vol_info { 1984bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 1994bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t vol; 2004bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t path; 2014bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2024bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_voicerec_mode { 2034bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2044bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t rec_mode; 2054bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2064bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_snd_device_config { 2074bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t device; 2084bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2094bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t ear_mute; 2104bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t mic_mute; 2114bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2124bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_SET_DEVICE _IOW(SND_IOCTL_MAGIC, 2, struct msm_device_config *) 2134bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2144bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajenum cad_device_path_type { 2154bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj CAD_DEVICE_PATH_RX, 2164bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj CAD_DEVICE_PATH_TX, 2174bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj CAD_DEVICE_PATH_RX_TX, 2184bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2194bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj CAD_DEVICE_PATH_LB, 2204bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj CAD_DEVICE_PATH_MAX 2214bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2224bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct cad_devices_type { 2234bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2244bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t rx_device; 2254bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t tx_device; 2264bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj enum cad_device_path_type pathtype; 2274bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2284bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2294bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_cad_device_config { 2304bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj struct cad_devices_type device; 2314bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t ear_mute; 2324bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t mic_mute; 2334bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2344bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2354bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define CAD_SET_DEVICE _IOW(SND_IOCTL_MAGIC, 2, struct msm_cad_device_config *) 2364bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_METHOD_VOICE 0 2374bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_METHOD_MIDI 4 2384bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2394bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_snd_volume_config { 2404bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t device; 2414bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t method; 2424bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t volume; 2434bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2444bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2454bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_SET_VOLUME _IOW(SND_IOCTL_MAGIC, 3, struct msm_snd_volume_config *) 2464bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_cad_volume_config { 2474bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj struct cad_devices_type device; 2484bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2494bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t method; 2504bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t volume; 2514bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2524bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define CAD_SET_VOLUME _IOW(SND_IOCTL_MAGIC, 3, struct msm_cad_volume_config *) 2534bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2544bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_GET_NUM_ENDPOINTS _IOR(SND_IOCTL_MAGIC, 4, unsigned *) 2554bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_snd_endpoint { 2564bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj int id; 2574bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj char name[64]; 2584bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2594bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2604bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_GET_ENDPOINT _IOWR(SND_IOCTL_MAGIC, 5, struct msm_snd_endpoint *) 2614bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_AVC_CTL _IOW(SND_IOCTL_MAGIC, 6, unsigned *) 2624bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define SND_AGC_CTL _IOW(SND_IOCTL_MAGIC, 7, unsigned *) 2634bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2644bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define CAD_GET_NUM_ENDPOINTS _IOR(SND_IOCTL_MAGIC, 4, unsigned *) 2654bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_cad_endpoint { 2664bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj int id; 2674bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj char name[64]; 2684bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2694bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2704bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define CAD_GET_ENDPOINT _IOWR(SND_IOCTL_MAGIC, 5, struct msm_cad_endpoint *) 2714bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_pcm_config { 2724bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t pcm_feedback; 2734bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2744bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t buffer_count; 2754bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t buffer_size; 2764bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2774bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_EVENT_SUSPEND 0 2784bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2794bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_EVENT_RESUME 1 2804bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_EVENT_WRITE_DONE 2 2814bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_EVENT_READ_DONE 3 2824bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_EVENT_STREAM_INFO 4 2834bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2844bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_EVENT_BITSTREAM_ERROR_INFO 5 2854bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_CODEC_TYPE_MP3 0 2864bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_CODEC_TYPE_AAC 1 2874bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_bitstream_info { 2884bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2894bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t codec_type; 2904bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t chan_info; 2914bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t sample_rate; 2924bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t bit_stream_info; 2934bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2944bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t bit_rate; 2954bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t unused[3]; 2964bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 2974bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_bitstream_error_info { 2984bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 2994bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t dec_id; 3004bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t err_msg_indicator; 3014bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t err_type; 3024bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3034bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3044bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajunion msm_audio_event_payload { 3054bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj struct msm_audio_aio_buf aio_buf; 3064bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj struct msm_audio_bitstream_info stream_info; 3074bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj struct msm_audio_bitstream_error_info error_info; 3084bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3094bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj int reserved; 3104bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3114bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_event { 3124bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj int event_type; 3134bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3144bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj int timeout_ms; 3154bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj union msm_audio_event_payload event_payload; 3164bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3174bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define MSM_SNDDEV_CAP_RX 0x1 3184bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3194bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define MSM_SNDDEV_CAP_TX 0x2 3204bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define MSM_SNDDEV_CAP_VOICE 0x4 3214bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_snd_device_info { 3224bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t dev_id; 3234bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3244bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t dev_cap; 3254bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj char dev_name[64]; 3264bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3274bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_snd_device_list { 3284bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3294bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t num_dev; 3304bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj struct msm_snd_device_info *list; 3314bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3324bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_dtmf_config { 3334bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3344bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t path; 3354bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t dtmf_hi; 3364bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t dtmf_low; 3374bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t duration; 3384bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3394bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t tx_gain; 3404bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t rx_gain; 3414bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t mixing; 3424bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3434bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3444bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ROUTE_STREAM_VOICE_RX 0 3454bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ROUTE_STREAM_VOICE_TX 1 3464bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ROUTE_STREAM_PLAYBACK 2 3474bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_ROUTE_STREAM_REC 3 3484bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3494bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_route_config { 3504bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t stream_type; 3514bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t stream_id; 3524bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t dev_id; 3534bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3544bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3554bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#define AUDIO_MAX_EQ_BANDS 12 3564bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_eq_band { 3574bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint16_t band_idx; 3584bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3594bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t filter_type; 3604bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t center_freq_hz; 3614bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t filter_gain; 3624bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t q_factor; 3634bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3644bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj} __attribute__ ((packed)); 3654bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_audio_eq_stream_config { 3664bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t enable; 3674bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t num_bands; 3684bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3694bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj struct msm_audio_eq_band eq_bands[AUDIO_MAX_EQ_BANDS]; 3704bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj} __attribute__ ((packed)); 3714bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramarajstruct msm_acdb_cmd_device { 3724bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t command_id; 3734bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3744bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t device_id; 3754bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t network_id; 3764bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t sample_rate_id; 3774bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t interface_id; 3784bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3794bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t algorithm_block_id; 3804bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t total_bytes; 3814bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj uint32_t *phys_buf; 3824bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj}; 3834bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 3844bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj#endif 3854bdc7e6b80ad433341cdecea394976d89536cc34Naveen Ramaraj 386