Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
compress_offload.h
Go to the documentation of this file.
1 /*
2  * compress_offload.h - compress offload header definations
3  *
4  * Copyright (C) 2011 Intel Corporation
5  * Authors: Vinod Koul <[email protected]>
6  * Pierre-Louis Bossart <[email protected]>
7  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; version 2 of the License.
12  *
13  * This program is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License along
19  * with this program; if not, write to the Free Software Foundation, Inc.,
20  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
21  *
22  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
23  *
24  */
25 #ifndef __COMPRESS_OFFLOAD_H
26 #define __COMPRESS_OFFLOAD_H
27 
28 #include <linux/types.h>
29 #include <sound/asound.h>
30 #include <sound/compress_params.h>
31 
32 
33 #define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 0)
34 
42 };
43 
52  struct snd_codec codec;
54 };
55 
73 };
74 
83 };
84 
88 };
89 
110 };
111 
122 };
123 
142 #define SNDRV_COMPRESS_IOCTL_VERSION _IOR('C', 0x00, int)
143 #define SNDRV_COMPRESS_GET_CAPS _IOWR('C', 0x10, struct snd_compr_caps)
144 #define SNDRV_COMPRESS_GET_CODEC_CAPS _IOWR('C', 0x11,\
145  struct snd_compr_codec_caps)
146 #define SNDRV_COMPRESS_SET_PARAMS _IOW('C', 0x12, struct snd_compr_params)
147 #define SNDRV_COMPRESS_GET_PARAMS _IOR('C', 0x13, struct snd_codec)
148 #define SNDRV_COMPRESS_TSTAMP _IOR('C', 0x20, struct snd_compr_tstamp)
149 #define SNDRV_COMPRESS_AVAIL _IOR('C', 0x21, struct snd_compr_avail)
150 #define SNDRV_COMPRESS_PAUSE _IO('C', 0x30)
151 #define SNDRV_COMPRESS_RESUME _IO('C', 0x31)
152 #define SNDRV_COMPRESS_START _IO('C', 0x32)
153 #define SNDRV_COMPRESS_STOP _IO('C', 0x33)
154 #define SNDRV_COMPRESS_DRAIN _IO('C', 0x34)
155 /*
156  * TODO
157  * 1. add mmap support
158  *
159  */
160 #define SND_COMPR_TRIGGER_DRAIN 7 /*FIXME move this to pcm.h */
161 #endif