Skip to content

Commit b773c08

Browse files
committed
ALSA: compress_offload: Add missing descriptions in structs
Add the missing descriptions for snd_compr_ops, snd_compr_task and snd_compr_task_status fields, in order to shut up the build warnings. Fixes: 0417715 ("ALSA: compress_offload: introduce accel operation mode") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/20241028193731.4b0c3788@canb.auug.org.au Link: https://patch.msgid.link/20241113072304.4447-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent a0810c3 commit b773c08

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

include/sound/compress_driver.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ struct snd_compr_stream {
143143
* Not valid if copy is implemented
144144
* @get_caps: Retrieve DSP capabilities, mandatory
145145
* @get_codec_caps: Retrieve capabilities for a specific codec, mandatory
146+
* @task_create: Create a set of input/output buffers for accel operations
147+
* @task_start: Start (queue) a task for accel operations
148+
* @task_stop: Stop (dequeue) a task for accel operations
149+
* @task_free: Free a set of input/output buffers for accel operations
146150
*/
147151
struct snd_compr_ops {
148152
int (*open)(struct snd_compr_stream *stream);

include/uapi/sound/compress_offload.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ struct snd_compr_metadata {
139139
* @output_fd: data output file descriptor (dma-buf)
140140
* @input_size: filled data in bytes (from caller, must not exceed fragment size)
141141
* @flags: see SND_COMPRESS_TFLG_* defines
142+
* @reserved: reserved for future extension
142143
*/
143144
struct snd_compr_task {
144145
__u64 seqno;
@@ -169,6 +170,7 @@ enum snd_compr_state {
169170
* @output_size: filled data in bytes (from driver)
170171
* @output_flags: reserved for future (all zeros - from driver)
171172
* @state: actual task state (SND_COMPRESS_TASK_STATE_*)
173+
* @reserved: reserved for future extension
172174
*/
173175
struct snd_compr_task_status {
174176
__u64 seqno;

0 commit comments

Comments
 (0)