]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Use own workqueue
authorTakashi Iwai <tiwai@suse.de>
Mon, 12 Jan 2009 09:09:24 +0000 (10:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 12 Jan 2009 09:33:56 +0000 (10:33 +0100)
commita2d99a716d8ff100c1489e1b39e390366b10a922
treea3d4bff13d946744b38dce3f48ad530d23e74bf7
parentf76e62003e47b27d15e045d133ef9e2dabd2a9b8
ALSA: hda - Use own workqueue

snd-hda-intel driver used schedule_work() fot the delayed DMA pointer
updates, but this has several potential problems:
- it may block other eventsd works longer
- it may deadlock when probing fails and flush_scheduled_work() is
  called during probe callback (as probe callback itself could be
  invoked from eventd)

This patch adds an own workq for each driver instance to solve these
problems.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_beep.c
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_intel.c