Commit 96b635977984a88ecdb9cc76b8a54db7297f36e0
Committed by
Takashi Iwai
1 parent
c9c9e4e425
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff
sound/pci/hda/patch_sigmatel.c
| ... | ... | @@ -673,6 +673,7 @@ |
| 673 | 673 | return 0; |
| 674 | 674 | } |
| 675 | 675 | |
| 676 | +#ifdef CONFIG_SND_HDA_POWER_SAVE | |
| 676 | 677 | static int stac_vrefout_set(struct hda_codec *codec, |
| 677 | 678 | hda_nid_t nid, unsigned int new_vref) |
| 678 | 679 | { |
| ... | ... | @@ -696,6 +697,7 @@ |
| 696 | 697 | |
| 697 | 698 | return 1; |
| 698 | 699 | } |
| 700 | +#endif | |
| 699 | 701 | |
| 700 | 702 | static unsigned int stac92xx_vref_set(struct hda_codec *codec, |
| 701 | 703 | hda_nid_t nid, unsigned int new_vref) |