aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_intel.c
diff options
context:
space:
mode:
authorAlexander Beregalov <a.beregalov@gmail.com>2009-06-04 05:46:16 -0400
committerTakashi Iwai <tiwai@suse.de>2009-06-04 08:21:11 -0400
commit65f759831179bb8922f2a91a989487161d476a94 (patch)
tree2e7569128a14f197642bea347a7aec2a9f95c385 /sound/pci/hda/hda_intel.c
parent018df41861475595a51d327b83fb5830462f7a53 (diff)
ALSA: hda_intel: fix build error when !PM
Fix this build error when CONFIG_PM is not set: ound/pci/hda/hda_intel.c: In function 'azx_bus_reset': sound/pci/hda/hda_intel.c:1270: error: implicit declaration of function 'snd_pcm_suspend_all' sound/pci/hda/hda_intel.c:1271: error: implicit declaration of function 'snd_hda_suspend' sound/pci/hda/hda_intel.c:1272: error: implicit declaration of function 'snd_hda_resume' Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> 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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 9f44645a1d04..4e9ea7080270 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1260,17 +1260,20 @@ static void azx_stop_chip(struct azx *chip);
1260static void azx_bus_reset(struct hda_bus *bus) 1260static void azx_bus_reset(struct hda_bus *bus)
1261{ 1261{
1262 struct azx *chip = bus->private_data; 1262 struct azx *chip = bus->private_data;
1263 int i;
1264 1263
1265 bus->in_reset = 1; 1264 bus->in_reset = 1;
1266 azx_stop_chip(chip); 1265 azx_stop_chip(chip);
1267 azx_init_chip(chip); 1266 azx_init_chip(chip);
1267#ifdef CONFIG_PM
1268 if (chip->initialized) { 1268 if (chip->initialized) {
1269 int i;
1270
1269 for (i = 0; i < AZX_MAX_PCMS; i++) 1271 for (i = 0; i < AZX_MAX_PCMS; i++)
1270 snd_pcm_suspend_all(chip->pcm[i]); 1272 snd_pcm_suspend_all(chip->pcm[i]);
1271 snd_hda_suspend(chip->bus); 1273 snd_hda_suspend(chip->bus);
1272 snd_hda_resume(chip->bus); 1274 snd_hda_resume(chip->bus);
1273 } 1275 }
1276#endif
1274 bus->in_reset = 0; 1277 bus->in_reset = 0;
1275} 1278}
1276 1279