summaryrefslogtreecommitdiff
path: root/src/mixer
diff options
context:
space:
mode:
authorAbramo Bagnara <abramo@alsa-project.org>2001-02-13 14:41:38 +0000
committerAbramo Bagnara <abramo@alsa-project.org>2001-02-13 14:41:38 +0000
commiteed38f21578f2ca843e1e5bf4d5ed8323dee7e48 (patch)
treed0f262323095bb2bad231c12f6dd843640890091 /src/mixer
parentb260b72fc998fe93e18d7f82b16d5b9e8a4721be (diff)
My bogus assumption on add_tail semantic
Diffstat (limited to 'src/mixer')
-rw-r--r--src/mixer/mixer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer/mixer.c b/src/mixer/mixer.c
index 39c19509..576d350c 100644
--- a/src/mixer/mixer.c
+++ b/src/mixer/mixer.c
@@ -267,10 +267,10 @@ int snd_mixer_elem_add(snd_mixer_elem_t *elem, snd_mixer_class_t *class)
idx = _snd_mixer_find_elem(mixer, elem, &dir);
assert(dir != 0);
if (dir > 0) {
- list_add_tail(&elem->list, &mixer->pelems[idx]->list);
+ list_add(&elem->list, &mixer->pelems[idx]->list);
idx++;
} else {
- list_add(&elem->list, &mixer->pelems[idx]->list);
+ list_add_tail(&elem->list, &mixer->pelems[idx]->list);
}
memmove(mixer->pelems + idx + 1,
mixer->pelems + idx,