diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2005-12-07 03:11:05 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-01-03 06:30:36 -0500 |
commit | 416c1079d30f1a52399b96f6772e993274b774ae (patch) | |
tree | cac70f2afaa88469db6e2ca231e4566046e0c363 /sound/core/device.c | |
parent | 156b2aa3bef17c964006c6448aadd440781d7e7d (diff) |
[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>
Diffstat (limited to 'sound/core/device.c')
-rw-r--r-- | sound/core/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/device.c b/sound/core/device.c index b1cf6ec56784..478264cab67e 100644 --- a/sound/core/device.c +++ b/sound/core/device.c | |||
@@ -193,7 +193,7 @@ int snd_device_register_all(struct snd_card *card) | |||
193 | int err; | 193 | int err; |
194 | 194 | ||
195 | snd_assert(card != NULL, return -ENXIO); | 195 | snd_assert(card != NULL, return -ENXIO); |
196 | list_for_each(list, &card->devices) { | 196 | list_for_each_prev(list, &card->devices) { |
197 | dev = snd_device(list); | 197 | dev = snd_device(list); |
198 | if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) { | 198 | if (dev->state == SNDRV_DEV_BUILD && dev->ops->dev_register) { |
199 | if ((err = dev->ops->dev_register(dev)) < 0) | 199 | if ((err = dev->ops->dev_register(dev)) < 0) |