diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2019-06-18 09:26:20 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-06-21 05:47:09 -0400 |
commit | 7599e279c04511731e2aba4a6dc7b98e5c2a2d25 (patch) | |
tree | cfac703f9feda2395f2b7a049bd25c7e2dfbd91c | |
parent | 740680f22d96e078245211b40fc2c141a24c8d1a (diff) |
ALSA: bebob: ensure to release isochronous resources in pcm.hw_params callback
When stopping packet streaming in reserve function for duplex streams,
isochronous resources should be released.
Fixes: 7bc93821a70a ("ALSA: firewire-lib: split allocation of isochronous resources from establishment of connection")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/firewire/bebob/bebob_stream.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/firewire/bebob/bebob_stream.c b/sound/firewire/bebob/bebob_stream.c index 1070a675179d..63e78fc8711d 100644 --- a/sound/firewire/bebob/bebob_stream.c +++ b/sound/firewire/bebob/bebob_stream.c | |||
@@ -571,6 +571,9 @@ int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate) | |||
571 | amdtp_stream_stop(&bebob->rx_stream); | 571 | amdtp_stream_stop(&bebob->rx_stream); |
572 | 572 | ||
573 | break_both_connections(bebob); | 573 | break_both_connections(bebob); |
574 | |||
575 | cmp_connection_release(&bebob->out_conn); | ||
576 | cmp_connection_release(&bebob->in_conn); | ||
574 | } | 577 | } |
575 | 578 | ||
576 | if (bebob->substreams_counter == 0 || curr_rate != rate) { | 579 | if (bebob->substreams_counter == 0 || curr_rate != rate) { |