]> 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)
commit46ee4dd700d79b7a76fd7acefbe4b09e553027c3
treefd8f897675d2bfc59aea6de8eabcde89983db674
parentd15a019949aa6e9816d8549eb37084fb3e6acb3b
ALSA: hda/sigmatel: Fix unused variable warning for beep power change

commit 20c7793069509e72a37859a9e58169a793aeed45 upstream.

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

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