alistair23-linux/sound/firewire/bebob
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
..
bebob.c ALSA: bebob: add support for Behringer FCA 610/1616 2015-06-15 13:38:47 +02:00
bebob.h ALSA: bebob: keep duplex streams always to keep internal multiplexer properly 2015-06-15 13:38:29 +02:00
bebob_command.c ALSA: bebob: Prepare for device specific operations 2014-05-26 14:31:15 +02:00
bebob_focusrite.c ALSA: bebob: obsolete string literal expression for clock source 2015-06-15 13:36:44 +02:00
bebob_hwdep.c ALSA: bebob: Add hwdep interface 2014-05-26 14:31:03 +02:00
bebob_maudio.c ALSA: bebob: obsolete string literal expression for clock source 2015-06-15 13:36:44 +02:00
bebob_midi.c ALSA: bebob: keep duplex streams always to keep internal multiplexer properly 2015-06-15 13:38:29 +02:00
bebob_pcm.c ALSA: fireworks/bebob/dice/oxfw: fix substreams counting at vmalloc failure 2015-08-29 09:14:41 +02:00
bebob_proc.c ALSA: bebob: use normalized representation for the type of clock source 2015-06-15 13:36:00 +02:00
bebob_stream.c ALSA: bebob: keep duplex streams always to keep internal multiplexer properly 2015-06-15 13:38:29 +02:00
bebob_terratec.c ALSA: bebob: obsolete string literal expression for clock source 2015-06-15 13:36:44 +02:00
bebob_yamaha.c ALSA: bebob: obsolete string literal expression for clock source 2015-06-15 13:36:44 +02:00
Makefile ALSA: bebob: Add support for M-Audio usual Firewire series 2014-05-26 14:32:03 +02:00