summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaynes Mathew George <hgeorge@codeaurora.org>2016-07-07 20:05:39 -0700
committerEric Laurent <elaurent@google.com>2016-07-11 17:19:39 -0700
commit0d46876be91bcc1991a3a28b4ec3b50429fbb1fd (patch)
treefbc43c4abe5f2a6af7b42e6fd9a57adf1c2d0df2
parent4a2683f893e938944fc39f66a0f87d429fcc70bf (diff)
downloadlibhardware-0d46876be91bcc1991a3a28b4ec3b50429fbb1fd.tar.gz
audio: Add callback event to asynchronously notify error
Add new event to notify error using async callback path Change-Id: I80a0ff74ea5a6497331a87ee33b2d0a890cbd2db
-rw-r--r--include/hardware/audio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h
index 36bfa862..ec7fd4b7 100644
--- a/include/hardware/audio.h
+++ b/include/hardware/audio.h
@@ -253,7 +253,8 @@ typedef struct audio_stream audio_stream_t;
/* type of asynchronous write callback events. Mutually exclusive */
typedef enum {
STREAM_CBK_EVENT_WRITE_READY, /* non blocking write completed */
- STREAM_CBK_EVENT_DRAIN_READY /* drain completed */
+ STREAM_CBK_EVENT_DRAIN_READY, /* drain completed */
+ STREAM_CBK_EVENT_ERROR, /* stream hit some error, let AF take action */
} stream_callback_event_t;
typedef int (*stream_callback_t)(stream_callback_event_t event, void *param, void *cookie);