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_LSM_PARAMS_H__ 20 #define _UAPI_LSM_PARAMS_H__ 21 #include <linux/types.h> 22 #include <sound/asound.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 #define SNDRV_LSM_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 0) 25 enum lsm_app_id { 26 LSM_VOICE_WAKEUP_APP_ID = 1, 27 LSM_VOICE_WAKEUP_APP_ID_V2 = 2, 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 }; 30 enum lsm_detection_mode { 31 LSM_MODE_KEYWORD_ONLY_DETECTION = 1, 32 LSM_MODE_USER_KEYWORD_DETECTION 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 }; 35 struct snd_lsm_sound_model { 36 __u8 __user *data; 37 __u32 data_size; 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 enum lsm_detection_mode detection_mode; 40 __u16 min_keyw_confidence; 41 __u16 min_user_confidence; 42 bool detect_failure; 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 }; 45 struct snd_lsm_sound_model_v2 { 46 __u8 __user *data; 47 __u8 *confidence_level; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 __u32 data_size; 50 enum lsm_detection_mode detection_mode; 51 __u8 num_confidence_levels; 52 bool detect_failure; 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 }; 55 struct snd_lsm_session_data { 56 enum lsm_app_id app_id; 57 }; 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 struct snd_lsm_event_status { 60 __u16 status; 61 __u16 payload_size; 62 __u8 payload[0]; 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 }; 65 #define SNDRV_LSM_REG_SND_MODEL _IOW('U', 0x00, struct snd_lsm_sound_model) 66 #define SNDRV_LSM_DEREG_SND_MODEL _IOW('U', 0x01, int) 67 #define SNDRV_LSM_EVENT_STATUS _IOW('U', 0x02, struct snd_lsm_event_status) 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define SNDRV_LSM_ABORT_EVENT _IOW('U', 0x03, int) 70 #define SNDRV_LSM_START _IOW('U', 0x04, int) 71 #define SNDRV_LSM_STOP _IOW('U', 0x05, int) 72 #define SNDRV_LSM_SET_SESSION_DATA _IOW('U', 0x06, struct snd_lsm_session_data) 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define SNDRV_LSM_REG_SND_MODEL_V2 _IOW('U', 0x07, struct snd_lsm_sound_model_v2) 75 #endif 76 77