ALSA: hda - Allow runtime PM for controller if component notifier is used
[linux-2.6-block.git] / sound / pci / hda / patch_hdmi.c
index 933c7bf47ef666f2bc093f590980beb04ba7c75f..83b8b9d27711503e45d16a103cdc003646220322 100644 (file)
@@ -2542,8 +2542,10 @@ static void generic_acomp_init(struct hda_codec *codec,
        spec->port2pin = port2pin;
        setup_drm_audio_ops(codec, ops);
        if (!snd_hdac_acomp_init(&codec->bus->core, &spec->drm_audio_ops,
-                                match_bound_vga, 0))
+                                match_bound_vga, 0)) {
                spec->acomp_registered = true;
+               codec->bus->keep_power = 0;
+       }
 }
 
 /*