ALSA: emu10k1: Use workqueue instead of kthread for emu1010 fw polling
authorTakashi Iwai <tiwai@suse.de>
Wed, 2 Nov 2016 17:38:39 +0000 (18:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 15 Nov 2016 07:21:19 +0000 (08:21 +0100)
commitaeaa6203b6c41d9add8932dbd95bc741839054d0
tree85e5964317663025c33f59b83754dc2958ef35e6
parent4e4dfe4c3fb2888bd96eed629220bd2e7f105f60
ALSA: emu10k1: Use workqueue instead of kthread for emu1010 fw polling

This patch is a cleanup of EMU1010 dock probing code in emu10k1 driver
to use work instead of kthread in a loop.  The work is lighter and
easier to control than kthread, in general.

Instead of a loop with the explicit sleep, we do simply
delayed-schedule the work.  At suspend/resume callbacks, the work is
canceled and restarted, respectively.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emu10k1.h
sound/pci/emu10k1/emu10k1.c
sound/pci/emu10k1/emu10k1_main.c