Skip to content

Commit f7b6603

Browse files
mchehabtiwai
authored andcommitted
ALSA: fix kernel-doc markups
Kernel-doc markups should use this format: identifier - description There is a common comment marked, instead, with kernel-doc notation. Some identifiers have different names between their prototypes and the kernel-doc markup. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Acked-by: Mark Brown <broonie@kernel.org> Link: https://lore.kernel.org/r/535182d6f55d7a7de293dda9676df68f5f60afc6.1603469755.git.mchehab+huawei@kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 3650b22 commit f7b6603

9 files changed

Lines changed: 14 additions & 12 deletions

File tree

include/sound/core.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ void __snd_printk(unsigned int level, const char *file, int line,
332332
#define snd_BUG() WARN(1, "BUG?\n")
333333

334334
/**
335-
* Suppress high rates of output when CONFIG_SND_DEBUG is enabled.
335+
* snd_printd_ratelimit - Suppress high rates of output when
336+
* CONFIG_SND_DEBUG is enabled.
336337
*/
337338
#define snd_printd_ratelimit() printk_ratelimit()
338339

include/sound/pcm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,8 +1284,8 @@ snd_pcm_sgbuf_get_ptr(struct snd_pcm_substream *substream, unsigned int ofs)
12841284
}
12851285

12861286
/**
1287-
* snd_pcm_sgbuf_chunk_size - Compute the max size that fits within the contig.
1288-
* page from the given size
1287+
* snd_pcm_sgbuf_get_chunk_size - Compute the max size that fits within the
1288+
* contig. page from the given size
12891289
* @substream: PCM substream
12901290
* @ofs: byte offset
12911291
* @size: byte size to examine

include/uapi/sound/compress_offload.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ struct snd_compr_metadata {
144144
__u32 value[8];
145145
} __attribute__((packed, aligned(4)));
146146

147-
/**
147+
/*
148148
* compress path ioctl definitions
149149
* SNDRV_COMPRESS_GET_CAPS: Query capability of DSP
150150
* SNDRV_COMPRESS_GET_CODEC_CAPS: Query capability of a codec

sound/core/control.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1925,8 +1925,8 @@ EXPORT_SYMBOL(snd_ctl_unregister_ioctl);
19251925

19261926
#ifdef CONFIG_COMPAT
19271927
/**
1928-
* snd_ctl_unregister_ioctl - de-register the device-specific compat 32bit
1929-
* control-ioctls
1928+
* snd_ctl_unregister_ioctl_compat - de-register the device-specific compat
1929+
* 32bit control-ioctls
19301930
* @fcn: ioctl callback function to unregister
19311931
*/
19321932
int snd_ctl_unregister_ioctl_compat(snd_kctl_ioctl_func_t fcn)

sound/core/pcm_dmaengine.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ int snd_dmaengine_pcm_close(struct snd_pcm_substream *substream)
356356
EXPORT_SYMBOL_GPL(snd_dmaengine_pcm_close);
357357

358358
/**
359-
* snd_dmaengine_pcm_release_chan_close - Close a dmaengine based PCM substream and release channel
359+
* snd_dmaengine_pcm_close_release_chan - Close a dmaengine based PCM
360+
* substream and release channel
360361
* @substream: PCM substream
361362
*
362363
* Releases the DMA channel associated with the PCM substream.

sound/core/pcm_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ void snd_pcm_set_ops(struct snd_pcm *pcm, int direction,
490490
EXPORT_SYMBOL(snd_pcm_set_ops);
491491

492492
/**
493-
* snd_pcm_sync - set the PCM sync id
493+
* snd_pcm_set_sync - set the PCM sync id
494494
* @substream: the pcm substream
495495
*
496496
* Sets the PCM sync identifier for the card.

sound/core/pcm_native.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void snd_pcm_stream_lock(struct snd_pcm_substream *substream)
112112
EXPORT_SYMBOL_GPL(snd_pcm_stream_lock);
113113

114114
/**
115-
* snd_pcm_stream_lock - Unlock the PCM stream
115+
* snd_pcm_stream_unlock - Unlock the PCM stream
116116
* @substream: PCM substream
117117
*
118118
* This unlocks the PCM stream that has been locked via snd_pcm_stream_lock().
@@ -595,7 +595,7 @@ static void snd_pcm_sync_stop(struct snd_pcm_substream *substream)
595595
}
596596

597597
/**
598-
* snd_pcm_hw_param_choose - choose a configuration defined by @params
598+
* snd_pcm_hw_params_choose - choose a configuration defined by @params
599599
* @pcm: PCM instance
600600
* @params: the hw_params instance
601601
*

sound/soc/soc-core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2341,7 +2341,7 @@ struct snd_soc_dai *snd_soc_register_dai(struct snd_soc_component *component,
23412341
}
23422342

23432343
/**
2344-
* snd_soc_unregister_dai - Unregister DAIs from the ASoC core
2344+
* snd_soc_unregister_dais - Unregister DAIs from the ASoC core
23452345
*
23462346
* @component: The component for which the DAIs should be unregistered
23472347
*/

sound/soc/soc-dapm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,7 @@ static int is_connected_input_ep(struct snd_soc_dapm_widget *widget,
12761276
}
12771277

12781278
/**
1279-
* snd_soc_dapm_get_connected_widgets - query audio path and it's widgets.
1279+
* snd_soc_dapm_dai_get_connected_widgets - query audio path and it's widgets.
12801280
* @dai: the soc DAI.
12811281
* @stream: stream direction.
12821282
* @list: list of active widgets for this stream.

0 commit comments

Comments
 (0)