diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-03-16 15:09:03 (GMT) |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-03-16 15:15:33 (GMT) |
commit | 350eba43fca735733a51185f26bdc30899c64a20 (patch) | |
tree | a459a724bc2a0c74e8337fce76c3497aaa61cb7e | |
parent | 7907ae3e50613ae1c6d1a10f34fcd63f4123b93d (diff) | |
download | linux-fsl-qoriq-350eba43fca735733a51185f26bdc30899c64a20.tar.xz |
ALSA: hda - Fix build with CONFIG_PM=n
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index b064e59..33a9946 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, afg_power_state); snd_hda_codec_set_power_to_all(codec, fg, power_state, true); } +#else +#define stac92xx_suspend NULL +#define stac92xx_resume NULL +#define stac92xx_pre_resume NULL +#define stac92xx_set_power_state NULL #endif /* CONFIG_PM */ /* update mute-LED accoring to the master switch */ @@ -5588,7 +5593,9 @@ again: codec->patch_ops.set_power_state = stac92xx_set_power_state; } +#ifdef CONFIG_PM codec->patch_ops.pre_resume = stac92xx_pre_resume; +#endif } err = stac92xx_parse_auto_config(codec); @@ -5895,7 +5902,9 @@ again: codec->patch_ops.set_power_state = stac92xx_set_power_state; } +#ifdef CONFIG_PM codec->patch_ops.pre_resume = stac92xx_pre_resume; +#endif } spec->multiout.dac_nids = spec->dac_nids; |