projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5db1780
)
ALSA: hda/sigmatel: Fix unused variable warning for beep power change
author
Takashi Iwai
<tiwai@suse.de>
Mon, 5 Sep 2022 13:06:30 +0000
(15:06 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:15:52 +0000
(14:15 +0200)
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
patch
|
blob
|
history
diff --git
a/sound/pci/hda/patch_sigmatel.c
b/sound/pci/hda/patch_sigmatel.c
index 066bfccd25877ec99ac08e93c3198f474a49385d..7f340f18599c98b3a070def9311f7eb639974b1c 100644
(file)
--- a/
sound/pci/hda/patch_sigmatel.c
+++ b/
sound/pci/hda/patch_sigmatel.c
@@
-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)
{
+#ifdef CONFIG_SND_HDA_INPUT_BEEP
struct sigmatel_spec *spec = codec->spec;
+#endif
int ret = snd_hda_gen_check_power_status(codec, nid);
#ifdef CONFIG_SND_HDA_INPUT_BEEP