documentation fixes
Subsystems (3)
cover documentation fixes
Hi,
here is a few more minor fixes for kerneldoc comments. Per request from Vinod, uapid/sound/compress_*.h are included, too.
[PATCH 1/3] ALSA: doc: Fix enum snd_jack_types comments [PATCH 2/3] ALSA: doc: Fix uapi/sound/compress_offload.h kerneldoc [PATCH 3/3] ALSA: doc: Include uapi/sound/compress_*.h, too
Takashi
PATCH 1/3 ALSA: doc: Fix enum snd_jack_types comments
Follow the proper kerneldoc rule, and complete enum item comments.
Signed-off-by Takashi Iwai <[email protected]>
--- include/sound/jack.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-)
include/sound/jack.h +15 -1
@@ -28,7 +28,21 @@struct input_dev ;/** -* enum snd_jack_types: Jack types which can be reported +* enum snd_jack_types - Jack types which can be reported +* @SND_JACK_HEADPHONE: Headphone +* @SND_JACK_MICROPHONE: Microphone +* @SND_JACK_HEADSET: Headset +* @SND_JACK_LINEOUT: Line out +* @SND_JACK_MECHANICAL: Mechanical switch +* @SND_JACK_VIDEOOUT: Video out +* @SND_JACK_AVOUT: AV (Audio Video) out +* @SND_JACK_LINEIN: Line in +* @SND_JACK_BTN_0: Button 0 +* @SND_JACK_BTN_1: Button 1 +* @SND_JACK_BTN_2: Button 2 +* @SND_JACK_BTN_3: Button 3 +* @SND_JACK_BTN_4: Button 4 +* @SND_JACK_BTN_5: Button 5 * * These values are used as a bitmask. *
Signature · 1 line
2.1.2
PATCH 2/3 ALSA: doc: Fix uapi/sound/compress_offload.h kerneldoc comments
In reply to Takashi Iwaiso that make htmldocs works properly.
Since kerneldoc can't handle noname enum properly, name enum sndrv_compress_encoder.
Signed-off-by Takashi Iwai <[email protected]>
--- include/uapi/sound/compress_offload.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-)
include/uapi/sound/compress_offload.h +9 -8
@@ -32,7 +32,7 @@#define SNDRV_COMPRESS_VERSION SNDRV_PROTOCOL_VERSION(0, 1, 2)/** -* struct snd_compressed_buffer: compressed buffer +* struct snd_compressed_buffer - compressed buffer * @fragment_size: size of buffer fragment in bytes * @fragments: number of such fragments */
@@ -42,7 +42,7 @@ struct snd_compressed_buffer { } __attribute__((packed, aligned(4)));/** -* struct snd_compr_params: compressed stream params +* struct snd_compr_params - compressed stream params * @buffer: buffer description * @codec: codec parameters * @no_wake_mode: dont wake on fragment elapsed
@@ -54,7 +54,7 @@ struct snd_compr_params { } __attribute__((packed, aligned(4)));/** -* struct snd_compr_tstamp: timestamp descriptor +* struct snd_compr_tstamp - timestamp descriptor * @byte_offset: Byte offset in ring buffer to DSP * @copied_total: Total number of bytes copied from/to ring buffer to/by DSP * @pcm_frames: Frames decoded or encoded by DSP. This field will evolve by
@@ -73,7 +73,7 @@ struct snd_compr_tstamp { } __attribute__((packed, aligned(4)));/** -* struct snd_compr_avail: avail descriptor +* struct snd_compr_avail - avail descriptor * @avail: Number of bytes available in ring buffer for writing/reading * @tstamp: timestamp infomation */
@@ -88,7 +88,7 @@ enum snd_compr_direction { };/** -* struct snd_compr_caps: caps descriptor +* struct snd_compr_caps - caps descriptor * @codecs: pointer to array of codecs * @direction: direction supported. Of type snd_compr_direction * @min_fragment_size: minimum fragment supported by DSP
@@ -110,7 +110,7 @@ struct snd_compr_caps { } __attribute__((packed, aligned(4)));/** -* struct snd_compr_codec_caps: query capability of codec +* struct snd_compr_codec_caps - query capability of codec * @codec: codec for which capability is queried * @num_descriptors: number of codec descriptors * @descriptor: array of codec capability descriptor
@@ -122,18 +122,19 @@ struct snd_compr_codec_caps { } __attribute__((packed, aligned(4)));/** +* enum sndrv_compress_encoder * @SNDRV_COMPRESS_ENCODER_PADDING: no of samples appended by the encoder at the * end of the track * @SNDRV_COMPRESS_ENCODER_DELAY: no of samples inserted by the encoder at the * beginning of the track */ -enum { +enum sndrv_compress_encoder {SNDRV_COMPRESS_ENCODER_PADDING =1 ,SNDRV_COMPRESS_ENCODER_DELAY =2 , };/** -* struct snd_compr_metadata: compressed stream metadata +* struct snd_compr_metadata - compressed stream metadata * @key: key id * @value: key value */
Signature · 1 line
2.1.2
PATCH 3/3 ALSA: doc: Include uapi/sound/compress_*.h, too
In reply to Takashi IwaiSigned-off-by Takashi Iwai <[email protected]>
--- Documentation/DocBook/alsa-driver-api.tmpl | 2 ++ 1 file changed, 2 insertions(+)
Documentation/DocBook/alsa-driver-api.tmpl +2 -0
@@ -99,6 +99,8 @@ <chapter><title>Compress Offload</title> <sect1><title>Compress Offload API</title> !Esound/core/compress_offload.c +!Iinclude/uapi/sound/compress_offload.h +!Iinclude/uapi/sound/compress_params.h !Iinclude/sound/compress_driver.h </sect1> </chapter>
Signature · 1 line
2.1.2