author | John Grossman <johngro@google.com> | |
Tue, 3 Apr 2012 23:37:38 +0000 (16:37 -0700) | ||
committer | John Grossman <johngro@google.com> | |
Tue, 3 Apr 2012 23:59:59 +0000 (16:59 -0700) | ||
commit | 673253acf06838bb24d0b0b1a3962bed573855b8 | |
tree | c6c8a6a063171ec87872f40e585b13dc5e757a3a | tree | snapshot (tar.xz tar.gz zip) |
parent | 1b32ddfd35e54b0a6ef1e43ca35dbc1547e5676a | commit | diff |
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>
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 | diff | blob | history | |
pcm.c | diff | blob | history |