linux_dsm_epyc7002/sound/firewire/dice
Takashi Sakamoto e79c3f0c00 ALSA: dice: fix wrong reference count for stream functionality at error path of rawmidi interface
In IEC 61883-6, several types of sampling data can be multiplexed into
payload of common isochronous packet (CIP). For typical audio and music
units, PCM samples and MIDI messages are multiplexed into one packet
streaming.

ALSA dice driver allows applications of rawmidi interface to start
packet streaming for transmission of MIDI messages. However at error
path, the reference count of stream functionality is not operated
correctly. This can brings a bug that packet streaming is not stopped
when all referrers release the count.

This commit fixes the bug.

Fixes: 3cd2c2d780 ("ALSA: dice: reserve/release isochronous resources in pcm.hw_params/hw_free callbacks")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2019-07-07 11:19:57 +02:00
..
dice-alesis.c ALSA: dice: fix wrong copy to rx parameters for Alesis iO26 2018-08-06 09:35:32 +02:00
dice-extension.c ALSA: dice: use extended protocol to detect available stream formats 2018-05-02 16:02:00 +02:00
dice-hwdep.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
dice-interface.h ALSA: dice: improve support for ancient firmware for DICE 2018-04-24 17:18:59 +02:00
dice-midi.c ALSA: dice: fix wrong reference count for stream functionality at error path of rawmidi interface 2019-07-07 11:19:57 +02:00
dice-mytek.c ALSA: dice: add stream format parameters for Mytek devices 2018-05-18 08:53:51 +02:00
dice-pcm.c ALSA: dice: unify stop and release method for duplex streams 2019-06-21 11:47:06 +02:00
dice-presonus.c ALSA: dice: add stream format parameters for PreSonus FireStudio 2019-05-20 07:46:43 +02:00
dice-proc.c ALSA: firewire: Remove superfluous snd_info_register() calls 2019-02-06 18:11:38 +01:00
dice-stream.c ALSA: dice: unify stop and release method for duplex streams 2019-06-21 11:47:06 +02:00
dice-tcelectronic.c ALSA: dice: unuse second stream for MIDI conformant data channel for TC Electronic models 2018-05-27 08:32:08 +02:00
dice-transaction.c ALSA: dice: improve support for ancient firmware for DICE 2018-04-24 17:18:59 +02:00
dice.c ALSA: dice: add stream format parameters for PreSonus FireStudio 2019-05-20 07:46:43 +02:00
dice.h ALSA: dice: unify stop and release method for duplex streams 2019-06-21 11:47:06 +02:00
Makefile ALSA: dice: add stream format parameters for PreSonus FireStudio 2019-05-20 07:46:43 +02:00