mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
control: fix the subdevice fields comparison in snd_ctl_elem_id_compare()
This commit is contained in:
parent
ad5f255b47
commit
74422643ee
1 changed files with 1 additions and 1 deletions
|
|
@ -1844,7 +1844,7 @@ int snd_ctl_elem_id_compare(snd_ctl_elem_id_t *id1, const snd_ctl_elem_id_t *id2
|
|||
d = id1->device - id2->device;
|
||||
if (d != 0)
|
||||
return d;
|
||||
d = id2->subdevice - id2->subdevice;
|
||||
d = id1->subdevice - id2->subdevice;
|
||||
if (d != 0)
|
||||
return d;
|
||||
d = strcmp((const char *)id1->name, (const char *)id2->name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue