blob: df8e2497b796f282c07b513bfbdac7f9ec64b4bf [file] [log] [blame]
Iliyan Malcheva169e312010-08-23 21:01:55 -07001/****************************************************************************
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 Cheng654325d2012-03-07 21:13:49 -080010 *** 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 Malcheva169e312010-08-23 21:01:55 -070017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _CPCAP_AUDIO_H
20#define _CPCAP_AUDIO_H
Iliyan Malcheva169e312010-08-23 21:01:55 -070021#include <linux/ioctl.h>
Iliyan Malcheva169e312010-08-23 21:01:55 -070022#define CPCAP_AUDIO_MAGIC 'c'
Ben Cheng654325d2012-03-07 21:13:49 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malcheva169e312010-08-23 21:01:55 -070024#define CPCAP_AUDIO_OUT_SPEAKER 0
25#define CPCAP_AUDIO_OUT_HEADSET 1
Iliyan Malchev575d6b32010-09-03 10:09:37 -070026#define CPCAP_AUDIO_OUT_HEADSET_AND_SPEAKER 2
Iliyan Malchev5797e012010-09-14 13:02:59 -070027#define CPCAP_AUDIO_OUT_STANDBY 3
Ben Cheng654325d2012-03-07 21:13:49 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchevbb3bcbc2010-11-02 15:58:36 -070029#define CPCAP_AUDIO_OUT_ANLG_DOCK_HEADSET 4
30#define CPCAP_AUDIO_OUT_MAX 4
Iliyan Malchev575d6b32010-09-03 10:09:37 -070031struct cpcap_audio_stream {
32 unsigned id;
Ben Cheng654325d2012-03-07 21:13:49 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malcheva169e312010-08-23 21:01:55 -070034 int on;
35};
Iliyan Malchev575d6b32010-09-03 10:09:37 -070036#define CPCAP_AUDIO_OUT_SET_OUTPUT _IOW(CPCAP_AUDIO_MAGIC, 0, const struct cpcap_audio_stream *)
Iliyan Malcheva169e312010-08-23 21:01:55 -070037#define CPCAP_AUDIO_OUT_VOL_MIN 0
Ben Cheng654325d2012-03-07 21:13:49 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malcheva169e312010-08-23 21:01:55 -070039#define CPCAP_AUDIO_OUT_VOL_MAX 15
Iliyan Malcheva169e312010-08-23 21:01:55 -070040#define CPCAP_AUDIO_OUT_SET_VOLUME _IOW(CPCAP_AUDIO_MAGIC, 1, unsigned int)
Iliyan Malchev5797e012010-09-14 13:02:59 -070041#define CPCAP_AUDIO_OUT_GET_OUTPUT _IOR(CPCAP_AUDIO_MAGIC, 2, struct cpcap_audio_stream *)
Iliyan Malcheva169e312010-08-23 21:01:55 -070042#define CPCAP_AUDIO_OUT_GET_VOLUME _IOR(CPCAP_AUDIO_MAGIC, 3, unsigned int *)
Ben Cheng654325d2012-03-07 21:13:49 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malcheva169e312010-08-23 21:01:55 -070044#define CPCAP_AUDIO_IN_MIC1 0
45#define CPCAP_AUDIO_IN_MIC2 1
Iliyan Malchev5797e012010-09-14 13:02:59 -070046#define CPCAP_AUDIO_IN_STANDBY 2
47#define CPCAP_AUDIO_IN_MAX 2
Ben Cheng654325d2012-03-07 21:13:49 -080048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev575d6b32010-09-03 10:09:37 -070049#define CPCAP_AUDIO_IN_SET_INPUT _IOW(CPCAP_AUDIO_MAGIC, 4, const struct cpcap_audio_stream *)
Iliyan Malchevb55ab952010-10-06 20:34:09 -070050#define CPCAP_AUDIO_IN_GET_INPUT _IOR(CPCAP_AUDIO_MAGIC, 5, struct cpcap_audio_stream *)
Iliyan Malcheva169e312010-08-23 21:01:55 -070051#define CPCAP_AUDIO_IN_VOL_MIN 0
52#define CPCAP_AUDIO_IN_VOL_MAX 31
Ben Cheng654325d2012-03-07 21:13:49 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malcheva169e312010-08-23 21:01:55 -070054#define CPCAP_AUDIO_IN_SET_VOLUME _IOW(CPCAP_AUDIO_MAGIC, 6, unsigned int)
Iliyan Malcheva169e312010-08-23 21:01:55 -070055#define CPCAP_AUDIO_IN_GET_VOLUME _IOR(CPCAP_AUDIO_MAGIC, 7, unsigned int *)
Iliyan Malchevb55ab952010-10-06 20:34:09 -070056#define CPCAP_AUDIO_OUT_GET_RATE _IOR(CPCAP_AUDIO_MAGIC, 8, unsigned int *)
Iliyan Malchev8465bf92010-11-01 16:04:12 -070057#define CPCAP_AUDIO_OUT_SET_RATE _IOW(CPCAP_AUDIO_MAGIC, 9, unsigned int)
Ben Cheng654325d2012-03-07 21:13:49 -080058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchevb55ab952010-10-06 20:34:09 -070059#define CPCAP_AUDIO_IN_GET_RATE _IOR(CPCAP_AUDIO_MAGIC, 10, unsigned int *)
Iliyan Malchev8465bf92010-11-01 16:04:12 -070060#define CPCAP_AUDIO_IN_SET_RATE _IOW(CPCAP_AUDIO_MAGIC, 11, unsigned int)
Iliyan Malchev8465bf92010-11-01 16:04:12 -070061#define CPCAP_AUDIO_SET_BLUETOOTH_BYPASS _IOW(CPCAP_AUDIO_MAGIC, 12, unsigned int)
Iliyan Malcheva169e312010-08-23 21:01:55 -070062#endif
Ben Cheng654325d2012-03-07 21:13:49 -080063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */