Skip to content

Commit

Permalink
ALSA: hda - Add CONFIG_SND_HDA_POWER_SAVE to stac_vrefout_set()
Browse files Browse the repository at this point in the history
In commit 45eebda, 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>
  • Loading branch information
Wang Shaoyan authored and Takashi Iwai committed Aug 10, 2011
1 parent c9c9e4e commit 96b6359
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ static int stac92xx_smux_enum_put(struct snd_kcontrol *kcontrol,
return 0;
}

#ifdef CONFIG_SND_HDA_POWER_SAVE
static int stac_vrefout_set(struct hda_codec *codec,
hda_nid_t nid, unsigned int new_vref)
{
Expand All @@ -696,6 +697,7 @@ static int stac_vrefout_set(struct hda_codec *codec,

return 1;
}
#endif

static unsigned int stac92xx_vref_set(struct hda_codec *codec,
hda_nid_t nid, unsigned int new_vref)
Expand Down

0 comments on commit 96b6359

Please sign in to comment.