[ALSA] pcm_native: lockdep warning when launching jack
[safe/jmp/linux-2.6] / sound / core / pcm_native.c
index 42a039c..a96733a 100644 (file)
@@ -718,7 +718,8 @@ static int snd_pcm_action_group(struct action_ops *ops,
 
        snd_pcm_group_for_each_entry(s, substream) {
                if (do_lock && s != substream)
-                       spin_lock(&s->self_group.lock);
+                       spin_lock_nested(&s->self_group.lock,
+                                        SINGLE_DEPTH_NESTING);
                res = ops->pre_action(s, state);
                if (res < 0)
                        goto _unlock;