Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 04177158cf98 ("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>

+6
+4
include/sound/compress_driver.h
··· 143 143 * Not valid if copy is implemented 144 144 * @get_caps: Retrieve DSP capabilities, mandatory 145 145 * @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 146 150 */ 147 151 struct snd_compr_ops { 148 152 int (*open)(struct snd_compr_stream *stream);
+2
include/uapi/sound/compress_offload.h
··· 139 139 * @output_fd: data output file descriptor (dma-buf) 140 140 * @input_size: filled data in bytes (from caller, must not exceed fragment size) 141 141 * @flags: see SND_COMPRESS_TFLG_* defines 142 + * @reserved: reserved for future extension 142 143 */ 143 144 struct snd_compr_task { 144 145 __u64 seqno; ··· 170 169 * @output_size: filled data in bytes (from driver) 171 170 * @output_flags: reserved for future (all zeros - from driver) 172 171 * @state: actual task state (SND_COMPRESS_TASK_STATE_*) 172 + * @reserved: reserved for future extension 173 173 */ 174 174 struct snd_compr_task_status { 175 175 __u64 seqno;