aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2012-03-16 11:09:03 -0400
committerTakashi Iwai <tiwai@suse.de>2012-03-16 11:15:33 -0400
commit350eba43fca735733a51185f26bdc30899c64a20 (patch)
treea459a724bc2a0c74e8337fce76c3497aaa61cb7e /sound/pci
parent7907ae3e50613ae1c6d1a10f34fcd63f4123b93d (diff)
ALSA: hda - Fix build with CONFIG_PM=n
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_sigmatel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index b064e595bb60..33a9946b492c 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -5043,6 +5043,11 @@ static void stac92xx_set_power_state(struct hda_codec *codec, hda_nid_t fg,
5043 afg_power_state); 5043 afg_power_state);
5044 snd_hda_codec_set_power_to_all(codec, fg, power_state, true); 5044 snd_hda_codec_set_power_to_all(codec, fg, power_state, true);
5045} 5045}
5046#else
5047#define stac92xx_suspend NULL
5048#define stac92xx_resume NULL
5049#define stac92xx_pre_resume NULL
5050#define stac92xx_set_power_state NULL
5046#endif /* CONFIG_PM */ 5051#endif /* CONFIG_PM */
5047 5052
5048/* update mute-LED accoring to the master switch */ 5053/* update mute-LED accoring to the master switch */
@@ -5588,7 +5593,9 @@ again:
5588 codec->patch_ops.set_power_state = 5593 codec->patch_ops.set_power_state =
5589 stac92xx_set_power_state; 5594 stac92xx_set_power_state;
5590 } 5595 }
5596#ifdef CONFIG_PM
5591 codec->patch_ops.pre_resume = stac92xx_pre_resume; 5597 codec->patch_ops.pre_resume = stac92xx_pre_resume;
5598#endif
5592 } 5599 }
5593 5600
5594 err = stac92xx_parse_auto_config(codec); 5601 err = stac92xx_parse_auto_config(codec);
@@ -5895,7 +5902,9 @@ again:
5895 codec->patch_ops.set_power_state = 5902 codec->patch_ops.set_power_state =
5896 stac92xx_set_power_state; 5903 stac92xx_set_power_state;
5897 } 5904 }
5905#ifdef CONFIG_PM
5898 codec->patch_ops.pre_resume = stac92xx_pre_resume; 5906 codec->patch_ops.pre_resume = stac92xx_pre_resume;
5907#endif
5899 } 5908 }
5900 5909
5901 spec->multiout.dac_nids = spec->dac_nids; 5910 spec->multiout.dac_nids = spec->dac_nids;