[ALSA] Nest sound devices
Modules: ALSA Core Make the control device parent of all other ALSA devices of a card. Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
This commit is contained in:
committed by
Jaroslav Kysela
parent
156b2aa3be
commit
416c1079d3
@@ -193,7 +193,7 @@ int snd_device_register_all(struct snd_card *card)
|
||||
int err;
|
||||
|
||||
snd_assert(card != NULL, return -ENXIO);
|
||||
list_for_each(list, &card->devices) {
|
||||
list_for_each_prev(list, &card->devices) {
|
||||
dev = snd_device(list);
|
||||
if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) {
|
||||
if ((err = dev->ops->dev_register(dev)) < 0)
|
||||
|
||||
Reference in New Issue
Block a user