History log of /external/adhd/cras/src/libcras/cras_helpers.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c25746a605e85e60bfe3c7bc6b304d4967f3b53d 08-Jul-2016 John Muir <muirj@google.com> CRAS: Libcras auto-reconnect to server.

Implement automatic reconnect to the audio server that works if
the audio server is stopped and restarted an arbitrary amount of
time driven by the control/command thread.

Re-implement the cras_client_connect functions such that they
will wait the timeout period specified even if the server is not
yet running.

When re-connecting to CRAS, all observation/notification callback
functions are re-registered with the server.

Add a connection status callback function which is called to
indicate the status of the connection to the server.

Clarify the API initialization sequence, and provide a method to
initialize and initiate a connection to CRAS with non-blocking
functions. Add a helper that does the new recommended sequence.

Clarify the API header to define which functions require that the
control/ command thread is running, and which functions may block
waiting for a connection to the audio server.

BUG=None
TEST=All cras unitttests pass.
- cras_monitor can continue to execute survive server
connection cycle.
- cras_monitor can start using fully async functions.
- cras_monitor's connection callback is executed when the
server connection is established or drops.
- Ensure that libcras and CRAS continue to function
correctly on samus.

Change-Id: I60c31b86bc00df33aa2c2ebcf0df6e76aa01eb7c
Reviewed-on: https://chromium-review.googlesource.com/359938
Commit-Ready: John Muir <muirj@google.com>
Tested-by: John Muir <muirj@google.com>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/libcras/cras_helpers.h
a6de2464f12ba758ee978ebe6b104c59757464a8 11-May-2015 Nathan Bullock <nathanbullock@google.com> cras: Pass const data to cras_helper_play_buffer

Since the cras_helper_play_buffer doesn't modify the buffer it should
take a const pointer to make it easier for clients to use.

BUG=none
TEST=none

Change-Id: I8109bd586a6ef2b3d1ff0d6096e6e1fe1aa930af
Reviewed-on: https://chromium-review.googlesource.com/270280
Reviewed-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Nathan Bullock <nathanbullock@google.com>
Tested-by: Nathan Bullock <nathanbullock@google.com>
/external/adhd/cras/src/libcras/cras_helpers.h
1d21d2f9bb82889781b4be087ad65ba488608866 21-Feb-2015 Dylan Reid <dgreid@chromium.org> CRAS: client - add helpers

Add a few simple helper functions to avoid duplication of code as more
Brillo clients use CRAS.

BUG=chrome-os-partner:35918
TEST=example tests added in next commit.

Change-Id: Ieaad9cfb6fef33c77cdc112c342b25f274458bdf
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/253280
/external/adhd/cras/src/libcras/cras_helpers.h