]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - sound/hda/hdac_device.c
ALSA: hda: fix a runtime pm issue in SOF when integrated GPU is disabled
[people/arne_f/kernel.git] / sound / hda / hdac_device.c
index 19deb306facb7c771f6bd3a2cf0ea3f1f7c57131..4a843eb7cc940e0bf16e3809721bdc39c2df7ae7 100644 (file)
@@ -123,6 +123,8 @@ EXPORT_SYMBOL_GPL(snd_hdac_device_init);
 void snd_hdac_device_exit(struct hdac_device *codec)
 {
        pm_runtime_put_noidle(&codec->dev);
+       /* keep balance of runtime PM child_count in parent device */
+       pm_runtime_set_suspended(&codec->dev);
        snd_hdac_bus_remove_device(codec->bus, codec);
        kfree(codec->vendor_name);
        kfree(codec->chip_name);