mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
namehint: add missing list->card initialization
list->card is wrongly assumed to be initialized, but the previous initialization is within a conditional that is false when only card-independent devices are found. (This is the case when searching for mixers on my system; the end result is that the "pulse" mixer is listed three times.) Signed-off-by: John Lindgren <john.lindgren@tds.net> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
0bff868580
commit
592bd1e98b
1 changed files with 1 additions and 0 deletions
|
|
@ -453,6 +453,7 @@ static int add_card(struct hint_list *list, int card)
|
||||||
if (err == -EXDEV)
|
if (err == -EXDEV)
|
||||||
continue;
|
continue;
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
|
list->card = card;
|
||||||
list->device = -1;
|
list->device = -1;
|
||||||
err = try_config(list, list->siface, str);
|
err = try_config(list, list->siface, str);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue