diff options
| author | Tanjeff-N. Moos <tanjeff@cccmz.de> | 2021-06-17 10:36:39 +0200 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2021-06-21 17:13:26 +0200 |
| commit | 7ba3f888d07cafbad04391b915db23408c663dad (patch) | |
| tree | ba4fb25c558d3cb5b18d8e210a678fbe432dbb66 /src/control | |
| parent | ccc14ae897d170156f1c2905ea5d18a3295e7b36 (diff) | |
| download | alsa-lib-7ba3f888d07cafbad04391b915db23408c663dad.tar.gz | |
control: Minor documentation fixes.
Signed-off-by: Tanjeff-N. Moos <tanjeff@cccmz.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'src/control')
| -rw-r--r-- | src/control/cards.c | 5 | ||||
| -rw-r--r-- | src/control/control.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/control/cards.c b/src/control/cards.c index 8226c42d..6145ebcd 100644 --- a/src/control/cards.c +++ b/src/control/cards.c @@ -147,6 +147,7 @@ int snd_card_get_index(const char *string) return -EINVAL; if ((isdigit(*string) && *(string + 1) == 0) || (isdigit(*string) && isdigit(*(string + 1)) && *(string + 2) == 0)) { + /* We got an index */ if (sscanf(string, "%i", &card) != 1) return -EINVAL; if (card < 0 || card >= SND_MAX_CARDS) @@ -156,8 +157,10 @@ int snd_card_get_index(const char *string) return card; return err; } - if (string[0] == '/') /* device name */ + if (string[0] == '/') + /* We got a device name */ return snd_card_load2(string); + /* We got in ID */ for (card = 0; card < SND_MAX_CARDS; card++) { #ifdef SUPPORT_ALOAD if (! snd_card_load(card)) diff --git a/src/control/control.c b/src/control/control.c index 7cf4decb..91415b51 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -3127,7 +3127,7 @@ size_t snd_ctl_elem_value_sizeof() /** * \brief Allocate an invalid #snd_ctl_elem_value_t on the heap. * - * Allocate space for a value object on the head. The allocated memory + * Allocate space for a value object on the heap. The allocated memory * must be freed using snd_ctl_elem_value_free(). * * See snd_ctl_elem_value_t for details. |
