summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorMike Waychison <mikew@google.com>2011-04-20 12:04:36 -0700
committerTakashi Iwai <tiwai@suse.de>2011-04-20 21:24:31 +0200
commit1c7276cfc04b1a5b296b691c2e07297a4f6c19aa (patch)
treea526127048ac72f2dfc2c15f1ef5c8cb444c193f /sound
parent6981d184376e74391c23c116a068f8d1305f0e57 (diff)
downloadlinux-3.10-1c7276cfc04b1a5b296b691c2e07297a4f6c19aa.tar.gz
linux-3.10-1c7276cfc04b1a5b296b691c2e07297a4f6c19aa.tar.bz2
linux-3.10-1c7276cfc04b1a5b296b691c2e07297a4f6c19aa.zip
ALSA: hda - Fix unused warnings when !SND_HDA_NEEDS_RESUME
When SND_HDA_NEEDS_RESUME is not defined, the compiler identifies that the following symbols are static but not used: restore_shutup_pins hda_cleanup_all_streams Fix warnings by adding SND_HDA_NEEDS_RESUME guards. Signed-off-by: Mike Waychison <mikew@google.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_codec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 2c79e96d032..d7d94460308 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -937,6 +937,7 @@ void snd_hda_shutup_pins(struct hda_codec *codec)
}
EXPORT_SYMBOL_HDA(snd_hda_shutup_pins);
+#ifdef SND_HDA_NEEDS_RESUME
/* Restore the pin controls cleared previously via snd_hda_shutup_pins() */
static void restore_shutup_pins(struct hda_codec *codec)
{
@@ -953,6 +954,7 @@ static void restore_shutup_pins(struct hda_codec *codec)
}
codec->pins_shutup = 0;
}
+#endif
static void init_hda_cache(struct hda_cache_rec *cache,
unsigned int record_size);
@@ -1329,6 +1331,7 @@ static void purify_inactive_streams(struct hda_codec *codec)
}
}
+#ifdef SND_HDA_NEEDS_RESUME
/* clean up all streams; called from suspend */
static void hda_cleanup_all_streams(struct hda_codec *codec)
{
@@ -1340,6 +1343,7 @@ static void hda_cleanup_all_streams(struct hda_codec *codec)
really_cleanup_stream(codec, p);
}
}
+#endif
/*
* amp access functions