ALSA: firewire-lib: taskletize the snd_pcm_period_elapsed() call
authorClemens Ladisch <clemens@ladisch.de>
Sun, 13 May 2012 20:03:09 +0000 (22:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 14 May 2012 08:43:30 +0000 (10:43 +0200)
commit76fb87894828756e069a43ce55f775a6c893a53d
tree270c4ca71a84ace95f7aef751477427365f395e3
parent7df4a691fb6645405c9d3dad8d27f8e5e3451e00
ALSA: firewire-lib: taskletize the snd_pcm_period_elapsed() call

The following patch might introduce this call chain:
  PCM .pointer callback
  + fw_iso_context_flush_completions
    + packet callback
      + snd_pcm_period_elapsed
        + PCM .pointer callback
Recursive calls to the pointer callback are not possible due to the PCM
group locking, so avoid this by moving the period notification into
a separate tasklet.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp.c
sound/firewire/amdtp.h