]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ALSA: bebob: ensure to release isochronous resources in pcm.hw_params callback
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 18 Jun 2019 13:26:20 +0000 (22:26 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 21 Jun 2019 09:47:09 +0000 (11:47 +0200)
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>
sound/firewire/bebob/bebob_stream.c

index 1070a675179d2a87d2025222a40b2c823cee6dc5..63e78fc8711de81e41d40a0237bae6242a497a8c 100644 (file)
@@ -571,6 +571,9 @@ int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate)
                amdtp_stream_stop(&bebob->rx_stream);
 
                break_both_connections(bebob);
+
+               cmp_connection_release(&bebob->out_conn);
+               cmp_connection_release(&bebob->in_conn);
        }
 
        if (bebob->substreams_counter == 0 || curr_rate != rate) {