Hi,
This patchset is a part of patches to reserve/release isochronous resources in pcm.hw_params/hw_free callbacks, like posted patchsets below: https://mailman.alsa-project.org/pipermail/alsa-devel/2019-June/150118.html https://mailman.alsa-project.org/pipermail/alsa-devel/2019-June/150863.html
In IEC 61883-1/6, CMP is depicted with operations of isochronous resources. The ALSA firewire-lib module implements some kernel API for CMP according to it. However, once the isochronous resources are allocated, several packet streaming can run consecutively. Deallocation of isochronous resources for each of packet streaming is not needless.
In this patchset, allocation of isochronous resources is split from establishment of connection so that CMP runs with allocated isochronous resources.
Takashi Sakamoto (6): ALSA: bebob: code rafactoring for callback functions to PCM interface ALSA: bebob: code refactoring for callback function to rawmidi interface ALSA: bebob: change the range of critical section for stream data in PCM.hw_free callback ALSA: bebob: code refactoring for error path to start duplex stream ALSA: fireworks: change the range of critical section for stream data in PCM.hw_free callback ALSA: firewire-lib: split allocation of isochronous resources from establishment of connection
sound/firewire/bebob/bebob_midi.c | 47 ++----------- sound/firewire/bebob/bebob_pcm.c | 62 +++-------------- sound/firewire/bebob/bebob_stream.c | 32 ++++++--- sound/firewire/cmp.c | 74 ++++++++++++--------- sound/firewire/cmp.h | 7 +- sound/firewire/fireworks/fireworks_pcm.c | 9 +-- sound/firewire/fireworks/fireworks_stream.c | 22 ++++-- sound/firewire/oxfw/oxfw-stream.c | 18 +++-- 8 files changed, 122 insertions(+), 149 deletions(-)