mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
Fix device name listing with card = -1
Fixed the device name listing with card = -1, such as aplay -L.
This commit is contained in:
parent
9df5c28f55
commit
10e3360575
1 changed files with 1 additions and 2 deletions
|
|
@ -527,8 +527,7 @@ int snd_device_name_hint(int card, const char *iface, char ***hints)
|
||||||
if (card >= 0) {
|
if (card >= 0) {
|
||||||
err = add_card(&list, card);
|
err = add_card(&list, card);
|
||||||
} else {
|
} else {
|
||||||
err = get_card_name(&list, card);
|
err = snd_card_next(&card);
|
||||||
err = err >= 0 ? snd_card_next(&card) : err;
|
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
goto __error;
|
goto __error;
|
||||||
while (card >= 0) {
|
while (card >= 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue