Home
last modified time | relevance | path

Searched refs:cras_client (Results 1 – 17 of 17) sorted by relevance

/external/adhd/cras/src/libcras/
Dcras_client.h61 struct cras_client;
78 typedef int (*cras_playback_cb_t)(struct cras_client *client,
99 typedef int (*cras_unified_cb_t)(struct cras_client *client,
114 typedef int (*cras_error_cb_t)(struct cras_client *client,
149 typedef void (*cras_connection_status_cb_t)(struct cras_client *client,
154 typedef void (*cras_thread_priority_cb_t)(struct cras_client *client);
157 typedef void (*get_hotword_models_cb_t)(struct cras_client *client,
161 typedef void (*cras_hotword_trigger_cb_t)(struct cras_client *client,
166 typedef int (*cras_hotword_error_cb_t)(struct cras_client *client,
181 int cras_client_create(struct cras_client **client);
[all …]
Dcras_client.c164 struct cras_client *client;
221 struct cras_client { struct
240 void (*debug_info_callback)(struct cras_client *); argument
241 void (*atlog_access_callback)(struct cras_client *); argument
257 struct cras_client client; argument
369 static int client_thread_rm_stream(struct cras_client *client,
371 static int handle_message_from_server(struct cras_client *client);
372 static int reregister_notifications(struct cras_client *client);
386 static void server_state_unlock(const struct cras_client *client, int lock_rc) in server_state_unlock()
408 static int server_state_rdlock(const struct cras_client *client) in server_state_rdlock()
[all …]
Dcras_helpers.h25 int cras_helper_create_connect_async(struct cras_client **client,
38 int cras_helper_create_connect(struct cras_client **client);
64 int cras_helper_add_stream_simple(struct cras_client *client,
86 int cras_helper_play_buffer(struct cras_client *client, const void *buffer,
Dcras_helpers.c21 play_buffer_callback(struct cras_client *client, cras_stream_id_t stream_id, in play_buffer_callback()
43 static int play_buffer_error(struct cras_client *client, in play_buffer_error()
51 int cras_helper_create_connect_async(struct cras_client **client, in cras_helper_create_connect_async()
78 int cras_helper_create_connect(struct cras_client **client) in cras_helper_create_connect()
106 struct cras_client *client, enum CRAS_STREAM_DIRECTION direction, in cras_helper_add_stream_simple()
139 int cras_helper_play_buffer(struct cras_client *client, const void *buffer, in cras_helper_play_buffer()
/external/adhd/cras/client/cras_tests/src/
Dcontrol.rs74 let mut cras_client = CrasClient::new().map_err(Error::Libcras)?; in control() localVariable
76 GetSystemVolume => println!("{}", cras_client.get_system_volume()), in control()
78 cras_client in control()
82 GetSystemMute => println!("{}", cras_client.get_system_mute()), in control()
84 cras_client.set_system_mute(mute).map_err(Error::Libcras)?; in control()
88 for dev in cras_client.output_devices() { in control()
94 for dev in cras_client.input_devices() { in control()
98 ListOutputNodes => print_nodes(cras_client.output_nodes()), in control()
99 ListInputNodes => print_nodes(cras_client.input_nodes()), in control()
101 let debug_info = cras_client.get_audio_debug_info().map_err(Error::Libcras)?; in control()
Daudio.rs212 let mut cras_client = CrasClient::new().map_err(Error::Libcras)?; in playback() localVariable
213 let (_control, mut stream) = cras_client in playback()
379 let mut cras_client = CrasClient::new().map_err(Error::Libcras)?; in capture() localVariable
380 cras_client.enable_cras_capture(); in capture()
388 let loopback_node = cras_client in capture()
393 cras_client in capture()
403 None => cras_client in capture()
/external/adhd/cras/src/tools/cras_monitor/
Dcras_monitor.c76 const char *node_name_for_node_id(struct cras_client *client, in node_name_for_node_id()
128 struct cras_client *client = (struct cras_client *)context; in active_node_changed()
137 struct cras_client *client = (struct cras_client *)context; in output_node_volume_changed()
147 struct cras_client *client = (struct cras_client *)context; in node_left_right_swapped_changed()
157 struct cras_client *client = (struct cras_client *)context; in input_node_gain_changed()
172 static void server_connection_callback(struct cras_client *client, in server_connection_callback()
204 struct cras_client *client; in main()
/external/adhd/cras/src/tools/cras_router/
Dcras_router.c45 static int got_samples(struct cras_client *client, cras_stream_id_t stream_id, in got_samples()
65 static int put_samples(struct cras_client *client, cras_stream_id_t stream_id, in put_samples()
86 static int stream_error(struct cras_client *client, cras_stream_id_t stream_id, in stream_error()
94 static int start_stream(struct cras_client *client, cras_stream_id_t *stream_id, in start_stream()
107 static int run_file_io_stream(struct cras_client *client, int fd, int loop_fd, in run_file_io_stream()
188 struct cras_client *client; in main()
/external/adhd/cras/src/tools/cras_test_client/
Dcras_test_client.c223 static int got_samples(struct cras_client *client, cras_stream_id_t stream_id, in got_samples()
257 static int put_samples(struct cras_client *client, cras_stream_id_t stream_id, in put_samples()
305 put_stdin_samples(struct cras_client *client, cras_stream_id_t stream_id, in put_stdin_samples()
322 static int stream_error(struct cras_client *client, cras_stream_id_t stream_id, in stream_error()
363 static void print_node_info(struct cras_client *client, in print_node_info()
403 static void print_device_lists(struct cras_client *client) in print_device_lists()
431 static void print_attached_client_list(struct cras_client *client) in print_attached_client_list()
449 static void print_active_stream_info(struct cras_client *client) in print_active_stream_info()
460 static void print_system_volumes(struct cras_client *client) in print_system_volumes()
470 static void print_user_muted(struct cras_client *client) in print_user_muted()
[all …]
/external/adhd/cras/examples/
Dcplay.c22 static int put_samples(struct cras_client *client, cras_stream_id_t stream_id, in put_samples()
39 static int stream_error(struct cras_client *client, cras_stream_id_t stream_id, in stream_error()
49 struct cras_client *client; in main()
Dcplay_buffer.c18 struct cras_client *client; in main()
/external/adhd/sound_card_init/dsm/src/
Dzero_player.rs168 let mut cras_client = CrasClient::new().map_err(Error::CrasClientFailed)?; in run() localVariable
170 let node = cras_client in run()
180 let (_control, mut stream) = cras_client in run()
Dlib.rs270 let cras_client = CrasClient::new().map_err(Error::CrasClientFailed)?; in wait_for_speakers_ready() localVariable
271 let _node = cras_client in wait_for_speakers_ready()
/external/adhd/cras/src/alsa_plugin/
Dpcm_cras.c37 struct cras_client *client;
116 static int pcm_cras_process_cb(struct cras_client *client, in pcm_cras_process_cb()
207 static int pcm_cras_error_cb(struct cras_client *client, in pcm_cras_error_cb()
Dctl_cras.c39 struct cras_client *client;
116 static int get_nodes(struct cras_client *client, enum CRAS_STREAM_DIRECTION dir, in get_nodes()
/external/adhd/cras/src/
DAndroid.bp21 "libcras/cras_client.c",
/external/adhd/cras/src/tests/
Dcras_client_unittest.cc94 struct cras_client client_;
109 int capture_samples_ready(cras_client* client, in capture_samples_ready()
342 struct cras_client client; in TEST()