You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
ALSA: hda/sigmatel: Fix unused variable warning for beep power change
commit51bdc8bb82upstream. The newly added stac_check_power_status() caused a compile warning when CONFIG_SND_HDA_INPUT_BEEP is disabled. Fix it. Fixes:414d38ba87("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9f267393b0
commit
ca5539d421
@@ -4451,7 +4451,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
|
||||
|
||||
Reference in New Issue
Block a user