return 0;
}
-void snd_ff_stream_release_duplex(struct snd_ff *ff)
-{
- if (ff->substreams_counter == 0) {
- fw_iso_resources_free(&ff->tx_resources);
- fw_iso_resources_free(&ff->rx_resources);
- }
-}
-
int snd_ff_stream_start_duplex(struct snd_ff *ff, unsigned int rate)
{
int err;
void snd_ff_stream_stop_duplex(struct snd_ff *ff)
{
- if (ff->substreams_counter == 0)
+ if (ff->substreams_counter == 0) {
finish_session(ff);
+
+ fw_iso_resources_free(&ff->tx_resources);
+ fw_iso_resources_free(&ff->rx_resources);
+ }
}
void snd_ff_stream_update_duplex(struct snd_ff *ff)
int snd_ff_stream_init_duplex(struct snd_ff *ff);
void snd_ff_stream_destroy_duplex(struct snd_ff *ff);
int snd_ff_stream_reserve_duplex(struct snd_ff *ff, unsigned int rate);
-void snd_ff_stream_release_duplex(struct snd_ff *ff);
int snd_ff_stream_start_duplex(struct snd_ff *ff, unsigned int rate);
void snd_ff_stream_stop_duplex(struct snd_ff *ff);
void snd_ff_stream_update_duplex(struct snd_ff *ff);