diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-06-15 11:11:01 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-06-17 08:18:36 +0200 |
commit | 7bc93821a70adc621df443c8b7a4745023c36e7c (patch) | |
tree | 0474e9b97389716fb9e1320d6ceeba6b61be03d2 /sound/firewire/cmp.h | |
parent | ALSA: fireworks: change the range of critical section for stream data in PCM.... (diff) | |
download | linux-7bc93821a70adc621df443c8b7a4745023c36e7c.tar.xz linux-7bc93821a70adc621df443c8b7a4745023c36e7c.zip |
ALSA: firewire-lib: split allocation of isochronous resources from establishment of connection
In current implementation, establishment connection corresponds to
allocation of isochronous resources. Although this is an ideal
implementation of CMP described in IEC 61883-1, it's not enough
efficient to recover PCM substream multiplexed in packet streaming.
The packet streaming can always restart on the same allocated
isochronous resources even if the previous packet streaming
corrupted.
This commit splits allocation of isochronous resources from
establishment of connection so that CMP runs with allocated
isochronous resources.
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/cmp.h')
-rw-r--r-- | sound/firewire/cmp.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sound/firewire/cmp.h b/sound/firewire/cmp.h index b60b415caa8f..26ab88000e34 100644 --- a/sound/firewire/cmp.h +++ b/sound/firewire/cmp.h @@ -42,8 +42,11 @@ int cmp_connection_init(struct cmp_connection *connection, int cmp_connection_check_used(struct cmp_connection *connection, bool *used); void cmp_connection_destroy(struct cmp_connection *connection); -int cmp_connection_establish(struct cmp_connection *connection, - unsigned int max_payload); +int cmp_connection_reserve(struct cmp_connection *connection, + unsigned int max_payload); +void cmp_connection_release(struct cmp_connection *connection); + +int cmp_connection_establish(struct cmp_connection *connection); int cmp_connection_update(struct cmp_connection *connection); void cmp_connection_break(struct cmp_connection *connection); |