ALSA: hda: beep: Simplify keep-power-at-enable behavior
authorTakashi Iwai <tiwai@suse.de>
Tue, 6 Sep 2022 09:23:06 +0000 (11:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 6 Sep 2022 09:24:02 +0000 (11:24 +0200)
commit4c8d695cb9bc5f6fd298a586602947b2fc099a64
treec5999c725b93b4f6c6cbc70b5461996cd03d5c74
parent6392dcd1d0c7034ccf630ec55fc9e5810ecadf3b
ALSA: hda: beep: Simplify keep-power-at-enable behavior

The recent fix for IDT codecs to keep the power up while the beep is
enabled can be better integrated into the beep helper code.
This patch cleans up the code with refactoring.

Fixes: 414d38ba8710 ("ALSA: hda/sigmatel: Keep power up while beep is enabled")
Link: https://lore.kernel.org/r/20220906092306.26183-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_beep.h
sound/pci/hda/patch_sigmatel.c