alsa: fix a few comments
authorLennart Poettering <lennart@poettering.net>
Wed, 1 Jul 2009 18:20:06 +0000 (20:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 1 Jul 2009 18:20:06 +0000 (20:20 +0200)
src/modules/alsa/alsa-sink.c

index c584362..0cde694 100644 (file)
@@ -169,10 +169,10 @@ static int reserve_init(struct userdata *u, const char *dname) {
     if (pa_in_system_mode())
         return 0;
 
-    /* We are resuming, try to lock the device */
     if (!(rname = pa_alsa_get_reserve_name(dname)))
         return 0;
 
+    /* We are resuming, try to lock the device */
     u->reserve = pa_reserve_wrapper_get(u->core, rname);
     pa_xfree(rname);
 
@@ -222,7 +222,6 @@ static int reserve_monitor_init(struct userdata *u, const char *dname) {
     if (pa_in_system_mode())
         return 0;
 
-    /* We are resuming, try to lock the device */
     if (!(rname = pa_alsa_get_reserve_name(dname)))
         return 0;