]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: line6: variax: Rewrite complex timer & work combo with a delayed work
authorTakashi Iwai <tiwai@suse.de>
Wed, 8 May 2019 13:55:36 +0000 (15:55 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 28 May 2019 06:59:26 +0000 (08:59 +0200)
commit97dfa28e9626bc20605f6268c8174027b3ca180c
tree3d7a731b7216ce63bc632c21992b525a38ccc91d
parent3450ebbeb2b92eef5bcd6ee4985326d95271125c
ALSA: line6: variax: Rewrite complex timer & work combo with a delayed work

Variax driver had a very complex and staged startup sequence using
multiple timers and a work.  This patch simplifies the procedure to a
single delayed work.

Now the startup stage consists of:
- VARIAX_STARTUP_VERSIONREQ:
  requesting the version and the message handler raises up to the next
  stage upon receiving the reply.  The request is repeated until a
  reply arrives.
- VARIAX_STARTUP_ACTIVATE:
  does activation, and queue for the next stage.
- VARIAX_STARTUP_SETUP:
  registers the card.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/variax.c