mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
control: Minor documentation fixes.
Signed-off-by: Tanjeff-N. Moos <tanjeff@cccmz.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ccc14ae897
commit
7ba3f888d0
3 changed files with 12 additions and 4 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue