WSL2-Linux-Kernel/sound/firewire/fireworks
Takashi Sakamoto 22c103cd3d ALSA: fireworks/bebob/dice/oxfw: fix substreams counting at vmalloc failure
In PCM core, when hw_params() in each driver returns error, the state of
PCM substream is kept as 'open'. In this case, current drivers for sound
units on IEEE 1394 bus doesn't decrement substream counter in hw_free()
correctly. This causes these drivers to keep streams even if not
required.

This commit fixes this bug. When snd_pcm_lib_alloc_vmalloc_buffer()
fails, hw_params function in each driver returns without incrementing the
counter.

Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2015-08-29 09:14:41 +02:00
..
Makefile ALSA: fireworks: Add hwdep interface 2014-05-26 14:28:41 +02:00
fireworks.c ALSA: fireworks/firewire-lib: add support for recent firmware quirk 2015-08-05 07:52:39 +02:00
fireworks.h ALSA: fireworks/firewire-lib: add support for recent firmware quirk 2015-08-05 07:52:39 +02:00
fireworks_command.c ALSA: fireworks: Add command/response functionality into hwdep interface 2014-05-26 14:28:58 +02:00
fireworks_hwdep.c ALSA: fireworks: Use safer way to arrange ring buffer pointer 2014-06-04 14:35:40 +02:00
fireworks_midi.c ALSA: fireworks/bebob: Improve indentation 2014-05-27 17:35:38 +02:00
fireworks_pcm.c ALSA: fireworks/bebob/dice/oxfw: fix substreams counting at vmalloc failure 2015-08-29 09:14:41 +02:00
fireworks_proc.c ALSA: fireworks: fix specifiers in format strings for propper output 2014-08-05 09:15:20 +02:00
fireworks_stream.c ALSA: fireworks/firewire-lib: add support for recent firmware quirk 2015-08-05 07:52:39 +02:00
fireworks_transaction.c ALSA: firewire: Fix trivial typos in comments 2015-03-10 12:40:30 +01:00