Home | History | Annotate | Download | only in libcras

Lines Matching refs:client

66  *    client: The client requesting service.
77 typedef int (*cras_playback_cb_t)(struct cras_client *client,
86 * client: The client requesting service.
99 typedef int (*cras_unified_cb_t)(struct cras_client *client,
110 * client - The client created with cras_client_create().
115 typedef int (*cras_error_cb_t)(struct cras_client *client,
132 * client - The client created with cras_client_create().
135 typedef void (*cras_server_error_cb_t)(struct cras_client *client,
164 * client - The client created with cras_client_create().
169 typedef void (*cras_connection_status_cb_t)(struct cras_client *client,
174 typedef void (*cras_thread_priority_cb_t)(struct cras_client *client);
177 typedef void (*get_hotword_models_cb_t)(struct cras_client *client,
181 * Client handling.
184 /* Creates a new client.
186 * client - Filled with a pointer to the new client.
188 * 0 on success (*client is filled with a valid cras_client pointer).
189 * Negative error code on failure(*client will be NULL).
191 int cras_client_create(struct cras_client **client);
193 /* Destroys a client.
195 * client - returned from "cras_client_create".
197 void cras_client_destroy(struct cras_client *client);
199 /* Connects a client to the running server.
202 * client - pointer returned from "cras_client_create".
206 int cras_client_connect(struct cras_client *client);
208 /* Connects a client to the running server, retries until timeout.
210 * client - pointer returned from "cras_client_create".
215 int cras_client_connect_timeout(struct cras_client *client,
218 /* Begins running the client control thread.
223 * client - the client to start (from cras_client_create).
225 * 0 on success or if the thread is already running, -EINVAL if the client
228 int cras_client_run_thread(struct cras_client *client);
230 /* Stops running a client.
233 * client - the client to stop (from cras_client_create).
235 * 0 on success or if the thread was already stopped, -EINVAL if the client
238 int cras_client_stop(struct cras_client *client);
240 /* Wait up to 1 second for the client thread to complete the server connection.
249 * client - pointer returned from "cras_client_create".
253 int cras_client_connected_wait(struct cras_client *client);
255 /* Ask the client control thread to connect to the audio server.
263 * client - The client from cras_client_create().
266 * -EINVAL if the client pointer is invalid or the control thread is
269 int cras_client_connect_async(struct cras_client *client);
276 * client - The client from cras_client_create.
280 void cras_client_set_server_error_cb(struct cras_client *client,
290 * client - The client from cras_client_create.
295 struct cras_client *client,
301 * client - The client from cras_client_create.
304 void cras_client_set_thread_priority_cb(struct cras_client *client,
315 * client - The client from cras_client_create.
321 * 0 on success, -EINVAL if the client isn't valid or isn't running.
325 int cras_client_get_output_devices(const struct cras_client *client,
338 * client - The client from cras_client_create.
344 * 0 on success, -EINVAL if the client isn't valid or isn't running.
348 int cras_client_get_input_devices(const struct cras_client *client,
361 * client - This client (from cras_client_create).
369 int cras_client_get_attached_clients(const struct cras_client *client,
381 * client - This client (from cras_client_create).
388 int cras_client_get_node_by_id(const struct cras_client *client,
406 * client - The client from cras_client_create.
411 int cras_client_output_dev_plugged(const struct cras_client *client,
417 * client - The client from cras_client_create.
424 int cras_client_set_node_attr(struct cras_client *client,
432 * client - The client from cras_client_create.
437 int cras_client_select_node(struct cras_client *client,
444 * client - The client from cras_client_create.
449 int cras_client_add_active_node(struct cras_client *client,
456 * client - The client from cras_client_create.
461 int cras_client_rm_active_node(struct cras_client *client,
469 * client - The client from cras_client_create.
471 * 0 on success, -EINVAL if the client isn't valid or isn't running.
473 int cras_client_reload_dsp(struct cras_client *client);
478 * client - The client from cras_client_create.
480 * 0 on success, -EINVAL if the client isn't valid or isn't running.
482 int cras_client_dump_dsp_info(struct cras_client *client);
487 * client - The client from cras_client_create.
490 * 0 on success, -EINVAL if the client isn't valid or isn't running.
493 struct cras_client *client, void (*cb)(struct cras_client *));
560 * client - The client to add the stream to (from cras_client_create).
568 int cras_client_add_stream(struct cras_client *client,
578 * client - The client to add the stream to (from cras_client_create).
587 int cras_client_add_pinned_stream(struct cras_client *client,
597 * client - Client to remove the stream (returned from cras_client_create).
603 int cras_client_rm_stream(struct cras_client *client,
611 * client - Client owning the stream.
615 int cras_client_set_stream_volume(struct cras_client *client,
629 * client - The client from cras_client_create.
633 * -EINVAL if 'client' is invalid.
635 int cras_client_set_system_volume(struct cras_client *client, size_t volume);
643 * client - The client from cras_client_create.
647 * -EINVAL if 'client' is invalid.
649 int cras_client_set_system_capture_gain(struct cras_client *client, long gain);
654 * client - The client from cras_client_create.
658 * -EINVAL if 'client' is invalid.
660 int cras_client_set_system_mute(struct cras_client *client, int mute);
667 * client - The client from cras_client_create.
671 * -EINVAL if 'client' is invalid.
673 int cras_client_set_user_mute(struct cras_client *client, int mute);
680 * client - The client from cras_client_create.
684 * -EINVAL if 'client' is invalid.
686 int cras_client_set_system_mute_locked(struct cras_client *client, int locked);
693 * client - The client from cras_client_create.
697 * -EINVAL if 'client' is invalid.
699 int cras_client_set_system_capture_mute(struct cras_client *client, int mute);
706 * client - The client from cras_client_create.
710 * -EINVAL if 'client' is invalid.
712 int cras_client_set_system_capture_mute_locked(struct cras_client *client,
720 * client - The client from cras_client_create.
724 size_t cras_client_get_system_volume(const struct cras_client *client);
731 * client - The client from cras_client_create.
735 long cras_client_get_system_capture_gain(const struct cras_client *client);
742 * client - The client from cras_client_create.
746 int cras_client_get_system_muted(const struct cras_client *client);
753 * client - The client from cras_client_create.
757 int cras_client_get_user_muted(const struct cras_client *client);
764 * client - The client from cras_client_create.
768 int cras_client_get_system_capture_muted(const struct cras_client *client);
772 * client - The client from cras_client_create.
777 long cras_client_get_system_min_volume(const struct cras_client *client);
781 * client - The client from cras_client_create.
786 long cras_client_get_system_max_volume(const struct cras_client *client);
793 * client - The client from cras_client_create.
797 long cras_client_get_system_min_capture_gain(const struct cras_client *client);
804 * client - The client from cras_client_create.
808 long cras_client_get_system_max_capture_gain(const struct cras_client *client);
816 * client - The client from cras_client_create.
822 const struct cras_client *client);
834 * client - The client from cras_client_create.
839 unsigned cras_client_get_num_active_streams(const struct cras_client *client,
884 * client - The client from cras_client_create.
888 int cras_client_set_node_volume(struct cras_client *client,
895 * client - The client from cras_client_create.
899 int cras_client_swap_node_left_right(struct cras_client *client,
905 * client - The client from cras_client_create.
909 int cras_client_set_node_capture_gain(struct cras_client *client,
916 * client - The client from cras_client_create.
919 int cras_client_add_test_iodev(struct cras_client *client,
925 * client - The client from cras_client_create.
931 int cras_client_test_iodev_command(struct cras_client *client,
944 * client - The client from cras_client_create.
949 int cras_client_get_first_dev_type_idx(const struct cras_client *client,
958 * client - The client from cras_client_create.
961 int cras_client_set_suspend(struct cras_client *client, int suspend);
966 * client - The client from cras_client_create.
972 int cras_client_config_global_remix(struct cras_client *client,
980 * client - The client from cras_client_create.
986 int cras_client_get_hotword_models(struct cras_client *client,
994 * client - The client from cras_client_create.
999 * -EINVAL if client or node_id is invalid.
1002 int cras_client_set_hotword_model(struct cras_client *client,
1008 * client - The client from cras_client_create.
1012 struct cras_client *client, void *context);
1127 * NOTE: These callbacks are executed from the client control thread.
1132 * client - The client from cras_client_create.
1138 struct cras_client *client,
1141 struct cras_client *client,
1144 struct cras_client *client,
1147 struct cras_client *client,
1150 struct cras_client *client,
1153 struct cras_client *client,
1156 struct cras_client *client,
1159 struct cras_client *client,
1162 struct cras_client *client,
1165 struct cras_client *client,