linux_old1/sound/firewire/dice
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: dice: Add support for MIDI capture/playback 2014-12-10 10:46:14 +01:00
dice-hwdep.c ALSA: dice: Split hwdep functionality into a file 2014-11-29 20:08:19 +01:00
dice-interface.h Revert "ALSA: dice: fix wrong offsets for Dice interface" 2015-03-10 15:26:25 +01:00
dice-midi.c ALSA: dice: Add support for MIDI capture/playback 2014-12-10 10:46:14 +01:00
dice-pcm.c ALSA: fireworks/bebob/dice/oxfw: fix substreams counting at vmalloc failure 2015-08-29 09:14:41 +02:00
dice-proc.c Revert "ALSA: dice: fix wrong offsets for Dice interface" 2015-03-10 15:26:25 +01:00
dice-stream.c ALSA: fireworks/bebob/dice/oxfw: allow stream destructor after releasing runtime 2015-02-23 09:11:16 +01:00
dice-transaction.c ALSA: dice: Support for non SYT-Match sampling clock source mode 2014-12-10 10:45:28 +01:00
dice.c ALSA: fireworks/bebob/dice/oxfw: make it possible to shutdown safely 2015-02-23 09:11:24 +01:00
dice.h ALSA: dice: Add support for MIDI capture/playback 2014-12-10 10:46:14 +01:00