aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/firewire/digi00x/digi00x-midi.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2019-06-18 22:26:18 +0900
committerTakashi Iwai <tiwai@suse.de>2019-06-21 11:47:04 +0200
commitb9434540dd8f702c2cf33b82674e027cb779146e (patch)
treefd766463809b7b53de694f4d230aeac203eaf092 /sound/firewire/digi00x/digi00x-midi.c
parentALSA: firewire-motu: unify stop and release method for duplex streams (diff)
downloadwireguard-linux-b9434540dd8f702c2cf33b82674e027cb779146e.tar.xz
wireguard-linux-b9434540dd8f702c2cf33b82674e027cb779146e.zip
ALSA: firewire-digi00x: unify stop and release method for duplex streams
>From callbacks for pcm and rawmidi interfaces, the functions to stop and release duplex streams are called at the same time. This commit merges the two functions. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/digi00x/digi00x-midi.c')
-rw-r--r--sound/firewire/digi00x/digi00x-midi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/firewire/digi00x/digi00x-midi.c b/sound/firewire/digi00x/digi00x-midi.c
index cca888cce0d3..ca06ad318ed6 100644
--- a/sound/firewire/digi00x/digi00x-midi.c
+++ b/sound/firewire/digi00x/digi00x-midi.c
@@ -37,7 +37,6 @@ static int midi_close(struct snd_rawmidi_substream *substream)
mutex_lock(&dg00x->mutex);
--dg00x->substreams_counter;
snd_dg00x_stream_stop_duplex(dg00x);
- snd_dg00x_stream_release_duplex(dg00x);
mutex_unlock(&dg00x->mutex);
snd_dg00x_stream_lock_release(dg00x);