linux/sound/firewire/fireface
Takashi Sakamoto 55162d2bb0 ALSA: fireface: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks
Once allocated, isochronous resources are available for packet
streaming, even if the streaming is cancelled. For this reason,
current implementation handles allocation of the resources and
starting packet streaming at the same time. However, this brings
complicated procedure to start packet streaming.

This commit separates the allocation and starting. The allocation is
done in pcm.hw_params callback and available till pcm.hw_free callback.
Even if any XRUN occurs, pcm.prepare callback is done to restart
packet streaming for allocated the resources.

There are two points to stop packet streaming; in pcm.hw_params and
pcm.prepare callbacks.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-06-11 11:36:24 +02:00
..
amdtp-ff.c locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_ONCE()/WRITE_ONCE() 2017-10-25 11:01:08 +02:00
ff-hwdep.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
ff-midi.c ALSA: fireface: support rx MIDI functionality for Fireface UCX 2019-01-22 17:20:56 +01:00
ff-pcm.c ALSA: fireface: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks 2019-06-11 11:36:24 +02:00
ff-proc.c ALSA: firewire: Remove superfluous snd_info_register() calls 2019-02-06 18:11:38 +01:00
ff-protocol-former.c ALSA: fireface: support allocate_resources operation in ff400 protocol 2019-06-11 11:36:23 +02:00
ff-protocol-latter.c ALSA: fireface: support allocate_resources operation in latter protocol 2019-06-11 11:36:24 +02:00
ff-stream.c ALSA: fireface: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks 2019-06-11 11:36:24 +02:00
ff-transaction.c ALSA: fireface: comment cleanup about destination address of async transactions for MIDI messages 2019-01-24 14:39:32 +01:00
ff.c ALSA: fireface: support rx MIDI functionality for Fireface UCX 2019-01-22 17:20:56 +01:00
ff.h ALSA: fireface: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks 2019-06-11 11:36:24 +02:00
Makefile ALSA: fireface: add support for Fireface UCX 2019-01-21 15:12:25 +01:00