]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: add missing "break" in "switch"
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 12 May 2012 16:06:23 +0000 (00:06 +0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 14 May 2012 14:55:39 +0000 (16:55 +0200)
commitb7334b1a81994bf3005a8999dd779c85683f86c0
tree45330bc616c5ac959e2cbe00255bdf92f6bc4341
parent1d3f7975f920f47e6a8a324f547da2180e64171a
pcm: add missing "break" in "switch"

A missing "break" in procedure snd_pcm_write_mmap() causes
execution of "case SND_PCM_ACCESS_MMAP_NONINTERLEAVED" to
fall through next "default" case of the "switch" statement.
Since "default" handles error cases, the procedure returns
error.

The error fixed by this patch blocks transfer of capture
data from kernel to application. Execution get stuck in
alsa-lib, that discards all received data.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_mmap.c