]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-external-tinyalsa.git/commit
tinyalsa: Add PCM_NORESTART flag.
authorJohn Grossman <johngro@google.com>
Tue, 3 Apr 2012 23:37:38 +0000 (16:37 -0700)
committerJohn Grossman <johngro@google.com>
Tue, 3 Apr 2012 23:59:59 +0000 (16:59 -0700)
commit673253acf06838bb24d0b0b1a3962bed573855b8
treec6c8a6a063171ec87872f40e585b13dc5e757a3a
parent1b32ddfd35e54b0a6ef1e43ca35dbc1547e5676a
tinyalsa: Add PCM_NORESTART flag.

Add a flag which can be passed to pcm_open (called PCM_NORESTART).
When set on a playback stream, calls to pcm_write will not
automatically attempt to restart an ALSA device in the case of an
underflow.  Instead, it will propagate the first EPIPE error up to the
application to allow it to handle the underflow situation.  Subsequent
calls to pcm_write will attempt to start the pipeline.

Change-Id: If17973c6de9079c4227631bac9ff09b218377344
Signed-off-by: John Grossman <johngro@google.com>
include/tinyalsa/asoundlib.h
pcm.c