hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/uapi/sound/compress_offload.h
....@@ -31,7 +31,7 @@
3131 #include <sound/compress_params.h>
3232
3333
34
-#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 2)
34
+#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 2, 0)
3535 /**
3636 * struct snd_compressed_buffer - compressed buffer
3737 * @fragment_size: size of buffer fragment in bytes
....@@ -67,7 +67,7 @@
6767 */
6868 struct snd_compr_tstamp {
6969 __u32 byte_offset;
70
- __u64 copied_total;
70
+ __u32 copied_total;
7171 __u32 pcm_frames;
7272 __u32 pcm_io_frames;
7373 __u32 sampling_rate;
....@@ -123,18 +123,6 @@
123123 } __attribute__((packed, aligned(4)));
124124
125125 /**
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
-/**
138126 * enum sndrv_compress_encoder
139127 * @SNDRV_COMPRESS_ENCODER_PADDING: no of samples appended by the encoder at the
140128 * end of the track
....@@ -156,7 +144,7 @@
156144 __u32 value[8];
157145 } __attribute__((packed, aligned(4)));
158146
159
-/**
147
+/*
160148 * compress path ioctl definitions
161149 * SNDRV_COMPRESS_GET_CAPS: Query capability of DSP
162150 * SNDRV_COMPRESS_GET_CODEC_CAPS: Query capability of a codec
....@@ -172,8 +160,6 @@
172160 * SNDRV_COMPRESS_STOP: stop a running stream, discarding ring buffer content
173161 * and the buffers currently with DSP
174162 * 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
177163 * SNDRV_COMPRESS_IOCTL_VERSION: Query the API version
178164 */
179165 #define SNDRV_COMPRESS_IOCTL_VERSION _IOR('C', 0x00, int)
....@@ -195,8 +181,6 @@
195181 #define SNDRV_COMPRESS_DRAIN _IO('C', 0x34)
196182 #define SNDRV_COMPRESS_NEXT_TRACK _IO('C', 0x35)
197183 #define SNDRV_COMPRESS_PARTIAL_DRAIN _IO('C', 0x36)
198
-#define SNDRV_COMPRESS_SET_NEXT_TRACK_PARAM\
199
- _IOW('C', 0x80, union snd_codec_options)
200184 /*
201185 * TODO
202186 * 1. add mmap support