]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 24 Nov 2022 13:24:24 +0000 (14:24 +0100)
commit70fd9e53125ac2e48ca56011e961e98f52fc36cc
treea67c6adee297f980e81841e6d6519a899a52a768
parentd05707ae0a76a23b6ab29353a6d894d1111e710f
ALSA: hda: beep: Simplify keep-power-at-enable behavior

BugLink: https://bugs.launchpad.net/bugs/1996825
[ Upstream commit 4c8d695cb9bc5f6fd298a586602947b2fc099a64 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_beep.h
sound/pci/hda/patch_sigmatel.c