Lines Matching refs:g_observer
100 static struct cras_observer_server *g_observer; variable
115 DL_FOREACH (g_observer->clients, client) { in output_volume_alert()
128 DL_FOREACH (g_observer->clients, client) { in output_mute_alert()
143 DL_FOREACH (g_observer->clients, client) { in capture_gain_alert()
156 DL_FOREACH (g_observer->clients, client) { in capture_mute_alert()
173 DL_FOREACH (g_observer->clients, client) { in nodes_alert()
185 DL_FOREACH (g_observer->clients, client) { in active_node_alert()
199 DL_FOREACH (g_observer->clients, client) { in output_node_volume_alert()
213 DL_FOREACH (g_observer->clients, client) { in node_left_right_swapped_alert()
227 DL_FOREACH (g_observer->clients, client) { in input_node_gain_alert()
241 DL_FOREACH (g_observer->clients, client) { in suspend_changed_alert()
254 DL_FOREACH (g_observer->clients, client) { in num_active_streams_alert()
268 DL_FOREACH (g_observer->clients, client) { in num_input_streams_with_permission_alert()
282 DL_FOREACH (g_observer->clients, client) { in hotword_triggered_alert()
296 DL_FOREACH (g_observer->clients, client) { in non_empty_audio_state_changed_alert()
311 DL_FOREACH (g_observer->clients, client) { in bt_battery_changed_alert()
332 rc = cras_observer_server_set_alert(&g_observer->alerts.alert, \
342 &g_observer->alerts.alert[direction], alert##_alert, \
357 g_observer = (struct cras_observer_server *)calloc( in cras_observer_server_init()
359 if (!g_observer) in cras_observer_server_init()
394 if (!g_observer) in cras_observer_server_free()
396 cras_alert_destroy(g_observer->alerts.output_volume); in cras_observer_server_free()
397 cras_alert_destroy(g_observer->alerts.output_mute); in cras_observer_server_free()
398 cras_alert_destroy(g_observer->alerts.capture_gain); in cras_observer_server_free()
399 cras_alert_destroy(g_observer->alerts.capture_mute); in cras_observer_server_free()
400 cras_alert_destroy(g_observer->alerts.nodes); in cras_observer_server_free()
401 cras_alert_destroy(g_observer->alerts.active_node); in cras_observer_server_free()
402 cras_alert_destroy(g_observer->alerts.output_node_volume); in cras_observer_server_free()
403 cras_alert_destroy(g_observer->alerts.node_left_right_swapped); in cras_observer_server_free()
404 cras_alert_destroy(g_observer->alerts.input_node_gain); in cras_observer_server_free()
405 cras_alert_destroy(g_observer->alerts.suspend_changed); in cras_observer_server_free()
406 cras_alert_destroy(g_observer->alerts.hotword_triggered); in cras_observer_server_free()
407 cras_alert_destroy(g_observer->alerts.non_empty_audio_state_changed); in cras_observer_server_free()
408 cras_alert_destroy(g_observer->alerts.bt_battery_changed); in cras_observer_server_free()
410 g_observer->alerts.num_input_streams_with_permission); in cras_observer_server_free()
412 g_observer->alerts.num_active_streams[CRAS_STREAM_OUTPUT]); in cras_observer_server_free()
414 g_observer->alerts.num_active_streams[CRAS_STREAM_INPUT]); in cras_observer_server_free()
416 g_observer->alerts in cras_observer_server_free()
418 free(g_observer); in cras_observer_server_free()
419 g_observer = NULL; in cras_observer_server_free()
458 DL_APPEND(g_observer->clients, client); in cras_observer_add()
467 DL_DELETE(g_observer->clients, client); in cras_observer_remove()
480 cras_alert_pending_data(g_observer->alerts.output_volume, &data, in cras_observer_notify_output_volume()
492 cras_alert_pending_data(g_observer->alerts.output_mute, &data, in cras_observer_notify_output_mute()
501 cras_alert_pending_data(g_observer->alerts.capture_gain, &data, in cras_observer_notify_capture_gain()
512 cras_alert_pending_data(g_observer->alerts.capture_mute, &data, in cras_observer_notify_capture_mute()
518 cras_alert_pending(g_observer->alerts.nodes); in cras_observer_notify_nodes()
528 cras_alert_pending_data(g_observer->alerts.active_node, &data, in cras_observer_notify_active_node()
539 cras_alert_pending_data(g_observer->alerts.output_node_volume, &data, in cras_observer_notify_output_node_volume()
550 cras_alert_pending_data(g_observer->alerts.node_left_right_swapped, in cras_observer_notify_node_left_right_swapped()
560 cras_alert_pending_data(g_observer->alerts.input_node_gain, &data, in cras_observer_notify_input_node_gain()
569 cras_alert_pending_data(g_observer->alerts.suspend_changed, &data, in cras_observer_notify_suspend_changed()
581 alert = g_observer->alerts.num_active_streams[dir]; in cras_observer_notify_num_active_streams()
596 alert = g_observer->alerts.num_input_streams_with_permission; in cras_observer_notify_input_streams_with_permission()
609 cras_alert_pending_data(g_observer->alerts.hotword_triggered, &data, in cras_observer_notify_hotword_triggered()
620 g_observer->alerts.non_empty_audio_state_changed, &data, in cras_observer_notify_non_empty_audio_state_changed()
632 cras_alert_pending_data(g_observer->alerts.bt_battery_changed, &data, in cras_observer_notify_bt_battery_changed()