Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
audio.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  audio_mixer
 
struct  audio_status
 
struct  audio_karaoke
 

Macros

#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)
 
#define AUDIO_GET_PTS   _IOR('o', 19, __u64)
 
#define AUDIO_BILINGUAL_CHANNEL_SELECT   _IO('o', 20)
 

Typedefs

typedef struct audio_mixer audio_mixer_t
 
typedef struct audio_status audio_status_t
 
typedef struct audio_karaoke audio_karaoke_t
 
typedef __u16 audio_attributes_t
 

Enumerations

enum  audio_stream_source_t { AUDIO_SOURCE_DEMUX, AUDIO_SOURCE_MEMORY }
 
enum  audio_play_state_t { AUDIO_STOPPED, AUDIO_PLAYING, AUDIO_PAUSED }
 
enum  audio_channel_select_t {
  AUDIO_STEREO, AUDIO_MONO_LEFT, AUDIO_MONO_RIGHT, AUDIO_MONO,
  AUDIO_STEREO_SWAPPED
}
 

Macro Definition Documentation

#define AUDIO_BILINGUAL_CHANNEL_SELECT   _IO('o', 20)

Definition at line 133 of file audio.h.

#define AUDIO_CAP_AAC   32

Definition at line 96 of file audio.h.

#define AUDIO_CAP_AC3   256

Definition at line 99 of file audio.h.

#define AUDIO_CAP_DTS   1

Definition at line 91 of file audio.h.

#define AUDIO_CAP_LPCM   2

Definition at line 92 of file audio.h.

#define AUDIO_CAP_MP1   4

Definition at line 93 of file audio.h.

#define AUDIO_CAP_MP2   8

Definition at line 94 of file audio.h.

#define AUDIO_CAP_MP3   16

Definition at line 95 of file audio.h.

#define AUDIO_CAP_OGG   64

Definition at line 97 of file audio.h.

#define AUDIO_CAP_SDDS   128

Definition at line 98 of file audio.h.

#define AUDIO_CHANNEL_SELECT   _IO('o', 9)

Definition at line 109 of file audio.h.

#define AUDIO_CLEAR_BUFFER   _IO('o', 12)

Definition at line 113 of file audio.h.

#define AUDIO_CONTINUE   _IO('o', 4)

Definition at line 104 of file audio.h.

#define AUDIO_GET_CAPABILITIES   _IOR('o', 11, unsigned int)

Definition at line 112 of file audio.h.

#define AUDIO_GET_PTS   _IOR('o', 19, __u64)

AUDIO_GET_PTS

Read the 33 bit presentation time stamp as defined in ITU T-REC-H.222.0 / ISO/IEC 13818-1.

The PTS should belong to the currently played frame if possible, but may also be a value close to it like the PTS of the last decoded frame or the last PTS extracted by the PES parser.

Definition at line 132 of file audio.h.

#define AUDIO_GET_STATUS   _IOR('o', 10, audio_status_t)

Definition at line 110 of file audio.h.

#define AUDIO_PAUSE   _IO('o', 3)

Definition at line 103 of file audio.h.

#define AUDIO_PLAY   _IO('o', 2)

Definition at line 102 of file audio.h.

#define AUDIO_SELECT_SOURCE   _IO('o', 5)

Definition at line 105 of file audio.h.

#define AUDIO_SET_ATTRIBUTES   _IOW('o', 17, audio_attributes_t)

Definition at line 118 of file audio.h.

#define AUDIO_SET_AV_SYNC   _IO('o', 7)

Definition at line 107 of file audio.h.

#define AUDIO_SET_BYPASS_MODE   _IO('o', 8)

Definition at line 108 of file audio.h.

#define AUDIO_SET_EXT_ID   _IO('o', 16)

Definition at line 117 of file audio.h.

#define AUDIO_SET_ID   _IO('o', 13)

Definition at line 114 of file audio.h.

#define AUDIO_SET_KARAOKE   _IOW('o', 18, audio_karaoke_t)

Definition at line 119 of file audio.h.

#define AUDIO_SET_MIXER   _IOW('o', 14, audio_mixer_t)

Definition at line 115 of file audio.h.

#define AUDIO_SET_MUTE   _IO('o', 6)

Definition at line 106 of file audio.h.

#define AUDIO_SET_STREAMTYPE   _IO('o', 15)

Definition at line 116 of file audio.h.

#define AUDIO_STOP   _IO('o', 1)

Definition at line 101 of file audio.h.

Typedef Documentation

Definition at line 79 of file audio.h.

Enumeration Type Documentation

Enumerator:
AUDIO_STEREO 
AUDIO_MONO_LEFT 
AUDIO_MONO_RIGHT 
AUDIO_MONO 
AUDIO_STEREO_SWAPPED 

Definition at line 42 of file audio.h.

Enumerator:
AUDIO_STOPPED 
AUDIO_PLAYING 
AUDIO_PAUSED 

Definition at line 35 of file audio.h.

Enumerator:
AUDIO_SOURCE_DEMUX 
AUDIO_SOURCE_MEMORY 

Definition at line 29 of file audio.h.