]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/pci/hda/hda_generic.c
Merge branch 'for-next' into for-linus
[karo-tx-linux.git] / sound / pci / hda / hda_generic.c
index 7e785487c67b7d180920b4921997aeff000cf5ee..e7c8f4f076d5f3297946b088bc31cf7ecc0d66ad 100644 (file)
@@ -3973,6 +3973,8 @@ static hda_nid_t set_path_power(struct hda_codec *codec, hda_nid_t nid,
 
        for (n = 0; n < spec->paths.used; n++) {
                path = snd_array_elem(&spec->paths, n);
+               if (!path->depth)
+                       continue;
                if (path->path[0] == nid ||
                    path->path[path->depth - 1] == nid) {
                        bool pin_old = path->pin_enabled;