ALSA: hda - bug fix on references without checking CONFIG_SND_HDA_POWER_SAVE
authorMengdong Lin <mengdong.lin@intel.com>
Fri, 24 Aug 2012 04:06:30 +0000 (12:06 +0800)
committerTakashi Iwai <tiwai@suse.de>
Fri, 24 Aug 2012 05:22:42 +0000 (07:22 +0200)
commit5d6147f10113c240845ea9e8e4e744bbadce5bcb
tree9b30d7abcbb1f641e2c0525711fc56564b0788ad
parentb8dfc4624162c0547d7f36a9df48da2d9b4bd58a
ALSA: hda - bug fix on references without checking CONFIG_SND_HDA_POWER_SAVE

The patch to support runtime PM introduced a bug:
Module parameter 'power_save_controller', and the codec flag 'd3_stop_clk'
'd3_stop_clk_ok' are defined only when HDA power save is enabled in config. But
there are references to them without checking macro CONFIG_SND_HDA_POWER_SAVE.

This patch is to fix the bug.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_intel.c