]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: Disable locking in async mode
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Feb 2017 16:29:21 +0000 (17:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Feb 2017 16:29:21 +0000 (17:29 +0100)
commite31a3273df6eb619e35d10bf6a0fc0fded91d559
tree6a7bcd5c596c87225315670150480cc4b5dc0361
parentb5a2c06f6c5d69fc71ef648af95a044ee1dc25d0
pcm: Disable locking in async mode

When PCM is operated in async mode and an async handler calls some PCM
functions with lock during other PCM operations, we may hit a
deadlock.

Although async mode is rarely used, it's still a possible use case.
Disable the locking when the stream is opened in async mode or it's
set to async mode via snd_pcm_async().

Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm.c