]> 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)
commit4ac62a6fa730c4ffa6213c76269e1f8c3b4a26d2
treec5999c725b93b4f6c6cbc70b5461996cd03d5c74
parentf43bef2b4ad379c9262cf359b8afd0dd080e4bc3
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: 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>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_beep.h
sound/pci/hda/patch_sigmatel.c