Home
last modified time | relevance | path

Searched refs:client_shm_fd (Results 1 – 14 of 14) sorted by relevance

/external/adhd/cras/src/server/
Dcras_rclient_util.c86 static int rclient_validate_stream_connect_fds(int audio_fd, int client_shm_fd, in rclient_validate_stream_connect_fds() argument
96 if (client_shm_size > 0 && client_shm_fd < 0) { in rclient_validate_stream_connect_fds()
100 } else if (client_shm_size == 0 && client_shm_fd >= 0) { in rclient_validate_stream_connect_fds()
110 const struct cras_connect_message *msg, int audio_fd, int client_shm_fd) in rclient_validate_stream_connect_params() argument
118 rc = rclient_validate_stream_connect_fds(audio_fd, client_shm_fd, in rclient_validate_stream_connect_params()
128 int aud_fd, int client_shm_fd) in rclient_handle_client_stream_connect() argument
139 client_shm_fd); in rclient_handle_client_stream_connect()
141 if (client_shm_fd >= 0) in rclient_handle_client_stream_connect()
142 close(client_shm_fd); in rclient_handle_client_stream_connect()
154 &client_shm_fd, &remote_fmt, in rclient_handle_client_stream_connect()
Dcras_rstream.c29 int *client_shm_fd, size_t client_shm_size, in cras_rstream_config_init() argument
44 stream_config->client_shm_fd = *client_shm_fd; in cras_rstream_config_init()
45 *client_shm_fd = -1; in cras_rstream_config_init()
52 int *aud_fd, int *client_shm_fd, in cras_rstream_config_init_with_message() argument
60 client_shm_fd, msg->client_shm_size, in cras_rstream_config_init_with_message()
68 if (stream_config->client_shm_fd >= 0) in cras_rstream_config_cleanup()
69 close(stream_config->client_shm_fd); in cras_rstream_config_cleanup()
75 static inline int setup_shm_area(struct cras_rstream *stream, int client_shm_fd, in setup_shm_area() argument
102 if (client_shm_fd >= 0 && client_shm_size > 0) { in setup_shm_area()
103 rc = cras_shm_info_init_with_fd(client_shm_fd, client_shm_size, in setup_shm_area()
[all …]
Dcras_playback_rclient.c39 int client_shm_fd = num_fds > 1 ? fds[1] : -1; in cpr_handle_message_from_client() local
45 client_shm_fd); in cpr_handle_message_from_client()
48 client, &cmsg, fd, client_shm_fd); in cpr_handle_message_from_client()
Dcras_capture_rclient.c39 int client_shm_fd = num_fds > 1 ? fds[1] : -1; in ccr_handle_message_from_client() local
45 client_shm_fd); in ccr_handle_message_from_client()
48 client, &cmsg, fd, client_shm_fd); in ccr_handle_message_from_client()
Dcras_rclient_util.h58 int client_shm_fd);
73 int aud_fd, int client_shm_fd);
Dserver_stream.c51 int client_shm_fd = -1; in server_stream_create() local
67 server_stream_block_size, &audio_fd, &client_shm_fd, in server_stream_create()
Dcras_rstream.h125 int client_shm_fd; member
145 int *client_shm_fd, size_t client_shm_size,
162 int *aud_fd, int *client_shm_fd,
Dcras_control_rclient.c293 int client_shm_fd = num_fds > 1 ? fds[1] : -1; in ccr_handle_message_from_client() local
299 client_shm_fd); in ccr_handle_message_from_client()
302 client, &cmsg, fd, client_shm_fd); in ccr_handle_message_from_client()
/external/adhd/cras/src/libcras/
Dcras_client.c136 int client_shm_fd; member
1466 if (stream->config->client_shm_fd >= 0) { in send_connect_message()
1467 fds[1] = stream->config->client_shm_fd; in send_connect_message()
1481 if (stream->config->client_shm_fd != -1) in send_connect_message()
1482 close(stream->config->client_shm_fd); in send_connect_message()
1490 if (stream->config->client_shm_fd != -1) in send_connect_message()
1491 close(stream->config->client_shm_fd); in send_connect_message()
2263 params->client_shm_fd = -1; in cras_client_stream_params_create()
2316 struct cras_stream_params *params, int client_shm_fd, in cras_client_stream_params_configure_client_shm() argument
2319 params->client_shm_fd = client_shm_fd; in cras_client_stream_params_configure_client_shm()
[all …]
Dcras_client.h583 struct cras_stream_params *params, int client_shm_fd,
/external/adhd/cras/src/tests/
Dcapture_rclient_unittest.cc323 int* client_shm_fd, in cras_rstream_config_init_with_message() argument
Dplayback_rclient_unittest.cc323 int* client_shm_fd, in cras_rstream_config_init_with_message() argument
Drstream_unittest.cc40 config_.client_shm_fd = -1; in SetUp()
Dcontrol_rclient_unittest.cc1021 int* client_shm_fd, in cras_rstream_config_init_with_message() argument