diff options
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 6462d758e641..f13ec4c71f8a 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -1896,6 +1896,19 @@ static void azx_power_notify(struct hda_bus *bus) | |||
1896 | else if (chip->running && power_save_controller) | 1896 | else if (chip->running && power_save_controller) |
1897 | azx_stop_chip(chip); | 1897 | azx_stop_chip(chip); |
1898 | } | 1898 | } |
1899 | |||
1900 | static int snd_hda_codecs_inuse(struct hda_bus *bus) | ||
1901 | { | ||
1902 | struct hda_codec *codec; | ||
1903 | |||
1904 | list_for_each_entry(codec, &bus->codec_list, list) { | ||
1905 | if (snd_hda_codec_needs_resume(codec)) | ||
1906 | return 1; | ||
1907 | } | ||
1908 | return 0; | ||
1909 | } | ||
1910 | #else /* !CONFIG_SND_HDA_POWER_SAVE */ | ||
1911 | #define snd_hda_codecs_inuse(bus) 1 | ||
1899 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ | 1912 | #endif /* CONFIG_SND_HDA_POWER_SAVE */ |
1900 | 1913 | ||
1901 | #ifdef CONFIG_PM | 1914 | #ifdef CONFIG_PM |