aboutsummaryrefslogtreecommitdiffstats
path: root/util/av7110_loadkeys/input_fake.h
blob: 0ec96df7d96172343a83cd73ce47ad943299ff75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef _INPUT_FAKE_H
#define _INPUT_FAKE_H

#include <linux/input.h>


#if !defined(KEY_OK)

/**
 *  define some additional remote control keys in case they
 *  were not already defined above in <linux/input.h>
 */

#define KEY_OK           0x160
#define KEY_SELECT       0x161
#define KEY_GOTO         0x162
#define KEY_CLEAR        0x163
#define KEY_POWER2       0x164
#define KEY_OPTION       0x165
#define KEY_INFO         0x166
#define KEY_TIME         0x167
#define KEY_VENDOR       0x168
#define KEY_ARCHIVE      0x169
#define KEY_PROGRAM      0x16a
#define KEY_CHANNEL      0x16b
#define KEY_FAVORITES    0x16c
#define KEY_EPG          0x16d
#define KEY_PVR          0x16e
#define KEY_MHP          0x16f
#define KEY_LANGUAGE     0x170
#define KEY_TITLE        0x171
#define KEY_SUBTITLE     0x172
#define KEY_ANGLE        0x173
#define KEY_ZOOM         0x174
#define KEY_MODE         0x175
#define KEY_KEYBOARD     0x176
#define KEY_SCREEN       0x177
#define KEY_PC           0x178
#define KEY_TV           0x179
#define KEY_TV2          0x17a
#define KEY_VCR          0x17b
#define KEY_VCR2         0x17c
#define KEY_SAT          0x17d
#define KEY_SAT2         0x17e
#define KEY_CD           0x17f
#define KEY_TAPE         0x180
#define KEY_RADIO        0x181
#define KEY_TUNER        0x182
#define KEY_PLAYER       0x183
#define KEY_TEXT         0x184
#define KEY_DVD          0x185
#define KEY_AUX          0x186
#define KEY_MP3          0x187
#define KEY_AUDIO        0x188
#define KEY_VIDEO        0x189
#define KEY_DIRECTORY    0x18a
#define KEY_LIST         0x18b
#define KEY_MEMO         0x18c
#define KEY_CALENDAR     0x18d
#define KEY_RED          0x18e
#define KEY_GREEN        0x18f
#define KEY_YELLOW       0x190
#define KEY_BLUE         0x191
#define KEY_CHANNELUP    0x192
#define KEY_CHANNELDOWN  0x193
#define KEY_FIRST        0x194
#define KEY_LAST         0x195
#define KEY_AB           0x196
#define KEY_NEXT         0x197
#define KEY_RESTART      0x198
#define KEY_SLOW         0x199
#define KEY_SHUFFLE      0x19a
#define KEY_BREAK        0x19b
#define KEY_PREVIOUS     0x19c
#define KEY_DIGITS       0x19d
#define KEY_TEEN         0x19e
#define KEY_TWEN         0x19f


#endif  /* !defined(KEY_OK)  */
#endif  /* _INPUT_FAKE_H */
pan class="n">AUDIO_MONO_LEFT, AUDIO_MONO_RIGHT } audio_channel_select_t; typedef struct audio_mixer { unsigned int volume_left; unsigned int volume_right; // what else do we need? bass, pass-through, ... } audio_mixer_t; typedef struct audio_status { int AV_sync_state; /* sync audio and video? */ int mute_state; /* audio is muted */ audio_play_state_t play_state; /* current playback state */ audio_stream_source_t stream_source; /* current stream source */ audio_channel_select_t channel_select; /* currently selected channel */ int bypass_mode; /* pass on audio data to */ audio_mixer_t mixer_state; /* current mixer state */ } audio_status_t; /* separate decoder hardware */ typedef struct audio_karaoke{ /* if Vocal1 or Vocal2 are non-zero, they get mixed */ int vocal1; /* into left and right t at 70% each */ int vocal2; /* if both, Vocal1 and Vocal2 are non-zero, Vocal1 gets*/ int melody; /* mixed into the left channel and */ /* Vocal2 into the right channel at 100% each. */ /* if Melody is non-zero, the melody channel gets mixed*/ } audio_karaoke_t; /* into left and right */ typedef uint16_t audio_attributes_t; /* bits: descr. */ /* 15-13 audio coding mode (0=ac3, 2=mpeg1, 3=mpeg2ext, 4=LPCM, 6=DTS, */ /* 12 multichannel extension */ /* 11-10 audio type (0=not spec, 1=language included) */ /* 9- 8 audio application mode (0=not spec, 1=karaoke, 2=surround) */ /* 7- 6 Quantization / DRC (mpeg audio: 1=DRC exists)(lpcm: 0=16bit, */ /* 5- 4 Sample frequency fs (0=48kHz, 1=96kHz) */ /* 2- 0 number of audio channels (n+1 channels) */ /* for GET_CAPABILITIES and SET_FORMAT, the latter should only set one bit */ #define AUDIO_CAP_DTS 1 #define AUDIO_CAP_LPCM 2 #define AUDIO_CAP_MP1 4 #define AUDIO_CAP_MP2 8 #define AUDIO_CAP_MP3 16 #define AUDIO_CAP_AAC 32 #define AUDIO_CAP_OGG 64 #define AUDIO_CAP_SDDS 128 #define AUDIO_CAP_AC3 256 #define AUDIO_STOP _IO('o', 1) #define AUDIO_PLAY _IO('o', 2) #define AUDIO_PAUSE _IO('o', 3) #define AUDIO_CONTINUE _IO('o', 4) #define AUDIO_SELECT_SOURCE _IO('o', 5) #define AUDIO_SET_MUTE _IO('o', 6) #define AUDIO_SET_AV_SYNC _IO('o', 7) #define AUDIO_SET_BYPASS_MODE _IO('o', 8) #define AUDIO_CHANNEL_SELECT _IO('o', 9) #define AUDIO_GET_STATUS _IOR('o', 10, audio_status_t) #define AUDIO_GET_CAPABILITIES _IOR('o', 11, unsigned int) #define AUDIO_CLEAR_BUFFER _IO('o', 12) #define AUDIO_SET_ID _IO('o', 13) #define AUDIO_SET_MIXER _IOW('o', 14, audio_mixer_t) #define AUDIO_SET_STREAMTYPE _IO('o', 15) #define AUDIO_SET_EXT_ID _IO('o', 16) #define AUDIO_SET_ATTRIBUTES _IOW('o', 17, audio_attributes_t) #define AUDIO_SET_KARAOKE _IOW('o', 18, audio_karaoke_t) #endif /* _DVBAUDIO_H_ */