diff options
Diffstat (limited to 'sound/core/rawmidi.c')
-rw-r--r-- | sound/core/rawmidi.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/core/rawmidi.c b/sound/core/rawmidi.c index 1bb95aeea084..7b596b5751db 100644 --- a/sound/core/rawmidi.c +++ b/sound/core/rawmidi.c | |||
@@ -863,7 +863,7 @@ static int snd_rawmidi_control_ioctl(struct snd_card *card, | |||
863 | * | 863 | * |
864 | * Reads the data from the internal buffer. | 864 | * Reads the data from the internal buffer. |
865 | * | 865 | * |
866 | * Returns the size of read data, or a negative error code on failure. | 866 | * Return: The size of read data, or a negative error code on failure. |
867 | */ | 867 | */ |
868 | int snd_rawmidi_receive(struct snd_rawmidi_substream *substream, | 868 | int snd_rawmidi_receive(struct snd_rawmidi_substream *substream, |
869 | const unsigned char *buffer, int count) | 869 | const unsigned char *buffer, int count) |
@@ -1024,8 +1024,8 @@ static ssize_t snd_rawmidi_read(struct file *file, char __user *buf, size_t coun | |||
1024 | /** | 1024 | /** |
1025 | * snd_rawmidi_transmit_empty - check whether the output buffer is empty | 1025 | * snd_rawmidi_transmit_empty - check whether the output buffer is empty |
1026 | * @substream: the rawmidi substream | 1026 | * @substream: the rawmidi substream |
1027 | * | 1027 | * |
1028 | * Returns 1 if the internal output buffer is empty, 0 if not. | 1028 | * Return: 1 if the internal output buffer is empty, 0 if not. |
1029 | */ | 1029 | */ |
1030 | int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream) | 1030 | int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream) |
1031 | { | 1031 | { |
@@ -1055,7 +1055,7 @@ int snd_rawmidi_transmit_empty(struct snd_rawmidi_substream *substream) | |||
1055 | * and call snd_rawmidi_transmit_ack() after the transmission is | 1055 | * and call snd_rawmidi_transmit_ack() after the transmission is |
1056 | * finished. | 1056 | * finished. |
1057 | * | 1057 | * |
1058 | * Returns the size of copied data, or a negative error code on failure. | 1058 | * Return: The size of copied data, or a negative error code on failure. |
1059 | */ | 1059 | */ |
1060 | int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, | 1060 | int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, |
1061 | unsigned char *buffer, int count) | 1061 | unsigned char *buffer, int count) |
@@ -1107,7 +1107,7 @@ int snd_rawmidi_transmit_peek(struct snd_rawmidi_substream *substream, | |||
1107 | * the given size and updates the condition. | 1107 | * the given size and updates the condition. |
1108 | * Call after the transmission is finished. | 1108 | * Call after the transmission is finished. |
1109 | * | 1109 | * |
1110 | * Returns the advanced size if successful, or a negative error code on failure. | 1110 | * Return: The advanced size if successful, or a negative error code on failure. |
1111 | */ | 1111 | */ |
1112 | int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count) | 1112 | int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count) |
1113 | { | 1113 | { |
@@ -1140,7 +1140,7 @@ int snd_rawmidi_transmit_ack(struct snd_rawmidi_substream *substream, int count) | |||
1140 | * | 1140 | * |
1141 | * Copies data from the buffer to the device and advances the pointer. | 1141 | * Copies data from the buffer to the device and advances the pointer. |
1142 | * | 1142 | * |
1143 | * Returns the copied size if successful, or a negative error code on failure. | 1143 | * Return: The copied size if successful, or a negative error code on failure. |
1144 | */ | 1144 | */ |
1145 | int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream, | 1145 | int snd_rawmidi_transmit(struct snd_rawmidi_substream *substream, |
1146 | unsigned char *buffer, int count) | 1146 | unsigned char *buffer, int count) |
@@ -1438,7 +1438,7 @@ static int snd_rawmidi_alloc_substreams(struct snd_rawmidi *rmidi, | |||
1438 | * Creates a new rawmidi instance. | 1438 | * Creates a new rawmidi instance. |
1439 | * Use snd_rawmidi_set_ops() to set the operators to the new instance. | 1439 | * Use snd_rawmidi_set_ops() to set the operators to the new instance. |
1440 | * | 1440 | * |
1441 | * Returns zero if successful, or a negative error code on failure. | 1441 | * Return: Zero if successful, or a negative error code on failure. |
1442 | */ | 1442 | */ |
1443 | int snd_rawmidi_new(struct snd_card *card, char *id, int device, | 1443 | int snd_rawmidi_new(struct snd_card *card, char *id, int device, |
1444 | int output_count, int input_count, | 1444 | int output_count, int input_count, |