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>
This commit is contained in:
@@ -1896,6 +1896,19 @@ static void azx_power_notify(struct hda_bus *bus)
|
||||
else if (chip->running && power_save_controller)
|
||||
azx_stop_chip(chip);
|
||||
}
|
||||
|
||||
static int snd_hda_codecs_inuse(struct hda_bus *bus)
|
||||
{
|
||||
struct hda_codec *codec;
|
||||
|
||||
list_for_each_entry(codec, &bus->codec_list, list) {
|
||||
if (snd_hda_codec_needs_resume(codec))
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#else /* !CONFIG_SND_HDA_POWER_SAVE */
|
||||
#define snd_hda_codecs_inuse(bus) 1
|
||||
#endif /* CONFIG_SND_HDA_POWER_SAVE */
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
Reference in New Issue
Block a user