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

Go to the source code of this file.

Data Structures

struct  snd_compressed_buffer
 
struct  snd_compr_params
 
struct  snd_compr_tstamp
 
struct  snd_compr_avail
 
struct  snd_compr_caps
 
struct  snd_compr_codec_caps
 

Macros

#define SNDRV_COMPRESS_VERSION   SNDRV_PROTOCOL_VERSION(0, 1, 0)
 
#define SNDRV_COMPRESS_IOCTL_VERSION   _IOR('C', 0x00, int)
 
#define SNDRV_COMPRESS_GET_CAPS   _IOWR('C', 0x10, struct snd_compr_caps)
 
#define SNDRV_COMPRESS_GET_CODEC_CAPS
 
#define SNDRV_COMPRESS_SET_PARAMS   _IOW('C', 0x12, struct snd_compr_params)
 
#define SNDRV_COMPRESS_GET_PARAMS   _IOR('C', 0x13, struct snd_codec)
 
#define SNDRV_COMPRESS_TSTAMP   _IOR('C', 0x20, struct snd_compr_tstamp)
 
#define SNDRV_COMPRESS_AVAIL   _IOR('C', 0x21, struct snd_compr_avail)
 
#define SNDRV_COMPRESS_PAUSE   _IO('C', 0x30)
 
#define SNDRV_COMPRESS_RESUME   _IO('C', 0x31)
 
#define SNDRV_COMPRESS_START   _IO('C', 0x32)
 
#define SNDRV_COMPRESS_STOP   _IO('C', 0x33)
 
#define SNDRV_COMPRESS_DRAIN   _IO('C', 0x34)
 
#define SND_COMPR_TRIGGER_DRAIN   7 /*FIXME move this to pcm.h */
 

Enumerations

enum  snd_compr_direction { SND_COMPRESS_PLAYBACK = 0, SND_COMPRESS_CAPTURE }
 

Macro Definition Documentation

#define SND_COMPR_TRIGGER_DRAIN   7 /*FIXME move this to pcm.h */

Definition at line 160 of file compress_offload.h.

#define SNDRV_COMPRESS_AVAIL   _IOR('C', 0x21, struct snd_compr_avail)

Definition at line 149 of file compress_offload.h.

#define SNDRV_COMPRESS_DRAIN   _IO('C', 0x34)

Definition at line 154 of file compress_offload.h.

#define SNDRV_COMPRESS_GET_CAPS   _IOWR('C', 0x10, struct snd_compr_caps)

Definition at line 143 of file compress_offload.h.

#define SNDRV_COMPRESS_GET_CODEC_CAPS
Value:
_IOWR('C', 0x11,\

Definition at line 144 of file compress_offload.h.

#define SNDRV_COMPRESS_GET_PARAMS   _IOR('C', 0x13, struct snd_codec)

Definition at line 147 of file compress_offload.h.

#define SNDRV_COMPRESS_IOCTL_VERSION   _IOR('C', 0x00, int)

compress path ioctl definitions SNDRV_COMPRESS_GET_CAPS: Query capability of DSP SNDRV_COMPRESS_GET_CODEC_CAPS: Query capability of a codec SNDRV_COMPRESS_SET_PARAMS: Set codec and stream parameters Note: only codec params can be changed runtime and stream params cant be SNDRV_COMPRESS_GET_PARAMS: Query codec params SNDRV_COMPRESS_TSTAMP: get the current timestamp value SNDRV_COMPRESS_AVAIL: get the current buffer avail value. This also queries the tstamp properties SNDRV_COMPRESS_PAUSE: Pause the running stream SNDRV_COMPRESS_RESUME: resume a paused stream SNDRV_COMPRESS_START: Start a stream SNDRV_COMPRESS_STOP: stop a running stream, discarding ring buffer content and the buffers currently with DSP SNDRV_COMPRESS_DRAIN: Play till end of buffers and stop after that SNDRV_COMPRESS_IOCTL_VERSION: Query the API version

Definition at line 142 of file compress_offload.h.

#define SNDRV_COMPRESS_PAUSE   _IO('C', 0x30)

Definition at line 150 of file compress_offload.h.

#define SNDRV_COMPRESS_RESUME   _IO('C', 0x31)

Definition at line 151 of file compress_offload.h.

#define SNDRV_COMPRESS_SET_PARAMS   _IOW('C', 0x12, struct snd_compr_params)

Definition at line 146 of file compress_offload.h.

#define SNDRV_COMPRESS_START   _IO('C', 0x32)

Definition at line 152 of file compress_offload.h.

#define SNDRV_COMPRESS_STOP   _IO('C', 0x33)

Definition at line 153 of file compress_offload.h.

#define SNDRV_COMPRESS_TSTAMP   _IOR('C', 0x20, struct snd_compr_tstamp)

Definition at line 148 of file compress_offload.h.

#define SNDRV_COMPRESS_VERSION   SNDRV_PROTOCOL_VERSION(0, 1, 0)

Definition at line 33 of file compress_offload.h.

Enumeration Type Documentation

Enumerator:
SND_COMPRESS_PLAYBACK 
SND_COMPRESS_CAPTURE 

Definition at line 85 of file compress_offload.h.