Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 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 | *** |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 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 | *** |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _CPCAP_AUDIO_H |
| 20 | #define _CPCAP_AUDIO_H |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 21 | #include <linux/ioctl.h> |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 22 | #define CPCAP_AUDIO_MAGIC 'c' |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 23 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 24 | #define CPCAP_AUDIO_OUT_SPEAKER 0 |
| 25 | #define CPCAP_AUDIO_OUT_HEADSET 1 |
Iliyan Malchev | 575d6b3 | 2010-09-03 10:09:37 -0700 | [diff] [blame] | 26 | #define CPCAP_AUDIO_OUT_HEADSET_AND_SPEAKER 2 |
Iliyan Malchev | 5797e01 | 2010-09-14 13:02:59 -0700 | [diff] [blame] | 27 | #define CPCAP_AUDIO_OUT_STANDBY 3 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 28 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | bb3bcbc | 2010-11-02 15:58:36 -0700 | [diff] [blame] | 29 | #define CPCAP_AUDIO_OUT_ANLG_DOCK_HEADSET 4 |
| 30 | #define CPCAP_AUDIO_OUT_MAX 4 |
Iliyan Malchev | 575d6b3 | 2010-09-03 10:09:37 -0700 | [diff] [blame] | 31 | struct cpcap_audio_stream { |
| 32 | unsigned id; |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 33 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 34 | int on; |
| 35 | }; |
Iliyan Malchev | 575d6b3 | 2010-09-03 10:09:37 -0700 | [diff] [blame] | 36 | #define CPCAP_AUDIO_OUT_SET_OUTPUT _IOW(CPCAP_AUDIO_MAGIC, 0, const struct cpcap_audio_stream *) |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 37 | #define CPCAP_AUDIO_OUT_VOL_MIN 0 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 38 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 39 | #define CPCAP_AUDIO_OUT_VOL_MAX 15 |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 40 | #define CPCAP_AUDIO_OUT_SET_VOLUME _IOW(CPCAP_AUDIO_MAGIC, 1, unsigned int) |
Iliyan Malchev | 5797e01 | 2010-09-14 13:02:59 -0700 | [diff] [blame] | 41 | #define CPCAP_AUDIO_OUT_GET_OUTPUT _IOR(CPCAP_AUDIO_MAGIC, 2, struct cpcap_audio_stream *) |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 42 | #define CPCAP_AUDIO_OUT_GET_VOLUME _IOR(CPCAP_AUDIO_MAGIC, 3, unsigned int *) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 43 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 44 | #define CPCAP_AUDIO_IN_MIC1 0 |
| 45 | #define CPCAP_AUDIO_IN_MIC2 1 |
Iliyan Malchev | 5797e01 | 2010-09-14 13:02:59 -0700 | [diff] [blame] | 46 | #define CPCAP_AUDIO_IN_STANDBY 2 |
| 47 | #define CPCAP_AUDIO_IN_MAX 2 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 48 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | 575d6b3 | 2010-09-03 10:09:37 -0700 | [diff] [blame] | 49 | #define CPCAP_AUDIO_IN_SET_INPUT _IOW(CPCAP_AUDIO_MAGIC, 4, const struct cpcap_audio_stream *) |
Iliyan Malchev | b55ab95 | 2010-10-06 20:34:09 -0700 | [diff] [blame] | 50 | #define CPCAP_AUDIO_IN_GET_INPUT _IOR(CPCAP_AUDIO_MAGIC, 5, struct cpcap_audio_stream *) |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 51 | #define CPCAP_AUDIO_IN_VOL_MIN 0 |
| 52 | #define CPCAP_AUDIO_IN_VOL_MAX 31 |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 53 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 54 | #define CPCAP_AUDIO_IN_SET_VOLUME _IOW(CPCAP_AUDIO_MAGIC, 6, unsigned int) |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 55 | #define CPCAP_AUDIO_IN_GET_VOLUME _IOR(CPCAP_AUDIO_MAGIC, 7, unsigned int *) |
Iliyan Malchev | b55ab95 | 2010-10-06 20:34:09 -0700 | [diff] [blame] | 56 | #define CPCAP_AUDIO_OUT_GET_RATE _IOR(CPCAP_AUDIO_MAGIC, 8, unsigned int *) |
Iliyan Malchev | 8465bf9 | 2010-11-01 16:04:12 -0700 | [diff] [blame] | 57 | #define CPCAP_AUDIO_OUT_SET_RATE _IOW(CPCAP_AUDIO_MAGIC, 9, unsigned int) |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 58 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |
Iliyan Malchev | b55ab95 | 2010-10-06 20:34:09 -0700 | [diff] [blame] | 59 | #define CPCAP_AUDIO_IN_GET_RATE _IOR(CPCAP_AUDIO_MAGIC, 10, unsigned int *) |
Iliyan Malchev | 8465bf9 | 2010-11-01 16:04:12 -0700 | [diff] [blame] | 60 | #define CPCAP_AUDIO_IN_SET_RATE _IOW(CPCAP_AUDIO_MAGIC, 11, unsigned int) |
Iliyan Malchev | 8465bf9 | 2010-11-01 16:04:12 -0700 | [diff] [blame] | 61 | #define CPCAP_AUDIO_SET_BLUETOOTH_BYPASS _IOW(CPCAP_AUDIO_MAGIC, 12, unsigned int) |
Iliyan Malchev | a169e31 | 2010-08-23 21:01:55 -0700 | [diff] [blame] | 62 | #endif |
Ben Cheng | 654325d | 2012-03-07 21:13:49 -0800 | [diff] [blame] | 63 | /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ |