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: 04177158cf ("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>
This commit is contained in:
Takashi Iwai 2024-11-13 08:23:03 +01:00
parent a0810c3d6d
commit b773c086ed
2 changed files with 6 additions and 0 deletions

View File

@ -143,6 +143,10 @@ struct snd_compr_stream {
* Not valid if copy is implemented * Not valid if copy is implemented
* @get_caps: Retrieve DSP capabilities, mandatory * @get_caps: Retrieve DSP capabilities, mandatory
* @get_codec_caps: Retrieve capabilities for a specific codec, mandatory * @get_codec_caps: Retrieve capabilities for a specific codec, mandatory
* @task_create: Create a set of input/output buffers for accel operations
* @task_start: Start (queue) a task for accel operations
* @task_stop: Stop (dequeue) a task for accel operations
* @task_free: Free a set of input/output buffers for accel operations
*/ */
struct snd_compr_ops { struct snd_compr_ops {
int (*open)(struct snd_compr_stream *stream); int (*open)(struct snd_compr_stream *stream);

View File

@ -139,6 +139,7 @@ struct snd_compr_metadata {
* @output_fd: data output file descriptor (dma-buf) * @output_fd: data output file descriptor (dma-buf)
* @input_size: filled data in bytes (from caller, must not exceed fragment size) * @input_size: filled data in bytes (from caller, must not exceed fragment size)
* @flags: see SND_COMPRESS_TFLG_* defines * @flags: see SND_COMPRESS_TFLG_* defines
* @reserved: reserved for future extension
*/ */
struct snd_compr_task { struct snd_compr_task {
__u64 seqno; __u64 seqno;
@ -169,6 +170,7 @@ enum snd_compr_state {
* @output_size: filled data in bytes (from driver) * @output_size: filled data in bytes (from driver)
* @output_flags: reserved for future (all zeros - from driver) * @output_flags: reserved for future (all zeros - from driver)
* @state: actual task state (SND_COMPRESS_TASK_STATE_*) * @state: actual task state (SND_COMPRESS_TASK_STATE_*)
* @reserved: reserved for future extension
*/ */
struct snd_compr_task_status { struct snd_compr_task_status {
__u64 seqno; __u64 seqno;