Lines Matching refs:server_state
238 const struct cras_server_state *server_state; member
419 if (!client->server_state) { in server_state_rdlock()
724 if (client->server_state) { in disconnect_transition_action()
725 munmap((void *)client->server_state, in disconnect_transition_action()
726 sizeof(*client->server_state)); in disconnect_transition_action()
727 client->server_state = NULL; in disconnect_transition_action()
1730 if (client->server_state) { in client_attach_shm()
1735 client->server_state = (struct cras_server_state *)mmap( in client_attach_shm()
1736 NULL, sizeof(*client->server_state), PROT_READ, MAP_SHARED, in client_attach_shm()
1740 if (client->server_state == (struct cras_server_state *)-1) { in client_attach_shm()
1747 if (client->server_state->state_version != CRAS_SERVER_STATE_VERSION) { in client_attach_shm()
1748 munmap((void *)client->server_state, in client_attach_shm()
1749 sizeof(*client->server_state)); in client_attach_shm()
1750 client->server_state = NULL; in client_attach_shm()
2634 volume = client->server_state->volume; in cras_client_get_system_volume()
2648 gain = client->server_state->capture_gain; in cras_client_get_system_capture_gain()
2662 muted = client->server_state->mute; in cras_client_get_system_muted()
2676 muted = client->server_state->user_mute; in cras_client_get_user_muted()
2690 muted = client->server_state->capture_mute; in cras_client_get_system_capture_muted()
2704 min_volume = client->server_state->min_volume_dBFS; in cras_client_get_system_min_volume()
2718 max_volume = client->server_state->max_volume_dBFS; in cras_client_get_system_max_volume()
2733 client->server_state->default_output_buffer_size; in cras_client_get_default_output_buffer_size()
2748 debug_info = &client->server_state->audio_debug_info; in cras_client_get_audio_debug_info()
2763 debug_info = &client->server_state->main_thread_debug_info; in cras_client_get_main_thread_debug_info()
2778 debug_info = &client->server_state->bt_debug_info; in cras_client_get_bt_debug_info()
2793 snapshot_buffer = &client->server_state->snapshot_buffer; in cras_client_get_audio_thread_snapshot_buffer()
2809 version = begin_server_state_read(client->server_state); in cras_client_get_num_active_streams()
2812 num_streams += client->server_state->num_active_streams[i]; in cras_client_get_num_active_streams()
2819 &client->server_state->last_active_stream_time); in cras_client_get_num_active_streams()
2821 if (end_server_state_read(client->server_state, version)) in cras_client_get_num_active_streams()
2896 state = client->server_state; in cras_client_get_output_devices()
2926 state = client->server_state; in cras_client_get_input_devices()
2955 state = client->server_state; in cras_client_get_attached_clients()
3509 state = client->server_state; in cras_client_get_first_node_type_idx()
3613 aec_supported = client->server_state->aec_supported; in cras_client_get_aec_supported()
3627 aec_group_id = client->server_state->aec_group_id; in cras_client_get_aec_group_id()