]> git.baikalelectronics.ru Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:29 +0000 (13:22 +0200)
commitd8e113e341d74ad0bb3b797373f91f4c318a841e
treee55151d8009ecff220e9b8456a38a709980206b9
parent4802d927eb2a52c2679560f1418be95c664084b7
ALSA: hda: beep: Simplify keep-power-at-enable behavior

[ Upstream commit 4ac62a6fa730c4ffa6213c76269e1f8c3b4a26d2 ]

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: 1d24d288c707 ("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>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_beep.h
sound/pci/hda/patch_sigmatel.c