diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-03-18 11:29:56 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-03-18 12:58:47 +0100 |
commit | e914b25e370a3a55a839ff507ed779f54431ace5 (patch) | |
tree | 73779f18794bd94de2974cf3bd4530f21c4cbd8e /sound/pci/hda/hda_beep.h | |
parent | ALSA: hda - Move beep attach/detach calls in hda_generic.c (diff) | |
download | linux-e914b25e370a3a55a839ff507ed779f54431ace5.tar.xz linux-e914b25e370a3a55a839ff507ed779f54431ace5.zip |
ALSA: hda - Fix power-saving during playing beep sound
While playing the digital beep tone, the codec shouldn't be turned
off. This patch adds proper snd_hda_power_up()/down() calls at each
time when the beep is played or off.
Also, this fixes automatically an unnecessary codec power-up at
detaching the beep device when the beep isn't being played.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_beep.h')
-rw-r--r-- | sound/pci/hda/hda_beep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_beep.h b/sound/pci/hda/hda_beep.h index 4dc6933bc655..cb88464676b6 100644 --- a/sound/pci/hda/hda_beep.h +++ b/sound/pci/hda/hda_beep.h @@ -36,6 +36,7 @@ struct hda_beep { hda_nid_t nid; unsigned int enabled:1; unsigned int linear_tone:1; /* linear tone for IDT/STAC codec */ + unsigned int playing:1; struct work_struct beep_work; /* scheduled task for beep event */ struct mutex mutex; }; |