]> git.itanic.dy.fi Git - linux-stable/commit
ALSA: hda/sigmatel: Fix unused variable warning for beep power change
authorTakashi Iwai <tiwai@suse.de>
Mon, 5 Sep 2022 13:06:30 +0000 (15:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:15:52 +0000 (14:15 +0200)
commit21f948cab86617501da4f97bfac197cac2b103f2
tree1ec6df7e3676c0e46f56eae8666714e91f8eb53a
parent5db17805b6ba4c34dab303f49aea3562fc25af75
ALSA: hda/sigmatel: Fix unused variable warning for beep power change

commit 51bdc8bb82525cd70feb92279c8b7660ad7948dd upstream.

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

Fixes: 414d38ba8710 ("ALSA: hda/sigmatel: Keep power up while beep is enabled")
Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20220905130630.2845-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/patch_sigmatel.c