mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fixes...
This commit is contained in:
parent
47b0531d86
commit
4eae8e7b32
5 changed files with 90 additions and 77 deletions
|
|
@ -75,11 +75,11 @@ int snd_card_name(const char *string)
|
|||
void *handle;
|
||||
struct snd_ctl_hw_info info;
|
||||
|
||||
if (!string)
|
||||
return -EINVAL;
|
||||
bitmask = snd_cards_mask();
|
||||
if (!bitmask)
|
||||
return -ENODEV;
|
||||
if (!string)
|
||||
return -EINVAL;
|
||||
if ((isdigit(*string) && *(string + 1) == 0) ||
|
||||
(isdigit(*string) && isdigit(*(string + 1)) && *(string + 2) == 0)) {
|
||||
sscanf(string, "%i", &card);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue