History log of /external/adhd/cras/src/libcras/cras_helpers.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7c5f107ffba37f4679abc46cffe296af3fc7aa3d 31-Jul-2016 John Muir <muirj@google.com> CRAS: Make all server calls non-blocking by default.

Make the API simpler by reducing optionality a little. Users of
the API should already have expected errors when the connection
to the server could not be re-established automatically so this
change should be relatively transparent.

BUG=None
TEST=Run audio clients on Samus.
Verify non-blocking behaviour with cras_test_client.

Change-Id: I3bbd3b7585f7737ec227176a704024aea58fc644
Reviewed-on: https://chromium-review.googlesource.com/364840
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.c
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.c
a4f4b29e4331b5368446cc9abe2db26e41b47ace 23-Sep-2015 Chinyue Chen <chinyue@chromium.org> CRAS: libcras - Use tinyalsa when building on Android.

A new macro PCM_FORMAT_WIDTH is defined since the function provided
by tinyalsa is different. Also add typedef for PCM format type.

BUG=chrome-os-partner:45706
TEST=FEATURES="test" emerge-${BOARD} -v media-sound/adhd
CQ-DEPEND=CL:301841

Change-Id: I7543f8648781f0011436aa2e965d6895f53741f1
Reviewed-on: https://chromium-review.googlesource.com/301822
Commit-Ready: Chinyue Chen <chinyue@chromium.org>
Tested-by: Chinyue Chen <chinyue@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
/external/adhd/cras/src/libcras/cras_helpers.c
0ed19cea24e1694478eddc84e1bb8ccacff920a0 23-Sep-2015 Chinyue Chen <chinyue@chromium.org> CRAS: libcras - Add missing includes.

BUG=chrome-os-partner:45706
TEST=FEATURES="test" emerge-${BOARD} -v media-sound/adhd

Change-Id: I94ffe388a7bedc7287fa36218e29e437f548611c
Reviewed-on: https://chromium-review.googlesource.com/301841
Commit-Ready: Chinyue Chen <chinyue@chromium.org>
Tested-by: Chinyue Chen <chinyue@chromium.org>
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
/external/adhd/cras/src/libcras/cras_helpers.c
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.c
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.c