diff options
author | Wang Shaoyan <wangshaoyan.pt@taobao.com> | 2011-08-10 04:01:04 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-10 05:22:08 -0400 |
commit | 96b635977984a88ecdb9cc76b8a54db7297f36e0 (patch) | |
tree | 51ac6aa3b911b1a18e15981c7cd27823fe635760 /sound/pci/hda | |
parent | c9c9e4e4252c9d554222906e4a843efd27c0ac96 (diff) |
ALSA: hda - Add CONFIG_SND_HDA_POWER_SAVE to stac_vrefout_set()
In commit 45eebda7, it add new function stac_vrefout_set, but it
is only used in code between CONFIG_SND_HDA_POWER_SAVE macro, so
add the macro to avoid such warning:
sound/pci/hda/patch_sigmatel.c:676:12: warning: 'stac_vrefout_set' defined but not used
Signed-off-by: Wang Shaoyan <wangshaoyan.pt@taobao.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/patch_sigmatel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c index aa376b59c006..5145b663ef6e 100644 --- a/sound/pci/hda/patch_sigmatel.c +++ b/sound/pci/hda/patch_sigmatel.c | |||
@@ -673,6 +673,7 @@ static int stac92xx_smux_enum_put(struct snd_kcontrol *kcontrol, | |||
673 | return 0; | 673 | return 0; |
674 | } | 674 | } |
675 | 675 | ||
676 | #ifdef CONFIG_SND_HDA_POWER_SAVE | ||
676 | static int stac_vrefout_set(struct hda_codec *codec, | 677 | static int stac_vrefout_set(struct hda_codec *codec, |
677 | hda_nid_t nid, unsigned int new_vref) | 678 | hda_nid_t nid, unsigned int new_vref) |
678 | { | 679 | { |
@@ -696,6 +697,7 @@ static int stac_vrefout_set(struct hda_codec *codec, | |||
696 | 697 | ||
697 | return 1; | 698 | return 1; |
698 | } | 699 | } |
700 | #endif | ||
699 | 701 | ||
700 | static unsigned int stac92xx_vref_set(struct hda_codec *codec, | 702 | static unsigned int stac92xx_vref_set(struct hda_codec *codec, |
701 | hda_nid_t nid, unsigned int new_vref) | 703 | hda_nid_t nid, unsigned int new_vref) |