diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-09-03 12:41:27 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-09-09 18:33:59 +0200 |
commit | a2e527c5a3ebcf248b51705ef44f6700403fd8e3 (patch) | |
tree | 9a2390e84ddaee045b7896dae3be4de435bce510 /sound/pci/riptide/riptide.c | |
parent | 4adab848ae752cc92c4de1403144002f369b079f (diff) | |
download | lwn-a2e527c5a3ebcf248b51705ef44f6700403fd8e3.tar.gz lwn-a2e527c5a3ebcf248b51705ef44f6700403fd8e3.zip |
ALSA: hdspm: Replace tasklet with work
The tasklet is an old API that should be deprecated, usually can be
converted to another decent API. In HDSP-MADI driver, a tasklet is
still used for offloading the MIDI I/O handling (optional via mixer
switch). It can be achieved gracefully with a work queued, too.
This patch replaces the tasklet usage in HDSP-MADI driver with a
simple work. The conversion is fairly straightforward. The only
significant difference is that the work initialization is moved to the
right place in snd_hdspm_create() and cancel_work_sync() is always
called in snd_hdspm_free() to assure killing the pending works.
Link: https://lore.kernel.org/r/20200903104131.21097-8-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/riptide/riptide.c')
0 files changed, 0 insertions, 0 deletions