diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-11-27 06:40:13 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-11-27 06:40:13 -0500 |
commit | 986862bdf17655d012f9b0654925dccdcc4183c9 (patch) | |
tree | 804ec0d54b5da3da0d6edde0bae2e03bba64b57a /sound/pci/hda/hda_intel.c | |
parent | 4f199629b0fba95fd5caecbf35ed68417d9a9b7a (diff) |
ALSA: hda - make some functions static
Minor clean ups: move snd_hda_codecs_inuse() into hda_intel.c and
make static. Also, make snd_hda_query_supported_pcm() static
as it's used only in hda_codec.c.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
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 |