blob: 66c2eee5cd025020681d0ca290dd9564d3359c9c [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -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 ***
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 _DVBAUDIO_H_
20#define _DVBAUDIO_H_
21#include <linux/types.h>
22typedef enum {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080024 AUDIO_SOURCE_DEMUX,
25 AUDIO_SOURCE_MEMORY
Ben Cheng655a7c02013-10-16 16:09:24 -070026} audio_stream_source_t;
27typedef enum {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 AUDIO_STOPPED,
30 AUDIO_PLAYING,
31 AUDIO_PAUSED
Ben Cheng655a7c02013-10-16 16:09:24 -070032} audio_play_state_t;
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34typedef enum {
Tao Baod7db5942015-01-28 10:07:51 -080035 AUDIO_STEREO,
36 AUDIO_MONO_LEFT,
37 AUDIO_MONO_RIGHT,
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 AUDIO_MONO,
40 AUDIO_STEREO_SWAPPED
Ben Cheng655a7c02013-10-16 16:09:24 -070041} audio_channel_select_t;
42typedef struct audio_mixer {
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 unsigned int volume_left;
45 unsigned int volume_right;
Ben Cheng655a7c02013-10-16 16:09:24 -070046} audio_mixer_t;
47typedef struct audio_status {
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 int AV_sync_state;
50 int mute_state;
51 audio_play_state_t play_state;
52 audio_stream_source_t stream_source;
Ben Cheng655a7c02013-10-16 16:09:24 -070053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080054 audio_channel_select_t channel_select;
55 int bypass_mode;
56 audio_mixer_t mixer_state;
Ben Cheng655a7c02013-10-16 16:09:24 -070057} audio_status_t;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059typedef struct audio_karaoke {
60 int vocal1;
61 int vocal2;
62 int melody;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070064} audio_karaoke_t;
65typedef __u16 audio_attributes_t;
66#define AUDIO_CAP_DTS 1
Ben Cheng655a7c02013-10-16 16:09:24 -070067#define AUDIO_CAP_LPCM 2
Tao Baod7db5942015-01-28 10:07:51 -080068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070069#define AUDIO_CAP_MP1 4
70#define AUDIO_CAP_MP2 8
71#define AUDIO_CAP_MP3 16
Ben Cheng655a7c02013-10-16 16:09:24 -070072#define AUDIO_CAP_AAC 32
Tao Baod7db5942015-01-28 10:07:51 -080073/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070074#define AUDIO_CAP_OGG 64
75#define AUDIO_CAP_SDDS 128
76#define AUDIO_CAP_AC3 256
Ben Cheng655a7c02013-10-16 16:09:24 -070077#define AUDIO_STOP _IO('o', 1)
Tao Baod7db5942015-01-28 10:07:51 -080078/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070079#define AUDIO_PLAY _IO('o', 2)
80#define AUDIO_PAUSE _IO('o', 3)
81#define AUDIO_CONTINUE _IO('o', 4)
Ben Cheng655a7c02013-10-16 16:09:24 -070082#define AUDIO_SELECT_SOURCE _IO('o', 5)
Tao Baod7db5942015-01-28 10:07:51 -080083/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070084#define AUDIO_SET_MUTE _IO('o', 6)
85#define AUDIO_SET_AV_SYNC _IO('o', 7)
86#define AUDIO_SET_BYPASS_MODE _IO('o', 8)
Ben Cheng655a7c02013-10-16 16:09:24 -070087#define AUDIO_CHANNEL_SELECT _IO('o', 9)
Tao Baod7db5942015-01-28 10:07:51 -080088/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070089#define AUDIO_GET_STATUS _IOR('o', 10, audio_status_t)
90#define AUDIO_GET_CAPABILITIES _IOR('o', 11, unsigned int)
91#define AUDIO_CLEAR_BUFFER _IO('o', 12)
Ben Cheng655a7c02013-10-16 16:09:24 -070092#define AUDIO_SET_ID _IO('o', 13)
Tao Baod7db5942015-01-28 10:07:51 -080093/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070094#define AUDIO_SET_MIXER _IOW('o', 14, audio_mixer_t)
95#define AUDIO_SET_STREAMTYPE _IO('o', 15)
96#define AUDIO_SET_EXT_ID _IO('o', 16)
Ben Cheng655a7c02013-10-16 16:09:24 -070097#define AUDIO_SET_ATTRIBUTES _IOW('o', 17, audio_attributes_t)
Tao Baod7db5942015-01-28 10:07:51 -080098/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Ben Cheng655a7c02013-10-16 16:09:24 -070099#define AUDIO_SET_KARAOKE _IOW('o', 18, audio_karaoke_t)
100#define AUDIO_GET_PTS _IOR('o', 19, __u64)
101#define AUDIO_BILINGUAL_CHANNEL_SELECT _IO('o', 20)
Ben Cheng655a7c02013-10-16 16:09:24 -0700102#endif
Tao Baod7db5942015-01-28 10:07:51 -0800103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */