]> 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)
committerTakashi Iwai <tiwai@suse.de>
Tue, 6 Sep 2022 09:24:02 +0000 (11:24 +0200)
commit73312ca1c27c582d3a33a321a2c7dbb42725f792
treec5999c725b93b4f6c6cbc70b5461996cd03d5c74
parent48b4b038c735f1cb3d9fbe983e4b3ec937925dc4
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: c25ca73d3991 ("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