aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/hda_beep.h
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2009-11-03 08:29:50 -0500
committerTakashi Iwai <tiwai@suse.de>2009-11-16 05:35:00 -0500
commit13dab0808bb41b18888e1758a060a685deee1f30 (patch)
tree3d0828a0c537d9ba9934562631816a4671a3bf56 /sound/pci/hda/hda_beep.h
parent123c07aeddd71fbb295842a8c19866e780b9a100 (diff)
ALSA: hda_intel: Digital PC Beep - delay input device unregistration
The massive register/unregister calls for input device layer might be overkill. Delay unregister call by one HZ as workaround. Also, as benefit, beep->enabled variable is changed immediately now (not from workqueue). Signed-off-by: Jaroslav Kysela <perex@perex.cz> 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_beep.h b/sound/pci/hda/hda_beep.h
index 68465f679d8c..53eba8d8414d 100644
--- a/sound/pci/hda/hda_beep.h
+++ b/sound/pci/hda/hda_beep.h
@@ -34,7 +34,8 @@ struct hda_beep {
34 unsigned int enabled:1; 34 unsigned int enabled:1;
35 unsigned int request_enable:1; 35 unsigned int request_enable:1;
36 unsigned int linear_tone:1; /* linear tone for IDT/STAC codec */ 36 unsigned int linear_tone:1; /* linear tone for IDT/STAC codec */
37 struct work_struct register_work; /* scheduled task for beep event */ 37 struct work_struct register_work; /* registration work */
38 struct delayed_work unregister_work; /* unregistration work */
38 struct work_struct beep_work; /* scheduled task for beep event */ 39 struct work_struct beep_work; /* scheduled task for beep event */
39 struct mutex mutex; 40 struct mutex mutex;
40}; 41};