| .. | .. |
|---|
| 31 | 31 | #include <sound/compress_params.h> |
|---|
| 32 | 32 | |
|---|
| 33 | 33 | |
|---|
| 34 | | -#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 2) |
|---|
| 34 | +#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 2, 0) |
|---|
| 35 | 35 | /** |
|---|
| 36 | 36 | * struct snd_compressed_buffer - compressed buffer |
|---|
| 37 | 37 | * @fragment_size: size of buffer fragment in bytes |
|---|
| .. | .. |
|---|
| 67 | 67 | */ |
|---|
| 68 | 68 | struct snd_compr_tstamp { |
|---|
| 69 | 69 | __u32 byte_offset; |
|---|
| 70 | | - __u64 copied_total; |
|---|
| 70 | + __u32 copied_total; |
|---|
| 71 | 71 | __u32 pcm_frames; |
|---|
| 72 | 72 | __u32 pcm_io_frames; |
|---|
| 73 | 73 | __u32 sampling_rate; |
|---|
| .. | .. |
|---|
| 123 | 123 | } __attribute__((packed, aligned(4))); |
|---|
| 124 | 124 | |
|---|
| 125 | 125 | /** |
|---|
| 126 | | - * struct snd_compr_audio_info: compressed input audio information |
|---|
| 127 | | - * @frame_size: legth of the encoded frame with valid data |
|---|
| 128 | | - * @reserved: reserved for furture use |
|---|
| 129 | | - */ |
|---|
| 130 | | -struct snd_compr_audio_info { |
|---|
| 131 | | - __u32 frame_size; |
|---|
| 132 | | - __u32 reserved[15]; |
|---|
| 133 | | -} __attribute__((packed, aligned(4))); |
|---|
| 134 | | - |
|---|
| 135 | | -#define SND_COMPR_AUDIO_INFO |
|---|
| 136 | | - |
|---|
| 137 | | -/** |
|---|
| 138 | 126 | * enum sndrv_compress_encoder |
|---|
| 139 | 127 | * @SNDRV_COMPRESS_ENCODER_PADDING: no of samples appended by the encoder at the |
|---|
| 140 | 128 | * end of the track |
|---|
| .. | .. |
|---|
| 156 | 144 | __u32 value[8]; |
|---|
| 157 | 145 | } __attribute__((packed, aligned(4))); |
|---|
| 158 | 146 | |
|---|
| 159 | | -/** |
|---|
| 147 | +/* |
|---|
| 160 | 148 | * compress path ioctl definitions |
|---|
| 161 | 149 | * SNDRV_COMPRESS_GET_CAPS: Query capability of DSP |
|---|
| 162 | 150 | * SNDRV_COMPRESS_GET_CODEC_CAPS: Query capability of a codec |
|---|
| .. | .. |
|---|
| 172 | 160 | * SNDRV_COMPRESS_STOP: stop a running stream, discarding ring buffer content |
|---|
| 173 | 161 | * and the buffers currently with DSP |
|---|
| 174 | 162 | * SNDRV_COMPRESS_DRAIN: Play till end of buffers and stop after that |
|---|
| 175 | | - * SNDRV_COMPRESS_SET_NEXT_TRACK_PARAM: send codec specific data for the next |
|---|
| 176 | | - * track in gapless |
|---|
| 177 | 163 | * SNDRV_COMPRESS_IOCTL_VERSION: Query the API version |
|---|
| 178 | 164 | */ |
|---|
| 179 | 165 | #define SNDRV_COMPRESS_IOCTL_VERSION _IOR('C', 0x00, int) |
|---|
| .. | .. |
|---|
| 195 | 181 | #define SNDRV_COMPRESS_DRAIN _IO('C', 0x34) |
|---|
| 196 | 182 | #define SNDRV_COMPRESS_NEXT_TRACK _IO('C', 0x35) |
|---|
| 197 | 183 | #define SNDRV_COMPRESS_PARTIAL_DRAIN _IO('C', 0x36) |
|---|
| 198 | | -#define SNDRV_COMPRESS_SET_NEXT_TRACK_PARAM\ |
|---|
| 199 | | - _IOW('C', 0x80, union snd_codec_options) |
|---|
| 200 | 184 | /* |
|---|
| 201 | 185 | * TODO |
|---|
| 202 | 186 | * 1. add mmap support |
|---|