]> git.baikalelectronics.ru Git - kernel.git/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>
Wed, 28 Sep 2022 09:04:00 +0000 (11:04 +0200)
commite8bf3ae64b026867e85ad629497ee695889700fb
treefd8f897675d2bfc59aea6de8eabcde89983db674
parentfa94b4ab659fd3116a779457cb0724f7ae5ad9fe
ALSA: hda/sigmatel: Fix unused variable warning for beep power change

commit d718e9809d90339d2a2754e20d29b72a0c04cc0d upstream.

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

Fixes: c25ca73d3991 ("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