summaryrefslogtreecommitdiffstats
path: root/sound/firewire/cmp.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2014-04-25 15:44:53 +0200
committerTakashi Iwai <tiwai@suse.de>2014-05-26 14:21:56 +0200
commitc8de6dbbbb422030d3c174146b2137e69a528d69 (patch)
tree2b803a0d5a5f84f87e5f61b8de5fe6413406519f /sound/firewire/cmp.c
parentALSA: firewire-lib/dice/speakers: Add common PCM constraints for AMDTP streams (diff)
downloadlinux-c8de6dbbbb422030d3c174146b2137e69a528d69.tar.xz
linux-c8de6dbbbb422030d3c174146b2137e69a528d69.zip
ALSA: firewire-lib: Restrict calling flush_context_completion() when context exists
Currently, drivers can bring XRUN state for PCM substreams when error to queue packets or detecting discontinuity of packet. The application may try to recover this state by calling snd_pcm_prepare(). Depending on each driver, .prepare() includes restart streaming. Then there is a state that PCM substreams are running but isochronous contexts are stopped. In this case, when .pointer() is called, it refers to error pointer. This commit is for a prevention of this bug. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/cmp.c')
0 files changed, 0 insertions, 0 deletions