Commit 51bdc8bb authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda/sigmatel: Fix unused variable warning for beep power change

The newly added stac_check_power_status() caused a compile warning
when CONFIG_SND_HDA_INPUT_BEEP is disabled.  Fix it.

Fixes: 414d38ba ("ALSA: hda/sigmatel: Keep power up while beep is enabled")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20220905130630.2845-1-tiwai@suse.deSigned-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8423f0b6
...@@ -4447,7 +4447,9 @@ static int stac_suspend(struct hda_codec *codec) ...@@ -4447,7 +4447,9 @@ static int stac_suspend(struct hda_codec *codec)
static int stac_check_power_status(struct hda_codec *codec, hda_nid_t nid) static int stac_check_power_status(struct hda_codec *codec, hda_nid_t nid)
{ {
#ifdef CONFIG_SND_HDA_INPUT_BEEP
struct sigmatel_spec *spec = codec->spec; struct sigmatel_spec *spec = codec->spec;
#endif
int ret = snd_hda_gen_check_power_status(codec, nid); int ret = snd_hda_gen_check_power_status(codec, nid);
#ifdef CONFIG_SND_HDA_INPUT_BEEP #ifdef CONFIG_SND_HDA_INPUT_BEEP
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment