Skip to content

Commit 51bdc8b

Browse files
committed
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: 414d38b ("ALSA: hda/sigmatel: Keep power up while beep is enabled") Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 8423f0b commit 51bdc8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sound/pci/hda/patch_sigmatel.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,7 +4447,9 @@ static int stac_suspend(struct hda_codec *codec)
44474447

44484448
static int stac_check_power_status(struct hda_codec *codec, hda_nid_t nid)
44494449
{
4450+
#ifdef CONFIG_SND_HDA_INPUT_BEEP
44504451
struct sigmatel_spec *spec = codec->spec;
4452+
#endif
44514453
int ret = snd_hda_gen_check_power_status(codec, nid);
44524454

44534455
#ifdef CONFIG_SND_HDA_INPUT_BEEP

0 commit comments

Comments
 (0)